"use strict";(self.webpackChunka_jupyterlab_session=self.webpackChunka_jupyterlab_session||[]).push([[568],{568:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var i=a(980),n=a(196),s=a(571);const r={id:"a-jupyterlab-session:plugin",autoStart:!0,requires:[n.IDefaultFileBrowser],activate:async(e,t)=>{console.log("JupyterLab extension a-jupyterlab-session is activated!");const a=`${(new Date).toLocaleDateString("en-us",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h24"}).replace(/\//g,".").replace(", ","-")}-${(0,s.v4)().slice(0,8)}`;await e.serviceManager.contents.newUntitled({type:"directory",path:i.PathExt.dirname(a)}).then((async t=>{await e.serviceManager.contents.rename(t.path,a)}));const n=i.PathExt.join("tree/",a);e.commands.execute("filebrowser:open-path",{path:n})}}}}]);