/*
 * 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_help-extension_lib_index_js"],{

/***/ "../packages/help-extension/lib/index.js":
/*!***********************************************!*\
  !*** ../packages/help-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_mainmenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @jupyterlab/mainmenu */ \"webpack/sharing/consume/default/@jupyterlab/mainmenu/@jupyterlab/mainmenu\");\n/* harmony import */ var _jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _retrolab_ui_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @retrolab/ui-components */ \"webpack/sharing/consume/default/@retrolab/ui-components/@retrolab/ui-components\");\n/* harmony import */ var _retrolab_ui_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_retrolab_ui_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n\n\n\n/**\n * A list of resources to show in the help menu.\n */\nconst RESOURCES = [\n    {\n        text: 'About Jupyter',\n        url: 'https://jupyter.org'\n    },\n    {\n        text: 'Markdown Reference',\n        url: 'https://commonmark.org/help/'\n    }\n];\n/**\n * The command IDs used by the help plugin.\n */\nvar CommandIDs;\n(function (CommandIDs) {\n    CommandIDs.open = 'help:open';\n    CommandIDs.shortcuts = 'help:shortcuts';\n    CommandIDs.about = 'help:about';\n})(CommandIDs || (CommandIDs = {}));\n/**\n * The help plugin.\n */\nconst plugin = {\n    id: '@retrolab/help-extension:plugin',\n    autoStart: true,\n    optional: [_jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_1__.IMainMenu],\n    activate: (app, menu) => {\n        const { commands } = app;\n        commands.addCommand(CommandIDs.open, {\n            label: args => args['text'],\n            execute: args => {\n                const url = args['url'];\n                window.open(url);\n            }\n        });\n        commands.addCommand(CommandIDs.shortcuts, {\n            label: 'Keyboard Shortcuts',\n            execute: () => {\n                const title = (react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"span\", { className: \"jp-AboutRetro-about-header\" },\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"div\", { className: \"jp-AboutRetro-about-header-info\" }, \"Keyboard Shortcuts\")));\n                const body = (react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"table\", { className: \"jp-AboutRetro-shortcuts\" },\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"thead\", null,\n                        react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"tr\", null,\n                            react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"th\", null, \"Name\"),\n                            react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"th\", null, \"Shortcut\"))),\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"tbody\", null, commands.keyBindings\n                        .filter(binding => commands.isEnabled(binding.command))\n                        .map((binding, i) => (react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"tr\", { key: i },\n                        react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"td\", null, commands.label(binding.command)),\n                        react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"td\", null,\n                            react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"pre\", null, binding.keys.join(', ')))))))));\n                return (0,_jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.showDialog)({\n                    title,\n                    body,\n                    buttons: [\n                        _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.Dialog.createButton({\n                            label: 'Dismiss',\n                            className: 'jp-AboutRetro-about-button jp-mod-reject jp-mod-styled'\n                        })\n                    ]\n                });\n            }\n        });\n        commands.addCommand(CommandIDs.about, {\n            label: `About ${app.name}`,\n            execute: () => {\n                const title = (react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment, null,\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"span\", { className: \"jp-AboutRetro-header\" },\n                        react__WEBPACK_IMPORTED_MODULE_3__.createElement(_retrolab_ui_components__WEBPACK_IMPORTED_MODULE_2__.retroIcon.react, { height: \"256px\", width: \"auto\" }))));\n                const retroNotebookURL = 'https://github.com/jupyterlab/retrolab';\n                const externalLinks = (react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"span\", null,\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"a\", { href: retroNotebookURL, target: \"_blank\", rel: \"noopener noreferrer\", className: \"jp-Button-flat jp-AboutRetro-about-externalLinks\" }, \"RETROLAB ON GITHUB\")));\n                const body = (react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment, null,\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"span\", { className: \"jp-AboutRetro-body\" },\n                        \"Version: \",\n                        app.version),\n                    react__WEBPACK_IMPORTED_MODULE_3__.createElement(\"div\", null, externalLinks)));\n                const dialog = new _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.Dialog({\n                    title,\n                    body,\n                    buttons: [\n                        _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_0__.Dialog.createButton({\n                            label: 'Dismiss',\n                            className: 'jp-AboutRetro-about-button jp-mod-reject jp-mod-styled'\n                        })\n                    ]\n                });\n                dialog.addClass('jp-AboutRetro');\n                void dialog.launch();\n            }\n        });\n        const resourcesGroup = RESOURCES.map(args => ({\n            args,\n            command: CommandIDs.open\n        }));\n        menu.helpMenu.addGroup([{ command: CommandIDs.about }]);\n        menu.helpMenu.addGroup([{ command: CommandIDs.shortcuts }]);\n        menu.helpMenu.addGroup(resourcesGroup);\n    }\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plugin);\n\n\n//# sourceURL=webpack://_JUPYTERLAB.CORE_OUTPUT/../packages/help-extension/lib/index.js?");

/***/ })

}]);