/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([["packages_tree-extension_lib_index_js"],{

/***/ "../packages/tree-extension/lib/index.js":
/*!***********************************************!*\
  !*** ../packages/tree-extension/lib/index.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @jupyterlab/apputils */ \"webpack/sharing/consume/default/@jupyterlab/apputils/@jupyterlab/apputils\");\n/* harmony import */ var _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @jupyterlab/filebrowser */ \"webpack/sharing/consume/default/@jupyterlab/filebrowser/@jupyterlab/filebrowser\");\n/* harmony import */ var _jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jupyterlab_running__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @jupyterlab/running */ \"webpack/sharing/consume/default/@jupyterlab/running/@jupyterlab/running\");\n/* harmony import */ var _jupyterlab_running__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_running__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @jupyterlab/translation */ \"webpack/sharing/consume/default/@jupyterlab/translation/@jupyterlab/translation\");\n/* harmony import */ var _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_translation__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @jupyterlab/ui-components */ \"webpack/sharing/consume/default/@jupyterlab/ui-components/@jupyterlab/ui-components\");\n/* harmony import */ var _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _lumino_widgets__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @lumino/widgets */ \"webpack/sharing/consume/default/@lumino/widgets/@lumino/widgets\");\n/* harmony import */ var _lumino_widgets__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_lumino_widgets__WEBPACK_IMPORTED_MODULE_5__);\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n\n\n\n\n\n/**\n * Plugin to add extra buttons to the file browser to create new notebooks and files\n */\nconst newFiles = {\n    id: '@retrolab/tree-extension:buttons',\n    requires: [_jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__.IFileBrowserFactory],\n    autoStart: true,\n    activate: (app, filebrowser) => {\n        const { commands } = app;\n        const browser = filebrowser.defaultBrowser;\n        // wrapper commands to be able to override the label\n        const newNotebookCommand = 'tree:new-notebook';\n        commands.addCommand(newNotebookCommand, {\n            label: 'New Notebook',\n            icon: _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__.notebookIcon,\n            execute: () => {\n                return commands.execute('notebook:create-new');\n            }\n        });\n        const newNotebook = new _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.CommandToolbarButton({\n            commands,\n            id: newNotebookCommand\n        });\n        const newFile = new _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.CommandToolbarButton({\n            commands,\n            id: 'filebrowser:create-new-file'\n        });\n        browser.toolbar.insertItem(0, 'new-notebook', newNotebook);\n        browser.toolbar.insertItem(1, 'new-file', newFile);\n    }\n};\n/**\n * Plugin to add a \"New Console\" button to the file browser toolbar.\n */\nconst newConsole = {\n    id: '@retrolab/tree-extension:new-console',\n    requires: [_jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__.IFileBrowserFactory],\n    autoStart: true,\n    activate: (app, filebrowser) => {\n        const { commands } = app;\n        const browser = filebrowser.defaultBrowser;\n        const newConsoleCommand = 'tree:new-console';\n        commands.addCommand(newConsoleCommand, {\n            label: 'New Console',\n            icon: _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__.consoleIcon,\n            execute: () => {\n                return commands.execute('console:create');\n            }\n        });\n        const newConsole = new _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.CommandToolbarButton({\n            commands,\n            id: newConsoleCommand\n        });\n        browser.toolbar.insertItem(2, 'new-console', newConsole);\n    }\n};\n/**\n * Plugin to add a \"New Terminal\" button to the file browser toolbar.\n */\nconst newTerminal = {\n    id: '@retrolab/tree-extension:new-terminal',\n    requires: [_jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__.IFileBrowserFactory],\n    autoStart: true,\n    activate: (app, filebrowser) => {\n        const { commands } = app;\n        const browser = filebrowser.defaultBrowser;\n        const newTerminalCommand = 'tree:new-terminal';\n        commands.addCommand(newTerminalCommand, {\n            label: 'New Terminal',\n            icon: _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__.terminalIcon,\n            execute: () => {\n                return commands.execute('terminal:create-new');\n            }\n        });\n        const newTerminal = new _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.CommandToolbarButton({\n            commands,\n            id: newTerminalCommand\n        });\n        browser.toolbar.insertItem(3, 'new-terminal', newTerminal);\n    }\n};\n/**\n * A plugin to add the file browser widget to an ILabShell\n */\nconst browserWidget = {\n    id: '@jupyterlab-classic/tree-extension:widget',\n    requires: [_jupyterlab_filebrowser__WEBPACK_IMPORTED_MODULE_1__.IFileBrowserFactory, _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_3__.ITranslator],\n    optional: [_jupyterlab_running__WEBPACK_IMPORTED_MODULE_2__.IRunningSessionManagers],\n    autoStart: true,\n    activate: (app, factory, translator, manager) => {\n        const tabPanel = new _lumino_widgets__WEBPACK_IMPORTED_MODULE_5__.TabPanel({ tabPlacement: 'top', tabsMovable: true });\n        tabPanel.addClass('jp-TreePanel');\n        const { defaultBrowser: browser } = factory;\n        browser.title.label = 'Files';\n        tabPanel.addWidget(browser);\n        tabPanel.tabBar.addTab(browser.title);\n        if (manager) {\n            const running = new _jupyterlab_running__WEBPACK_IMPORTED_MODULE_2__.RunningSessions(manager, translator);\n            running.id = 'jp-running-sessions';\n            running.title.label = 'Running';\n            running.title.icon = _jupyterlab_ui_components__WEBPACK_IMPORTED_MODULE_4__.runningIcon;\n            tabPanel.addWidget(running);\n            tabPanel.tabBar.addTab(running.title);\n        }\n        app.shell.add(tabPanel, 'main', { rank: 100 });\n    }\n};\n/**\n * Export the plugins as default.\n */\nconst plugins = [\n    newFiles,\n    newConsole,\n    newTerminal,\n    browserWidget\n];\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plugins);\n\n\n//# sourceURL=webpack://_JUPYTERLAB.CORE_OUTPUT/../packages/tree-extension/lib/index.js?");

/***/ })

}]);