import*as i18n from"../i18n/i18n.js";import{VBox}from"./Widget.js";const UIStrings={devtoolsWasDisconnectedFromThe:"DevTools was disconnected from the page.",oncePageIsReloadedDevtoolsWill:"Once page is reloaded, DevTools will automatically reconnect."},str_=i18n.i18n.registerUIStrings("ui/TargetCrashedScreen.js",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class TargetCrashedScreen extends VBox{constructor(e){super(!0),this.registerRequiredCSS("ui/targetCrashedScreen.css",{enableLegacyPatching:!1}),this.contentElement.createChild("div","message").textContent=i18nString(UIStrings.devtoolsWasDisconnectedFromThe),this.contentElement.createChild("div","message").textContent=i18nString(UIStrings.oncePageIsReloadedDevtoolsWill),this._hideCallback=e}willHide(){this._hideCallback.call(null)}}