import{i18n as e}from"../i18n/i18n.js";import{SDKModel as n}from"../sdk/sdk.js";import{Widget as t,Fragment as i}from"../ui/ui.js";const s={thisPanelHasBeenDeprecatedIn:"This panel has been deprecated in favor of the {PH1} interface, which has equivalent functionality."},a=e.registerUIStrings("devices/DevicesView.js",s);Devices.DevicesView=class extends t.VBox{constructor(){super(!0);const t=this.contentElement.createChild("span"),r=i.html`<a class="devtools-link" role="link" tabindex="0" href="#" style="display: inline; cursor: pointer;">chrome://inspect/#devices</a>`;self.onInvokeElement(r,e=>{const t=n.TargetManager.instance().mainTarget();t&&t.pageAgent().invoke_navigate({url:"chrome://inspect/#devices"}),e.consume(!0)}),t.style.padding="5px",t.appendChild(e.getFormatLocalizedString(a,s.thisPanelHasBeenDeprecatedIn,{PH1:r})),this.setDefaultFocusedElement(r)}};
