import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; @ Component ( { selector : 'settings-general' , styleUrls : [ `../../../../css/global/components-global.scss` , `../../../../css/component/settings/general/settings-general.component.scss` , ] , template : `
		<ul class="general">
			<settings-general-menu [selectedMenu]="_selectedMenu" (onMenuSelected)="onMenuSelected($event)">
			</settings-general-menu>
			<ng-container [ngSwitch]="_selectedMenu">
				<settings-general-launch *ngSwitchCase="'launch'"></settings-general-launch>
				<settings-general-localization *ngSwitchCase="'localization'"></settings-general-localization>
				<settings-general-third-party *ngSwitchCase="'third-party'"></settings-general-third-party>
				<settings-general-bug-report *ngSwitchCase="'bugreport'"></settings-general-bug-report>
				<settings-decktracker-beta *ngSwitchCase="'beta'"></settings-decktracker-beta>
				<settings-broadcast *ngSwitchCase="'broadcast'"></settings-broadcast>
			</ng-container>
		</ul>
	` , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class SettingsGeneralComponent { _selectedMenu : string ; @ Input ( ) set selectedMenu ( value ) { this . _selectedMenu = value || 'launch' ; } onMenuSelected ( selectedMenuItem ) { this . selectedMenu = selectedMenuItem ; } }