import*as i18n from"../i18n/i18n.js";import*as Root from"../root/root.js";import*as UI from"../ui/ui.js";const UIStrings={inputs:"Inputs",pause:"Pause",resume:"Resume",showInputs:"Show Inputs",startRecording:"Start recording",startReplaying:"Start replaying",stopRecording:"Stop recording"},str_=i18n.i18n.registerUIStrings("input/input-meta.ts",UIStrings),i18nLazyString=i18n.i18n.getLazilyComputedLocalizedString.bind(void 0,str_);let loadedInputModule;async function loadInputModule(){return loadedInputModule||(await Root.Runtime.Runtime.instance().loadModulePromise("input"),loadedInputModule=await import("./input.js")),loadedInputModule}UI.ViewManager.registerViewExtension({location:"drawer-view",id:"Inputs",title:i18nLazyString(UIStrings.inputs),commandPrompt:i18nLazyString(UIStrings.showInputs),persistence:"closeable",order:7,loadView:async()=>(await loadInputModule()).InputTimeline.InputTimeline.instance(),experiment:Root.Runtime.ExperimentName.TIMELINE_REPLAY_EVENT}),UI.ActionRegistration.registerActionExtension({actionId:"input.toggle-recording",iconClass:"largeicon-start-recording",toggleable:!0,toggledIconClass:"largeicon-stop-recording",toggleWithRedColor:!0,loadActionDelegate:async()=>(await loadInputModule()).InputTimeline.ActionDelegate.instance(),category:UI.ActionRegistration.ActionCategory.INPUTS,experiment:Root.Runtime.ExperimentName.TIMELINE_REPLAY_EVENT,options:[{value:!0,title:i18nLazyString(UIStrings.startRecording)},{value:!1,title:i18nLazyString(UIStrings.stopRecording)}]}),UI.ActionRegistration.registerActionExtension({actionId:"input.start-replaying",iconClass:"largeicon-play",toggleable:!1,loadActionDelegate:async()=>(await loadInputModule()).InputTimeline.ActionDelegate.instance(),category:UI.ActionRegistration.ActionCategory.INPUTS,experiment:Root.Runtime.ExperimentName.TIMELINE_REPLAY_EVENT,options:[{value:!0,title:i18nLazyString(UIStrings.startReplaying)}]}),UI.ActionRegistration.registerActionExtension({actionId:"input.toggle-pause",iconClass:"largeicon-pause",toggleable:!0,toggledIconClass:"largeicon-resume",loadActionDelegate:async()=>(await loadInputModule()).InputTimeline.ActionDelegate.instance(),category:UI.ActionRegistration.ActionCategory.INPUTS,experiment:Root.Runtime.ExperimentName.TIMELINE_REPLAY_EVENT,options:[{value:!0,title:i18nLazyString(UIStrings.pause)},{value:!1,title:i18nLazyString(UIStrings.resume)}]});