import{ls as e}from"../platform/platform.js";import{Runtime as t}from"../root/root.js";import{ViewManager as i}from"../ui/ui.js";let o,r;async function a(){return o||(await t.Runtime.instance().loadModulePromise("browser_debugger"),o=await import("./browser_debugger.js")),o}async function n(){return r||(await t.Runtime.instance().loadModulePromise("sources"),r=await import("../sources/sources.js")),r}i.registerViewExtension({loadView:async()=>(await a()).EventListenerBreakpointsSidebarPane.EventListenerBreakpointsSidebarPane.instance(),id:"sources.eventListenerBreakpoints",location:"sources.sidebar-bottom",commandPrompt:"Show Elements",title:()=>e`Event Listener Breakpoints`,order:9,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).CSPViolationBreakpointsSidebarPane.CSPViolationBreakpointsSidebarPane.instance(),id:"sources.cspViolationBreakpoints",location:"sources.sidebar-bottom",commandPrompt:"Show CSP Violation Breakpoints",title:()=>e`CSP Violation Breakpoints`,order:10,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).XHRBreakpointsSidebarPane.XHRBreakpointsSidebarPane.instance(),id:"sources.xhrBreakpoints",location:"sources.sidebar-bottom",commandPrompt:"Show XHR/fetch Breakpoints",title:()=>e`XHR/fetch Breakpoints`,order:5,persistence:"permanent",hasToolbar:!0}),i.registerViewExtension({loadView:async()=>(await a()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"sources.domBreakpoints",location:"sources.sidebar-bottom",commandPrompt:"Show DOM Breakpoints",title:()=>e`DOM Breakpoints`,order:7,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane.instance(),id:"sources.globalListeners",location:"sources.sidebar-bottom",commandPrompt:"Show Global Listeners",title:()=>e`Global Listeners`,order:8,persistence:"permanent",hasToolbar:!0}),i.registerViewExtension({loadView:async()=>(await a()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"elements.domBreakpoints",location:"elements-sidebar",commandPrompt:"Show DOM Breakpoints",title:()=>e`DOM Breakpoints`,order:6,persistence:"permanent"}),i.registerViewExtension({location:"navigator-view",id:"navigator-network",title:()=>e`Page`,commandPrompt:"Show Page",order:2,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.NetworkNavigatorView.instance()}),i.registerViewExtension({location:"navigator-view",id:"navigator-overrides",title:()=>e`Overrides`,commandPrompt:"Show Overrides",order:4,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.OverridesNavigatorView.instance()}),i.registerViewExtension({location:"navigator-view",id:"navigator-contentScripts",title:()=>e`Content scripts`,commandPrompt:"Show Content scripts",order:5,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.ContentScriptsNavigatorView.instance()});
