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