"use strict";(self.webpackChunkdatabrix_hub_extension=self.webpackChunkdatabrix_hub_extension||[]).push([[509],{509:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var o=n(974),a=n(607),i=n(605);const r={id:"databrix-hub-extension:connectionlost",description:"Provides a service to be notified when the connection to the hub server is lost.",requires:[o.JupyterFrontEnd.IPaths,i.ITranslator],optional:[o.JupyterLab.IInfo],activate:(e,t,n,o)=>{const i=n.load("jupyterlab");return async(e,t)=>{const n=await(0,a.showDialog)({title:i.__("Server unavailable or unreachable"),body:i.__("Your server is not running.\nYou have been inactive for a long time, or Jupyterhub has shut down your server.\nPlease Login again!"),buttons:[a.Dialog.okButton({label:i.__("Restart")}),a.Dialog.cancelButton({label:i.__("Dismiss")})]});o&&(o.isConnected=!0),n.button.accept&&(window.location.href="")}},autoStart:!0,provides:o.IConnectionLost}}}]);