import*as Common from"../common/common.js";import*as Root from"../root/root.js";import*as SDK from"../sdk/sdk.js";import*as UI from"../ui/ui.js";import*as i18n from"../i18n/i18n.js";const UIStrings={issues:"Issues",showIssues:"Show Issues",cspViolations:"CSP Violations",showCspViolations:"Show CSP Violations"},str_=i18n.i18n.registerUIStrings("issues/issues-meta.ts",UIStrings),i18nLazyString=i18n.i18n.getLazilyComputedLocalizedString.bind(void 0,str_);let loadedIssuesModule;async function loadIssuesModule(){return loadedIssuesModule||(await Root.Runtime.Runtime.instance().loadModulePromise("issues"),loadedIssuesModule=await import("./issues.js")),loadedIssuesModule}UI.ViewManager.registerViewExtension({location:"drawer-view",id:"issues-pane",title:i18nLazyString(UIStrings.issues),commandPrompt:i18nLazyString(UIStrings.showIssues),order:100,persistence:"closeable",loadView:async()=>(await loadIssuesModule()).IssuesPane.IssuesPane.instance()}),UI.ViewManager.registerViewExtension({location:"drawer-view",id:"csp-violations-pane",title:i18nLazyString(UIStrings.cspViolations),commandPrompt:i18nLazyString(UIStrings.showCspViolations),order:100,persistence:"closeable",loadView:async()=>(await loadIssuesModule()).CSPViolationsView.CSPViolationsView.instance(),experiment:Root.Runtime.ExperimentName.CSP_VIOLATIONS_VIEW}),Common.Revealer.registerRevealer({contextTypes:()=>[SDK.Issue.Issue],destination:Common.Revealer.RevealerDestination.ISSUES_VIEW,loadRevealer:async()=>(await loadIssuesModule()).IssueRevealer.IssueRevealer.instance()});