import*as i18n from"../i18n/i18n.js";import*as UI from"../ui/ui.js";import{PlayerEventsView}from"./EventDisplayTable.js";import{PlayerEventsTimeline}from"./EventTimelineView.js";import{PlayerMessagesView}from"./PlayerMessagesView.js";import{PlayerPropertiesView}from"./PlayerPropertiesView.js";const UIStrings={properties:"Properties",playerProperties:"Player properties",events:"Events",playerEvents:"Player events",messages:"Messages",playerMessages:"Player messages",timeline:"Timeline",playerTimeline:"Player timeline"},str_=i18n.i18n.registerUIStrings("media/PlayerDetailView.ts",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class PlayerDetailView extends UI.TabbedPane.TabbedPane{constructor(){super(),this._eventView=new PlayerEventsView,this._propertyView=new PlayerPropertiesView,this._messageView=new PlayerMessagesView,this._timelineView=new PlayerEventsTimeline,this.appendTab("properties",i18nString(UIStrings.properties),this._propertyView,i18nString(UIStrings.playerProperties)),this.appendTab("events",i18nString(UIStrings.events),this._eventView,i18nString(UIStrings.playerEvents)),this.appendTab("messages",i18nString(UIStrings.messages),this._messageView,i18nString(UIStrings.playerMessages)),this.appendTab("timeline",i18nString(UIStrings.timeline),this._timelineView,i18nString(UIStrings.playerTimeline))}onProperty(e){this._propertyView.onProperty(e)}onError(e){}onMessage(e){this._messageView.addMessage(e)}onEvent(e){this._eventView.onEvent(e),this._timelineView.onEvent(e)}}