import{Settings as e}from"../common/common.js";import{i18n as t}from"../i18n/i18n.js";import{Runtime as o}from"../root/root.js";import{ViewManager as a,ActionRegistration as s}from"../ui/ui.js";const i={whatsNew:"What's New",showWhatsNew:"Show What's New",releaseNotes:"Release notes",reportADevtoolsIssue:"Report a DevTools issue",bug:"bug",showWhatsNewAfterEachUpdate:"Show What's New after each update",doNotShowWhatsNewAfterEachUpdate:"Do not show What's New after each update"},r=t.registerUIStrings("help/help-meta.ts",i),n=t.getLazilyComputedLocalizedString.bind(void 0,r);let l;async function c(){return l||(await o.Runtime.instance().loadModulePromise("help"),l=await import("./help.js")),l}a.registerViewExtension({location:"drawer-view",id:"release-note",title:n(i.whatsNew),commandPrompt:n(i.showWhatsNew),persistence:"closeable",order:1,loadView:async()=>(await c()).ReleaseNoteView.ReleaseNoteView.instance()}),s.registerActionExtension({category:s.ActionCategory.HELP,actionId:"help.release-notes",title:n(i.releaseNotes),loadActionDelegate:async()=>(await c()).Help.ReleaseNotesActionDelegate.instance()}),s.registerActionExtension({category:s.ActionCategory.HELP,actionId:"help.report-issue",title:n(i.reportADevtoolsIssue),loadActionDelegate:async()=>(await c()).Help.ReportIssueActionDelegate.instance(),tags:[n(i.bug)]}),e.registerSettingExtension({category:e.SettingCategoryObject.APPEARANCE,title:n(i.showWhatsNewAfterEachUpdate),settingName:"help.show-release-note",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!0,options:[{value:!0,title:n(i.showWhatsNewAfterEachUpdate)},{value:!1,title:n(i.doNotShowWhatsNewAfterEachUpdate)}]});export{i as UIStrings};
