import{Runtime as e}from"../root/root.js";import{ViewManager as t}from"../ui/ui.js";import{i18n as i}from"../i18n/i18n.js";const o={showEventListenerBreakpoints:"Show Event Listener Breakpoints",eventListenerBreakpoints:"Event Listener Breakpoints",showCspViolationBreakpoints:"Show CSP Violation Breakpoints",cspViolationBreakpoints:"CSP Violation Breakpoints",showXhrfetchBreakpoints:"Show XHR/fetch Breakpoints",xhrfetchBreakpoints:"XHR/fetch Breakpoints",showDomBreakpoints:"Show DOM Breakpoints",domBreakpoints:"DOM Breakpoints",showGlobalListeners:"Show Global Listeners",globalListeners:"Global Listeners",page:"Page",showPage:"Show Page",overrides:"Overrides",showOverrides:"Show Overrides",contentScripts:"Content scripts",showContentScripts:"Show Content scripts"},r=i.registerUIStrings("browser_debugger/browser_debugger-meta.ts",o),n=i.getLazilyComputedLocalizedString.bind(void 0,r);let s,a;async function c(){return s||(await e.Runtime.instance().loadModulePromise("browser_debugger"),s=await import("./browser_debugger.js")),s}async function p(){return a||(await e.Runtime.instance().loadModulePromise("sources"),a=await import("../sources/sources.js")),a}t.registerViewExtension({loadView:async()=>(await c()).EventListenerBreakpointsSidebarPane.EventListenerBreakpointsSidebarPane.instance(),id:"sources.eventListenerBreakpoints",location:"sources.sidebar-bottom",commandPrompt:n(o.showEventListenerBreakpoints),title:n(o.eventListenerBreakpoints),order:9,persistence:"permanent"}),t.registerViewExtension({loadView:async()=>(await c()).CSPViolationBreakpointsSidebarPane.CSPViolationBreakpointsSidebarPane.instance(),id:"sources.cspViolationBreakpoints",location:"sources.sidebar-bottom",commandPrompt:n(o.showCspViolationBreakpoints),title:n(o.cspViolationBreakpoints),order:10,persistence:"permanent"}),t.registerViewExtension({loadView:async()=>(await c()).XHRBreakpointsSidebarPane.XHRBreakpointsSidebarPane.instance(),id:"sources.xhrBreakpoints",location:"sources.sidebar-bottom",commandPrompt:n(o.showXhrfetchBreakpoints),title:n(o.xhrfetchBreakpoints),order:5,persistence:"permanent",hasToolbar:!0}),t.registerViewExtension({loadView:async()=>(await c()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"sources.domBreakpoints",location:"sources.sidebar-bottom",commandPrompt:n(o.showDomBreakpoints),title:n(o.domBreakpoints),order:7,persistence:"permanent"}),t.registerViewExtension({loadView:async()=>(await c()).ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane.instance(),id:"sources.globalListeners",location:"sources.sidebar-bottom",commandPrompt:n(o.showGlobalListeners),title:n(o.globalListeners),order:8,persistence:"permanent",hasToolbar:!0}),t.registerViewExtension({loadView:async()=>(await c()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"elements.domBreakpoints",location:"elements-sidebar",commandPrompt:n(o.showDomBreakpoints),title:n(o.domBreakpoints),order:6,persistence:"permanent"}),t.registerViewExtension({location:"navigator-view",id:"navigator-network",title:n(o.page),commandPrompt:n(o.showPage),order:2,persistence:"permanent",loadView:async()=>(await p()).SourcesNavigator.NetworkNavigatorView.instance()}),t.registerViewExtension({location:"navigator-view",id:"navigator-overrides",title:n(o.overrides),commandPrompt:n(o.showOverrides),order:4,persistence:"permanent",loadView:async()=>(await p()).SourcesNavigator.OverridesNavigatorView.instance()}),t.registerViewExtension({location:"navigator-view",id:"navigator-contentScripts",title:n(o.contentScripts),commandPrompt:n(o.showContentScripts),order:5,persistence:"permanent",loadView:async()=>(await p()).SourcesNavigator.ContentScriptsNavigatorView.instance()});export{o as UIStrings};
