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