/**
 * 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 './tabs';
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 '../../navigation/nav-controller';
import * as import9 from '../../navigation/view-controller';
import * as import10 from '../app/app';
import * as import11 from '../../config/config';
import * as import12 from '@angular/core/src/linker/element_ref';
import * as import13 from '../../platform/platform';
import * as import14 from '../../navigation/deep-linker';
import * as import15 from '@angular/core/src/metadata/view';
import * as import16 from '@angular/core/src/linker/component_factory';
import * as import17 from '@angular/core/src/linker/query_list';
import * as import18 from '@angular/common/src/directives/ng_for';
import * as import19 from '@angular/core/src/linker/template_ref';
import * as import20 from '@angular/core/src/change_detection/differs/iterable_differs';
import * as import21 from './tab-button';
import * as import22 from '@angular/common/src/directives/ng_if';
import * as import23 from '../icon/icon';
import * as import24 from '@angular/common/src/directives/ng_class';
import * as import25 from '../badge/badge';
import * as import26 from '@angular/core/src/change_detection/differs/keyvalue_differs';
var renderType_Tabs_Host:import0.RenderComponentType = (null as any);
class _View_Tabs_Host0 extends import1.AppView<any> {
  _el_0:any;
  /*private*/ _appEl_0:import2.AppElement;
  _Tabs_0_4:import3.Tabs;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs_Host0,renderType_Tabs_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.selectOrCreateHostElement('ion-tabs',rootSelector,(null as any));
    this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0);
    var compView_0:any = viewFactory_Tabs0(this.viewUtils,this.injector(0),this._appEl_0);
    this._Tabs_0_4 = new import3.Tabs(this.parentInjector.get(import8.NavController,(null as any)),this.parentInjector.get(import9.ViewController,(null as any)),this.parentInjector.get(import10.App),this.parentInjector.get(import11.Config),new import12.ElementRef(this._el_0),this.parentInjector.get(import13.Platform),this.renderer,this.parentInjector.get(import14.DeepLinker));
    this._appEl_0.initComponent(this._Tabs_0_4,[],compView_0);
    compView_0.create(this._Tabs_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.Tabs) && (0 === requestNodeIndex))) { return this._Tabs_0_4; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    this.detectContentChildrenChanges(throwOnChange);
    this.detectViewChildrenChanges(throwOnChange);
    if (!throwOnChange) { if ((this.numberOfChecks === 0)) { this._Tabs_0_4.ngAfterViewInit(); } }
  }
}
function viewFactory_Tabs_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  if ((renderType_Tabs_Host === (null as any))) { (renderType_Tabs_Host = viewUtils.createRenderComponentType('',0,import15.ViewEncapsulation.None,[],{})); }
  return new _View_Tabs_Host0(viewUtils,parentInjector,declarationEl);
}
export const TabsNgFactory:import16.ComponentFactory<import3.Tabs> = new import16.ComponentFactory<import3.Tabs>('ion-tabs',viewFactory_Tabs_Host0,import3.Tabs);
const styles_Tabs:any[] = [];
var renderType_Tabs:import0.RenderComponentType = (null as any);
class _View_Tabs0 extends import1.AppView<import3.Tabs> {
  _viewQuery_TabHighlight_0:import17.QueryList<any>;
  _viewQuery_tabbar_1:import17.QueryList<any>;
  _viewQuery_portal_2:import17.QueryList<any>;
  _el_0:any;
  _anchor_1:any;
  /*private*/ _appEl_1:import2.AppElement;
  _TemplateRef_1_5:any;
  _NgFor_1_6:import18.NgFor;
  _el_2:any;
  _el_3:any;
  /*private*/ _appEl_3:import2.AppElement;
  /*private*/ _expr_0:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs0,renderType_Tabs,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_TabHighlight_0 = new import17.QueryList<any>();
    this._viewQuery_tabbar_1 = new import17.QueryList<any>();
    this._viewQuery_portal_2 = new import17.QueryList<any>();
    this._el_0 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_0,'class','tabbar');
    this.renderer.setElementAttribute(this._el_0,'role','tablist');
    this._anchor_1 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
    this._appEl_1 = new import2.AppElement(1,0,this,this._anchor_1);
    this._TemplateRef_1_5 = new import19.TemplateRef_(this._appEl_1,viewFactory_Tabs1);
    this._NgFor_1_6 = new import18.NgFor(this._appEl_1.vcRef,this._TemplateRef_1_5,this.parentInjector.get(import20.IterableDiffers),this.ref);
    this._el_2 = this.renderer.createElement(this._el_0,'div',(null as any));
    this.renderer.setElementAttribute(this._el_2,'class','tab-highlight');
    this.renderer.projectNodes(parentRenderNode,import4.flattenNestedViewRenderNodes(this.projectableNodes[0]));
    this._el_3 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_3,'tab-portal','');
    this._appEl_3 = new import2.AppElement(3,(null as any),this,this._el_3);
    this._expr_0 = import7.UNINITIALIZED;
    this._viewQuery_TabHighlight_0.reset([]);
    this.context._highlight = this._viewQuery_TabHighlight_0.first;
    this._viewQuery_tabbar_1.reset([new import12.ElementRef(this._el_0)]);
    this.context._tabbar = this._viewQuery_tabbar_1.first;
    this._viewQuery_portal_2.reset([this._appEl_3.vcRef]);
    this.context.portal = this._viewQuery_portal_2.first;
    this.init([],[
      this._el_0,
      this._anchor_1,
      this._el_2,
      this._el_3
    ]
    ,[],[]);
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import19.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; }
    if (((token === import18.NgFor) && (1 === requestNodeIndex))) { return this._NgFor_1_6; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    var changes:{[key: string]:import7.SimpleChange} = (null as any);
    changes = (null as any);
    const currVal_0:any = this.context._tabs;
    if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
      this._NgFor_1_6.ngForOf = currVal_0;
      if ((changes === (null as any))) { (changes = {}); }
      changes['ngForOf'] = new import7.SimpleChange(this._expr_0,currVal_0);
      this._expr_0 = currVal_0;
    }
    if ((changes !== (null as any))) { this._NgFor_1_6.ngOnChanges(changes); }
    if (!throwOnChange) { this._NgFor_1_6.ngDoCheck(); }
    this.detectContentChildrenChanges(throwOnChange);
    this.detectViewChildrenChanges(throwOnChange);
  }
}
export function viewFactory_Tabs0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<import3.Tabs> {
  if ((renderType_Tabs === (null as any))) { (renderType_Tabs = viewUtils.createRenderComponentType('/Users/dan/Dev/ionic2-build/dist/ionic-angular/components/tabs/tabs.ts class Tabs - inline template',1,import15.ViewEncapsulation.None,styles_Tabs,{})); }
  return new _View_Tabs0(viewUtils,parentInjector,declarationEl);
}
class _View_Tabs1 extends import1.AppView<any> {
  _el_0:any;
  _TabButton_0_3:import21.TabButton;
  _anchor_1:any;
  /*private*/ _appEl_1:import2.AppElement;
  _TemplateRef_1_5:any;
  _NgIf_1_6:import22.NgIf;
  _anchor_2:any;
  /*private*/ _appEl_2:import2.AppElement;
  _TemplateRef_2_5:any;
  _NgIf_2_6:import22.NgIf;
  _anchor_3:any;
  /*private*/ _appEl_3:import2.AppElement;
  _TemplateRef_3_5:any;
  _NgIf_3_6:import22.NgIf;
  _el_4:any;
  /*private*/ _expr_2:any;
  /*private*/ _expr_3:any;
  /*private*/ _expr_4:any;
  /*private*/ _expr_5:any;
  /*private*/ _expr_6:any;
  /*private*/ _expr_7:any;
  /*private*/ _expr_8:any;
  /*private*/ _expr_9:any;
  /*private*/ _expr_10:any;
  /*private*/ _expr_11:any;
  /*private*/ _expr_12:any;
  /*private*/ _expr_13:any;
  /*private*/ _expr_14:any;
  /*private*/ _expr_15:any;
  /*private*/ _expr_16:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs1,renderType_Tabs,import6.ViewType.EMBEDDED,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.renderer.createElement((null as any),'a',(null as any));
    this.renderer.setElementAttribute(this._el_0,'class','tab-button');
    this.renderer.setElementAttribute(this._el_0,'href','#');
    this.renderer.setElementAttribute(this._el_0,'role','tab');
    this._TabButton_0_3 = new import21.TabButton(this.parent.parentInjector.get(import11.Config),new import12.ElementRef(this._el_0),this.renderer);
    this._anchor_1 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
    this._appEl_1 = new import2.AppElement(1,0,this,this._anchor_1);
    this._TemplateRef_1_5 = new import19.TemplateRef_(this._appEl_1,viewFactory_Tabs2);
    this._NgIf_1_6 = new import22.NgIf(this._appEl_1.vcRef,this._TemplateRef_1_5);
    this._anchor_2 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
    this._appEl_2 = new import2.AppElement(2,0,this,this._anchor_2);
    this._TemplateRef_2_5 = new import19.TemplateRef_(this._appEl_2,viewFactory_Tabs3);
    this._NgIf_2_6 = new import22.NgIf(this._appEl_2.vcRef,this._TemplateRef_2_5);
    this._anchor_3 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
    this._appEl_3 = new import2.AppElement(3,0,this,this._anchor_3);
    this._TemplateRef_3_5 = new import19.TemplateRef_(this._appEl_3,viewFactory_Tabs4);
    this._NgIf_3_6 = new import22.NgIf(this._appEl_3.vcRef,this._TemplateRef_3_5);
    this._el_4 = this.renderer.createElement(this._el_0,'div',(null as any));
    this.renderer.setElementAttribute(this._el_4,'class','button-effect');
    this._expr_2 = import7.UNINITIALIZED;
    this._expr_3 = import7.UNINITIALIZED;
    var disposable_0:Function = this.renderer.listen(this._el_0,'ionSelect',this.eventHandler(this._handle_ionSelect_0_0.bind(this)));
    var disposable_1:Function = this.renderer.listen(this._el_0,'click',this.eventHandler(this._handle_click_0_1.bind(this)));
    this._expr_4 = import7.UNINITIALIZED;
    this._expr_5 = import7.UNINITIALIZED;
    this._expr_6 = import7.UNINITIALIZED;
    this._expr_7 = import7.UNINITIALIZED;
    this._expr_8 = import7.UNINITIALIZED;
    this._expr_9 = import7.UNINITIALIZED;
    this._expr_10 = import7.UNINITIALIZED;
    this._expr_11 = import7.UNINITIALIZED;
    this._expr_12 = import7.UNINITIALIZED;
    this._expr_13 = import7.UNINITIALIZED;
    const subscription_0:any = this._TabButton_0_3.ionSelect.subscribe(this.eventHandler(this._handle_ionSelect_0_0.bind(this)));
    this._expr_14 = import7.UNINITIALIZED;
    this._expr_15 = import7.UNINITIALIZED;
    this._expr_16 = import7.UNINITIALIZED;
    this.init([].concat([this._el_0]),[
      this._el_0,
      this._anchor_1,
      this._anchor_2,
      this._anchor_3,
      this._el_4
    ]
    ,[
      disposable_0,
      disposable_1
    ]
    ,[subscription_0]);
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import19.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; }
    if (((token === import22.NgIf) && (1 === requestNodeIndex))) { return this._NgIf_1_6; }
    if (((token === import19.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
    if (((token === import22.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6; }
    if (((token === import19.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
    if (((token === import22.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6; }
    if (((token === import21.TabButton) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._TabButton_0_3; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    const currVal_4:any = this.context.$implicit;
    if (import4.checkBinding(throwOnChange,this._expr_4,currVal_4)) {
      this._TabButton_0_3.tab = currVal_4;
      this._expr_4 = currVal_4;
    }
    if (((this.numberOfChecks === 0) && !throwOnChange)) { this._TabButton_0_3.ngOnInit(); }
    const currVal_14:any = this.context.$implicit.tabIcon;
    if (import4.checkBinding(throwOnChange,this._expr_14,currVal_14)) {
      this._NgIf_1_6.ngIf = currVal_14;
      this._expr_14 = currVal_14;
    }
    const currVal_15:any = this.context.$implicit.tabTitle;
    if (import4.checkBinding(throwOnChange,this._expr_15,currVal_15)) {
      this._NgIf_2_6.ngIf = currVal_15;
      this._expr_15 = currVal_15;
    }
    const currVal_16:any = this.context.$implicit.tabBadge;
    if (import4.checkBinding(throwOnChange,this._expr_16,currVal_16)) {
      this._NgIf_3_6.ngIf = currVal_16;
      this._expr_16 = currVal_16;
    }
    this.detectContentChildrenChanges(throwOnChange);
    const currVal_2:boolean = !this.context.$implicit.enabled;
    if (import4.checkBinding(throwOnChange,this._expr_2,currVal_2)) {
      this.renderer.setElementClass(this._el_0,'tab-disabled',currVal_2);
      this._expr_2 = currVal_2;
    }
    const currVal_3:boolean = !this.context.$implicit.show;
    if (import4.checkBinding(throwOnChange,this._expr_3,currVal_3)) {
      this.renderer.setElementClass(this._el_0,'tab-hidden',currVal_3);
      this._expr_3 = currVal_3;
    }
    const currVal_5:any = this._TabButton_0_3.tab._btnId;
    if (import4.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
      this.renderer.setElementAttribute(this._el_0,'id',((currVal_5 == (null as any))? (null as any): currVal_5.toString()));
      this._expr_5 = currVal_5;
    }
    const currVal_6:any = this._TabButton_0_3.tab._tabId;
    if (import4.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
      this.renderer.setElementAttribute(this._el_0,'aria-controls',((currVal_6 == (null as any))? (null as any): currVal_6.toString()));
      this._expr_6 = currVal_6;
    }
    const currVal_7:any = this._TabButton_0_3.tab.isSelected;
    if (import4.checkBinding(throwOnChange,this._expr_7,currVal_7)) {
      this.renderer.setElementAttribute(this._el_0,'aria-selected',((currVal_7 == (null as any))? (null as any): currVal_7.toString()));
      this._expr_7 = currVal_7;
    }
    const currVal_8:any = this._TabButton_0_3.hasTitle;
    if (import4.checkBinding(throwOnChange,this._expr_8,currVal_8)) {
      this.renderer.setElementClass(this._el_0,'has-title',currVal_8);
      this._expr_8 = currVal_8;
    }
    const currVal_9:any = this._TabButton_0_3.hasIcon;
    if (import4.checkBinding(throwOnChange,this._expr_9,currVal_9)) {
      this.renderer.setElementClass(this._el_0,'has-icon',currVal_9);
      this._expr_9 = currVal_9;
    }
    const currVal_10:any = this._TabButton_0_3.hasTitleOnly;
    if (import4.checkBinding(throwOnChange,this._expr_10,currVal_10)) {
      this.renderer.setElementClass(this._el_0,'has-title-only',currVal_10);
      this._expr_10 = currVal_10;
    }
    const currVal_11:any = this._TabButton_0_3.hasIconOnly;
    if (import4.checkBinding(throwOnChange,this._expr_11,currVal_11)) {
      this.renderer.setElementClass(this._el_0,'icon-only',currVal_11);
      this._expr_11 = currVal_11;
    }
    const currVal_12:any = this._TabButton_0_3.hasBadge;
    if (import4.checkBinding(throwOnChange,this._expr_12,currVal_12)) {
      this.renderer.setElementClass(this._el_0,'has-badge',currVal_12);
      this._expr_12 = currVal_12;
    }
    const currVal_13:any = this._TabButton_0_3.disHover;
    if (import4.checkBinding(throwOnChange,this._expr_13,currVal_13)) {
      this.renderer.setElementClass(this._el_0,'disable-hover',currVal_13);
      this._expr_13 = currVal_13;
    }
    this.detectViewChildrenChanges(throwOnChange);
  }
  private _handle_ionSelect_0_0($event:any):boolean {
    this.markPathToRootAsCheckOnce();
    const pd_0:any = ((<any>this.parent.context.select($event)) !== false);
    return (true && pd_0);
  }
  private _handle_click_0_1($event:any):boolean {
    this.markPathToRootAsCheckOnce();
    const pd_0:any = ((<any>this._TabButton_0_3.onClick()) !== false);
    return (true && pd_0);
  }
}
function viewFactory_Tabs1(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  return new _View_Tabs1(viewUtils,parentInjector,declarationEl);
}
class _View_Tabs2 extends import1.AppView<any> {
  _el_0:any;
  _Icon_0_3:import23.Icon;
  /*private*/ _expr_0:any;
  /*private*/ _expr_1:any;
  /*private*/ _expr_2:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs2,renderType_Tabs,import6.ViewType.EMBEDDED,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.renderer.createElement((null as any),'ion-icon',(null as any));
    this.renderer.setElementAttribute(this._el_0,'class','tab-button-icon');
    this.renderer.setElementAttribute(this._el_0,'role','img');
    this._Icon_0_3 = new import23.Icon(this.parent.parent.parentInjector.get(import11.Config),new import12.ElementRef(this._el_0),this.renderer);
    this._expr_0 = import7.UNINITIALIZED;
    this._expr_1 = import7.UNINITIALIZED;
    this._expr_2 = import7.UNINITIALIZED;
    this.init([].concat([this._el_0]),[this._el_0],[],[]);
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import23.Icon) && (0 === requestNodeIndex))) { return this._Icon_0_3; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    const currVal_0:any = this.parent.context.$implicit.tabIcon;
    if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
      this._Icon_0_3.name = currVal_0;
      this._expr_0 = currVal_0;
    }
    const currVal_1:any = this.parent.context.$implicit.isSelected;
    if (import4.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
      this._Icon_0_3.isActive = currVal_1;
      this._expr_1 = currVal_1;
    }
    this.detectContentChildrenChanges(throwOnChange);
    const currVal_2:any = this._Icon_0_3._hidden;
    if (import4.checkBinding(throwOnChange,this._expr_2,currVal_2)) {
      this.renderer.setElementClass(this._el_0,'hide',currVal_2);
      this._expr_2 = currVal_2;
    }
    this.detectViewChildrenChanges(throwOnChange);
  }
  destroyInternal():void {
    this._Icon_0_3.ngOnDestroy();
  }
}
function viewFactory_Tabs2(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  return new _View_Tabs2(viewUtils,parentInjector,declarationEl);
}
class _View_Tabs3 extends import1.AppView<any> {
  _el_0:any;
  _text_1:any;
  /*private*/ _expr_0:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs3,renderType_Tabs,import6.ViewType.EMBEDDED,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.renderer.createElement((null as any),'span',(null as any));
    this.renderer.setElementAttribute(this._el_0,'class','tab-button-text');
    this._text_1 = this.renderer.createText(this._el_0,'',(null as any));
    this._expr_0 = import7.UNINITIALIZED;
    this.init([].concat([this._el_0]),[
      this._el_0,
      this._text_1
    ]
    ,[],[]);
    return (null as any);
  }
  detectChangesInternal(throwOnChange:boolean):void {
    this.detectContentChildrenChanges(throwOnChange);
    const currVal_0:any = import4.interpolate(1,'',this.parent.context.$implicit.tabTitle,'');
    if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
      this.renderer.setText(this._text_1,currVal_0);
      this._expr_0 = currVal_0;
    }
    this.detectViewChildrenChanges(throwOnChange);
  }
}
function viewFactory_Tabs3(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  return new _View_Tabs3(viewUtils,parentInjector,declarationEl);
}
class _View_Tabs4 extends import1.AppView<any> {
  _el_0:any;
  _NgClass_0_3:import24.NgClass;
  _Badge_0_4:import25.Badge;
  _text_1:any;
  /*private*/ _expr_0:any;
  /*private*/ _expr_1:any;
  /*private*/ _expr_2:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tabs4,renderType_Tabs,import6.ViewType.EMBEDDED,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.renderer.createElement((null as any),'ion-badge',(null as any));
    this.renderer.setElementAttribute(this._el_0,'class','tab-badge');
    this._NgClass_0_3 = new import24.NgClass(this.parent.parent.parentInjector.get(import20.IterableDiffers),this.parent.parent.parentInjector.get(import26.KeyValueDiffers),new import12.ElementRef(this._el_0),this.renderer);
    this._Badge_0_4 = new import25.Badge(this.parent.parent.parentInjector.get(import11.Config),new import12.ElementRef(this._el_0),this.renderer);
    this._text_1 = this.renderer.createText(this._el_0,'',(null as any));
    this._expr_0 = import7.UNINITIALIZED;
    this._expr_1 = import7.UNINITIALIZED;
    this._expr_2 = import7.UNINITIALIZED;
    this.init([].concat([this._el_0]),[
      this._el_0,
      this._text_1
    ]
    ,[],[]);
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import24.NgClass) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._NgClass_0_3; }
    if (((token === import25.Badge) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._Badge_0_4; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    const currVal_0:any = 'tab-badge';
    if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
      this._NgClass_0_3.initialClasses = currVal_0;
      this._expr_0 = currVal_0;
    }
    const currVal_1:any = ('badge-' + this.parent.context.$implicit.tabBadgeStyle);
    if (import4.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
      this._NgClass_0_3.ngClass = currVal_1;
      this._expr_1 = currVal_1;
    }
    if (!throwOnChange) { this._NgClass_0_3.ngDoCheck(); }
    this.detectContentChildrenChanges(throwOnChange);
    const currVal_2:any = import4.interpolate(1,'',this.parent.context.$implicit.tabBadge,'');
    if (import4.checkBinding(throwOnChange,this._expr_2,currVal_2)) {
      this.renderer.setText(this._text_1,currVal_2);
      this._expr_2 = currVal_2;
    }
    this.detectViewChildrenChanges(throwOnChange);
  }
}
function viewFactory_Tabs4(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  return new _View_Tabs4(viewUtils,parentInjector,declarationEl);
}