From: Daniel Karbach Date: Sun, 3 Sep 2023 11:02:50 +0000 (+0200) Subject: unstage index,js X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=78234fb1bc10eae96a6fa3b0b613154b20ff49a0;p=alttp.git unstage index,js --- diff --git a/public/js/index.js b/public/js/index.js deleted file mode 100644 index 88c989e..0000000 --- a/public/js/index.js +++ /dev/null @@ -1,2285 +0,0 @@ -/* - * ATTENTION: An "eval-source-map" devtool has been used. - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file with attached SourceMaps 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"] = self["webpackChunk"] || []).push([["/js/index"],{ - -/***/ "./node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@uiw/codemirror-extensions-basic-setup/esm/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 */ \"basicSetup\": () => (/* binding */ basicSetup),\n/* harmony export */ \"minimalSetup\": () => (/* binding */ minimalSetup)\n/* harmony export */ });\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_commands__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/commands */ \"./node_modules/@codemirror/commands/dist/index.js\");\n/* harmony import */ var _codemirror_search__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/search */ \"./node_modules/@codemirror/search/dist/index.js\");\n/* harmony import */ var _codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/autocomplete */ \"./node_modules/@codemirror/autocomplete/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _codemirror_lint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/lint */ \"./node_modules/@codemirror/lint/dist/index.js\");\n\n\n\n\n\n\n\n/**\nThis is an extension value that just pulls together a number of\nextensions that you might want in a basic editor. It is meant as a\nconvenient helper to quickly set up CodeMirror without installing\nand importing a lot of separate packages.\n\nSpecifically, it includes...\n\n - [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)\n - [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)\n - [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)\n - [the undo history](https://codemirror.net/6/docs/ref/#commands.history)\n - [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)\n - [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)\n - [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)\n - [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)\n - [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)\n - [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)\n - [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)\n - [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)\n - [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)\n - [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)\n - [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)\n - [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)\n - [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)\n - [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)\n - [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)\n\n(You'll probably want to add some language package to your setup\ntoo.)\n\nThis extension does not allow customization. The idea is that,\nonce you decide you want to configure your editor more precisely,\nyou take this package's source (which is just a bunch of imports\nand an array literal), copy it into your own code, and adjust it\nas desired.\n*/\nvar basicSetup = function basicSetup(options) {\n if (options === void 0) {\n options = {};\n }\n var keymaps = [];\n if (options.closeBracketsKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.closeBracketsKeymap);\n }\n if (options.defaultKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.defaultKeymap);\n }\n if (options.searchKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_search__WEBPACK_IMPORTED_MODULE_2__.searchKeymap);\n }\n if (options.historyKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.historyKeymap);\n }\n if (options.foldKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.foldKeymap);\n }\n if (options.completionKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.completionKeymap);\n }\n if (options.lintKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_lint__WEBPACK_IMPORTED_MODULE_4__.lintKeymap);\n }\n var extensions = [];\n if (options.lineNumbers !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.lineNumbers)());\n if (options.highlightActiveLineGutter !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.highlightActiveLineGutter)());\n if (options.highlightSpecialChars !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.highlightSpecialChars)());\n if (options.history !== false) extensions.push((0,_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.history)());\n if (options.foldGutter !== false) extensions.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.foldGutter)());\n if (options.drawSelection !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.drawSelection)());\n if (options.dropCursor !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.dropCursor)());\n if (options.allowMultipleSelections !== false) extensions.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_6__.EditorState.allowMultipleSelections.of(true));\n if (options.indentOnInput !== false) extensions.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentOnInput)());\n if (options.syntaxHighlighting !== false) extensions.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxHighlighting)(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.defaultHighlightStyle, {\n fallback: true\n }));\n if (options.bracketMatching !== false) extensions.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.bracketMatching)());\n if (options.closeBrackets !== false) extensions.push((0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.closeBrackets)());\n if (options.autocompletion !== false) extensions.push((0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.autocompletion)());\n if (options.rectangularSelection !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.rectangularSelection)());\n if (options.crosshairCursor !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.crosshairCursor)());\n if (options.highlightActiveLine !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.highlightActiveLine)());\n if (options.highlightSelectionMatches !== false) extensions.push((0,_codemirror_search__WEBPACK_IMPORTED_MODULE_2__.highlightSelectionMatches)());\n if (options.tabSize && typeof options.tabSize === 'number') extensions.push(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentUnit.of(' '.repeat(options.tabSize)));\n return extensions.concat([_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.keymap.of(keymaps.flat())]).filter(Boolean);\n};\n/**\nA minimal set of extensions to create a functional editor. Only\nincludes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo\nhistory](https://codemirror.net/6/docs/ref/#commands.history), [special character\nhighlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [custom selection\ndrawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight\nstyle](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).\n*/\nvar minimalSetup = function minimalSetup(options) {\n if (options === void 0) {\n options = {};\n }\n var keymaps = [];\n if (options.defaultKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.defaultKeymap);\n }\n if (options.historyKeymap !== false) {\n keymaps = keymaps.concat(_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.historyKeymap);\n }\n var extensions = [];\n if (options.highlightSpecialChars !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.highlightSpecialChars)());\n if (options.history !== false) extensions.push((0,_codemirror_commands__WEBPACK_IMPORTED_MODULE_1__.history)());\n if (options.drawSelection !== false) extensions.push((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.drawSelection)());\n if (options.syntaxHighlighting !== false) extensions.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxHighlighting)(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.defaultHighlightStyle, {\n fallback: true\n }));\n return extensions.concat([_codemirror_view__WEBPACK_IMPORTED_MODULE_5__.keymap.of(keymaps.flat())]).filter(Boolean);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZX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1bHRIaWdobGlnaHRTdHlsZSwge1xuICAgIGZhbGxiYWNrOiB0cnVlXG4gIH0pKTtcbiAgcmV0dXJuIGV4dGVuc2lvbnMuY29uY2F0KFtrZXltYXAub2Yoa2V5bWFwcy5mbGF0KCkpXSkuZmlsdGVyKEJvb2xlYW4pO1xufTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/codemirror-theme-github/esm/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/@uiw/codemirror-theme-github/esm/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 */ \"defaultSettingsGithubDark\": () => (/* binding */ defaultSettingsGithubDark),\n/* harmony export */ \"defaultSettingsGithubLight\": () => (/* binding */ defaultSettingsGithubLight),\n/* harmony export */ \"githubDark\": () => (/* binding */ githubDark),\n/* harmony export */ \"githubDarkInit\": () => (/* binding */ githubDarkInit),\n/* harmony export */ \"githubLight\": () => (/* binding */ githubLight),\n/* harmony export */ \"githubLightInit\": () => (/* binding */ githubLightInit)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lezer/highlight */ \"./node_modules/@lezer/highlight/dist/index.js\");\n/* harmony import */ var _uiw_codemirror_themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uiw/codemirror-themes */ \"./node_modules/@uiw/codemirror-themes/esm/index.js\");\n\n/**\n * @name github\n */\n\n\nvar defaultSettingsGithubLight = {\n background: '#fff',\n foreground: '#24292e',\n selection: '#BBDFFF',\n selectionMatch: '#BBDFFF',\n gutterBackground: '#fff',\n gutterForeground: '#6e7781'\n};\nvar githubLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return (0,_uiw_codemirror_themes__WEBPACK_IMPORTED_MODULE_2__.createTheme)({\n theme: theme,\n settings: (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, defaultSettingsGithubLight, settings),\n styles: [{\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.standard(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.tagName), _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.tagName],\n color: '#116329'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.comment, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bracket],\n color: '#6a737d'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.className, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.propertyName],\n color: '#6f42c1'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.attributeName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.number, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.operator],\n color: '#005cc5'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.keyword, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeOperator, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName],\n color: '#d73a49'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.meta, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.regexp],\n color: '#032f62'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.name, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.quote],\n color: '#22863a'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.heading],\n color: '#24292e',\n fontWeight: 'bold'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.emphasis],\n color: '#24292e',\n fontStyle: 'italic'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.deleted],\n color: '#b31d28',\n backgroundColor: 'ffeef0'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.atom, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bool, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName)],\n color: '#e36209'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.url, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.escape, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.regexp, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.link],\n color: '#032f62'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.link,\n textDecoration: 'underline'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.invalid,\n color: '#cb2431'\n }, ...styles]\n });\n};\nvar githubLight = githubLightInit();\nvar defaultSettingsGithubDark = {\n background: '#0d1117',\n foreground: '#c9d1d9',\n caret: '#c9d1d9',\n selection: '#003d73',\n selectionMatch: '#003d73',\n lineHighlight: '#36334280'\n};\nvar githubDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return (0,_uiw_codemirror_themes__WEBPACK_IMPORTED_MODULE_2__.createTheme)({\n theme: theme,\n settings: (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, defaultSettingsGithubDark, settings),\n styles: [{\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.standard(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.tagName), _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.tagName],\n color: '#7ee787'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.comment, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bracket],\n color: '#8b949e'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.className, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.propertyName],\n color: '#d2a8ff'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.attributeName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.number, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.operator],\n color: '#79c0ff'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.keyword, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeOperator, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName],\n color: '#ff7b72'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.meta, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.regexp],\n color: '#a5d6ff'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.name, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.quote],\n color: '#7ee787'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.heading],\n color: '#d2a8ff',\n fontWeight: 'bold'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.emphasis],\n color: '#d2a8ff',\n fontStyle: 'italic'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.deleted],\n color: '#ffdcd7',\n backgroundColor: 'ffeef0'\n }, {\n tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.atom, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bool, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName)],\n color: '#ffab70'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.link,\n textDecoration: 'underline'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.invalid,\n color: '#f97583'\n }, ...styles]\n });\n};\nvar githubDark = githubDarkInit();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQHVpdy9jb2RlbWlycm9yLXRoZW1lLWdpdGh1Yi9lc20vaW5kZXguanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQXNEO0FBQ3REO0FBQ0E7QUFDQTtBQUM2QztBQUNRO0FBQzlDO0FBQ1A7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDTztBQUNQO0FBQ0E7QUFDQSxpQkFBaUI7QUFDakI7QUFDQSxJQUFJO0FBQ0osU0FBUy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kNycsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdmZmVlZjAnXG4gICAgfSwge1xuICAgICAgdGFnOiBbdC5hdG9tLCB0LmJvb2wsIHQuc3BlY2lhbCh0LnZhcmlhYmxlTmFtZSldLFxuICAgICAgY29sb3I6ICcjZmZhYjcwJ1xuICAgIH0sIHtcbiAgICAgIHRhZzogdC5saW5rLFxuICAgICAgdGV4dERlY29yYXRpb246ICd1bmRlcmxpbmUnXG4gICAgfSwge1xuICAgICAgdGFnOiB0LnN0cmlrZXRocm91Z2gsXG4gICAgICB0ZXh0RGVjb3JhdGlvbjogJ2xpbmUtdGhyb3VnaCdcbiAgICB9LCB7XG4gICAgICB0YWc6IHQuaW52YWxpZCxcbiAgICAgIGNvbG9yOiAnI2Y5NzU4MydcbiAgICB9LCAuLi5zdHlsZXNdXG4gIH0pO1xufTtcbmV4cG9ydCB2YXIgZ2l0aHViRGFyayA9IGdpdGh1YkRhcmtJbml0KCk7Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@uiw/codemirror-theme-github/esm/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/codemirror-themes/esm/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@uiw/codemirror-themes/esm/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 */ \"createTheme\": () => (/* binding */ createTheme),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n\n\nvar createTheme = _ref => {\n var {\n theme,\n settings = {},\n styles = []\n } = _ref;\n var themeOptions = {\n '.cm-gutters': {}\n };\n var baseStyle = {};\n if (settings.background) {\n baseStyle.backgroundColor = settings.background;\n }\n if (settings.foreground) {\n baseStyle.color = settings.foreground;\n }\n if (settings.background || settings.foreground) {\n themeOptions['&'] = baseStyle;\n }\n if (settings.fontFamily) {\n themeOptions['&.cm-editor .cm-scroller'] = {\n fontFamily: settings.fontFamily\n };\n }\n if (settings.gutterBackground) {\n themeOptions['.cm-gutters'].backgroundColor = settings.gutterBackground;\n }\n if (settings.gutterForeground) {\n themeOptions['.cm-gutters'].color = settings.gutterForeground;\n }\n if (settings.gutterBorder) {\n themeOptions['.cm-gutters'].borderRightColor = settings.gutterBorder;\n }\n if (settings.caret) {\n themeOptions['.cm-content'] = {\n caretColor: settings.caret\n };\n themeOptions['.cm-cursor, .cm-dropCursor'] = {\n borderLeftColor: settings.caret\n };\n }\n var activeLineGutterStyle = {};\n if (settings.gutterActiveForeground) {\n activeLineGutterStyle.color = settings.gutterActiveForeground;\n }\n if (settings.lineHighlight) {\n themeOptions['.cm-activeLine'] = {\n backgroundColor: settings.lineHighlight\n };\n activeLineGutterStyle.backgroundColor = settings.lineHighlight;\n }\n themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;\n if (settings.selection) {\n themeOptions['&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'] = {\n backgroundColor: settings.selection + ' !important'\n };\n }\n if (settings.selectionMatch) {\n themeOptions['& .cm-selectionMatch'] = {\n backgroundColor: settings.selectionMatch\n };\n }\n var themeExtension = _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.theme(themeOptions, {\n dark: theme === 'dark'\n });\n var highlightStyle = _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.HighlightStyle.define(styles);\n var extension = [themeExtension, (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.syntaxHighlighting)(highlightStyle)];\n return extension;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createTheme);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQHVpdy9jb2RlbWlycm9yLXRoZW1lcy9lc20vaW5kZXguanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUE4QztBQUM0QjtBQUNuRTtBQUNQO0FBQ0E7QUFDQSxpQkFBaUI7QUFDakI7QUFDQSxJQUFJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHVCQUF1Qiw4REFBZ0I7QUFDdkM7QUFDQSxHQUFHO0FBQ0gsdUJBQXVCLHVFQUFxQjtBQUM1QyxtQ0FBbUMsd0VBQWtCO0FBQ3JEO0FBQ0E7QUFDQSxpRUFBZSxXQUFXIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vbm9kZV9tb2R1bGVzL0B1aXcvY29kZW1pcnJvci10aGVtZXMvZXNtL2luZGV4LmpzP2UxNzgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRWRpdG9yVmlldyB9IGZyb20gJ0Bjb2Rlb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dGl2ZUxpbmVHdXR0ZXJTdHlsZTtcbiAgaWYgKHNldHRpbmdzLnNlbGVjdGlvbikge1xuICAgIHRoZW1lT3B0aW9uc1snJi5jbS1mb2N1c2VkIC5jbS1zZWxlY3Rpb25CYWNrZ3JvdW5kLCAmLmNtLWZvY3VzZWQgLmNtLWxpbmU6OnNlbGVjdGlvbiwgJiAuY20tc2VsZWN0aW9uTGF5ZXIgLmNtLXNlbGVjdGlvbkJhY2tncm91bmQsIC5jbS1jb250ZW50IDo6c2VsZWN0aW9uJ10gPSB7XG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6IHNldHRpbmdzLnNlbGVjdGlvbiArICcgIWltcG9ydGFudCdcbiAgICB9O1xuICB9XG4gIGlmIChzZXR0aW5ncy5zZWxlY3Rpb25NYXRjaCkge1xuICAgIHRoZW1lT3B0aW9uc1snJiAuY20tc2VsZWN0aW9uTWF0Y2gnXSA9IHtcbiAgICAgIGJhY2tncm91bmRDb2xvcjogc2V0dGluZ3Muc2VsZWN0aW9uTWF0Y2hcbiAgICB9O1xuICB9XG4gIHZhciB0aGVtZUV4dGVuc2lvbiA9IEVkaXRvclZpZXcudGhlbWUodGhlbWVPcHRpb25zLCB7XG4gICAgZGFyazogdGhlbWUgPT09ICdkYXJrJ1xuICB9KTtcbiAgdmFyIGhpZ2hsaWdodFN0eWxlID0gSGlnaGxpZ2h0U3R5bGUuZGVmaW5lKHN0eWxlcyk7XG4gIHZhciBleHRlbnNpb24gPSBbdGhlbWVFeHRlbnNpb24sIHN5bnRheEhpZ2hsaWdodGluZyhoaWdobGlnaHRTdHlsZSldO1xuICByZXR1cm4gZXh0ZW5zaW9uO1xufTtcbmV4cG9ydCBkZWZhdWx0IGNyZWF0ZVRoZW1lOyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@uiw/codemirror-themes/esm/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js": -/*!************************************************************************!*\ - !*** ./node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.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 */ \"color\": () => (/* reexport safe */ _codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__.color),\n/* harmony export */ \"defaultLightThemeOption\": () => (/* reexport safe */ _theme_light__WEBPACK_IMPORTED_MODULE_1__.defaultLightThemeOption),\n/* harmony export */ \"getDefaultExtensions\": () => (/* binding */ getDefaultExtensions),\n/* harmony export */ \"oneDark\": () => (/* reexport safe */ _codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__.oneDark),\n/* harmony export */ \"oneDarkHighlightStyle\": () => (/* reexport safe */ _codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__.oneDarkHighlightStyle),\n/* harmony export */ \"oneDarkTheme\": () => (/* reexport safe */ _codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__.oneDarkTheme)\n/* harmony export */ });\n/* harmony import */ var _codemirror_commands__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/commands */ \"./node_modules/@codemirror/commands/dist/index.js\");\n/* harmony import */ var _uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @uiw/codemirror-extensions-basic-setup */ \"./node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/theme-one-dark */ \"./node_modules/@codemirror/theme-one-dark/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _theme_light__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme/light */ \"./node_modules/@uiw/react-codemirror/esm/theme/light.js\");\n\n\n\n\n\n\n\n\nvar getDefaultExtensions = function getDefaultExtensions(optios) {\n if (optios === void 0) {\n optios = {};\n }\n var {\n indentWithTab: defaultIndentWithTab = true,\n editable = true,\n readOnly = false,\n theme = 'light',\n placeholder: placeholderStr = '',\n basicSetup: defaultBasicSetup = true\n } = optios;\n var getExtensions = [];\n if (defaultIndentWithTab) {\n getExtensions.unshift(_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.keymap.of([_codemirror_commands__WEBPACK_IMPORTED_MODULE_4__.indentWithTab]));\n }\n if (defaultBasicSetup) {\n if (typeof defaultBasicSetup === 'boolean') {\n getExtensions.unshift((0,_uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_0__.basicSetup)());\n } else {\n getExtensions.unshift((0,_uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_0__.basicSetup)(defaultBasicSetup));\n }\n }\n if (placeholderStr) {\n getExtensions.unshift((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.placeholder)(placeholderStr));\n }\n switch (theme) {\n case 'light':\n getExtensions.push(_theme_light__WEBPACK_IMPORTED_MODULE_1__.defaultLightThemeOption);\n break;\n case 'dark':\n getExtensions.push(_codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_2__.oneDark);\n break;\n case 'none':\n break;\n default:\n getExtensions.push(theme);\n break;\n }\n if (editable === false) {\n getExtensions.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.editable.of(false));\n }\n if (readOnly) {\n getExtensions.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_5__.EditorState.readOnly.of(true));\n }\n return [...getExtensions];\n};//# sourceURL=[module]\n//# sourceMappingURL=data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/react-codemirror/esm/getDefaultExtensions.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/react-codemirror/esm/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/@uiw/react-codemirror/esm/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 */ \"basicSetup\": () => (/* reexport safe */ _uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_5__.basicSetup),\n/* harmony export */ \"color\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.color),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"defaultLightThemeOption\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.defaultLightThemeOption),\n/* harmony export */ \"getDefaultExtensions\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.getDefaultExtensions),\n/* harmony export */ \"getStatistics\": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_7__.getStatistics),\n/* harmony export */ \"minimalSetup\": () => (/* reexport safe */ _uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_5__.minimalSetup),\n/* harmony export */ \"oneDark\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.oneDark),\n/* harmony export */ \"oneDarkHighlightStyle\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.oneDarkHighlightStyle),\n/* harmony export */ \"oneDarkTheme\": () => (/* reexport safe */ _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__.oneDarkTheme),\n/* harmony export */ \"useCodeMirror\": () => (/* reexport safe */ _useCodeMirror__WEBPACK_IMPORTED_MODULE_3__.useCodeMirror)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _useCodeMirror__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useCodeMirror */ \"./node_modules/@uiw/react-codemirror/esm/useCodeMirror.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _uiw_codemirror_extensions_basic_setup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @uiw/codemirror-extensions-basic-setup */ \"./node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js\");\n/* harmony import */ var _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDefaultExtensions */ \"./node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/@uiw/react-codemirror/esm/utils.js\");\n\n\nvar _excluded = [\"className\", \"value\", \"selection\", \"extensions\", \"onChange\", \"onStatistics\", \"onCreateEditor\", \"onUpdate\", \"autoFocus\", \"theme\", \"height\", \"minHeight\", \"maxHeight\", \"width\", \"minWidth\", \"maxWidth\", \"basicSetup\", \"placeholder\", \"indentWithTab\", \"editable\", \"readOnly\", \"root\", \"initialState\"];\n\n\n\n\n\n\n\nvar ReactCodeMirror = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)((props, ref) => {\n var {\n className,\n value = '',\n selection,\n extensions = [],\n onChange,\n onStatistics,\n onCreateEditor,\n onUpdate,\n autoFocus,\n theme = 'light',\n height,\n minHeight,\n maxHeight,\n width,\n minWidth,\n maxWidth,\n basicSetup,\n placeholder,\n indentWithTab,\n editable,\n readOnly,\n root,\n initialState\n } = props,\n other = (0,_babel_runtime_helpers_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var editor = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var {\n state,\n view,\n container\n } = (0,_useCodeMirror__WEBPACK_IMPORTED_MODULE_3__.useCodeMirror)({\n container: editor.current,\n root,\n value,\n autoFocus,\n theme,\n height,\n minHeight,\n maxHeight,\n width,\n minWidth,\n maxWidth,\n basicSetup,\n placeholder,\n indentWithTab,\n editable,\n readOnly,\n selection,\n onChange,\n onStatistics,\n onCreateEditor,\n onUpdate,\n extensions,\n initialState\n });\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, () => ({\n editor: editor.current,\n state: state,\n view: view\n }), [editor, container, state, view]);\n\n // check type of value\n if (typeof value !== 'string') {\n throw new Error(\"value must be typeof string but got \" + typeof value);\n }\n var defaultClassNames = typeof theme === 'string' ? \"cm-theme-\" + theme : 'cm-theme';\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: editor,\n className: \"\" + defaultClassNames + (className ? \" \" + className : '')\n }, other));\n});\nReactCodeMirror.displayName = 'CodeMirror';\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReactCodeMirror);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQH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3IuZGlzcGxheU5hbWUgPSAnQ29kZU1pcnJvcic7XG5leHBvcnQgZGVmYXVsdCBSZWFjdENvZGVNaXJyb3I7Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@uiw/react-codemirror/esm/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/react-codemirror/esm/theme/light.js": -/*!***************************************************************!*\ - !*** ./node_modules/@uiw/react-codemirror/esm/theme/light.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 */ \"defaultLightThemeOption\": () => (/* binding */ defaultLightThemeOption)\n/* harmony export */ });\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n\nvar defaultLightThemeOption = _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.theme({\n '&': {\n backgroundColor: '#fff'\n }\n}, {\n dark: false\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQHVpdy9yZWFjdC1jb2RlbWlycm9yL2VzbS90aGVtZS9saWdodC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUE4QztBQUN2Qyw4QkFBOEIsOERBQWdCO0FBQ3JEO0FBQ0E7QUFDQTtBQUNBLENBQUM7QUFDRDtBQUNBLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvQHVpdy9yZWFjdC1jb2RlbWlycm9yL2VzbS90aGVtZS9saWdodC5qcz9iMmY0Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVkaXRvclZpZXcgfSBmcm9tICdAY29kZW1pcnJvci92aWV3JztcbmV4cG9ydCB2YXIgZGVmYXVsdExpZ2h0VGhlbWVPcHRpb24gPSBFZGl0b3JWaWV3LnRoZW1lKHtcbiAgJyYnOiB7XG4gICAgYmFja2dyb3VuZENvbG9yOiAnI2ZmZidcbiAgfVxufSwge1xuICBkYXJrOiBmYWxzZVxufSk7Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@uiw/react-codemirror/esm/theme/light.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/react-codemirror/esm/useCodeMirror.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@uiw/react-codemirror/esm/useCodeMirror.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 */ \"useCodeMirror\": () => (/* binding */ useCodeMirror)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _getDefaultExtensions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDefaultExtensions */ \"./node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ \"./node_modules/@uiw/react-codemirror/esm/utils.js\");\n\n\n\n\n\nvar External = _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Annotation.define();\nvar emptyExtensions = [];\nfunction useCodeMirror(props) {\n var {\n value,\n selection,\n onChange,\n onStatistics,\n onCreateEditor,\n onUpdate,\n extensions = emptyExtensions,\n autoFocus,\n theme = 'light',\n height = '',\n minHeight = '',\n maxHeight = '',\n placeholder: placeholderStr = '',\n width = '',\n minWidth = '',\n maxWidth = '',\n editable = true,\n readOnly = false,\n indentWithTab: defaultIndentWithTab = true,\n basicSetup: defaultBasicSetup = true,\n root,\n initialState\n } = props;\n var [container, setContainer] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();\n var [view, setView] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();\n var [state, setState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();\n var defaultThemeOption = _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.theme({\n '&': {\n height,\n minHeight,\n maxHeight,\n width,\n minWidth,\n maxWidth\n },\n '& .cm-scroller': {\n height: '100% !important'\n }\n });\n var updateListener = _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function' &&\n // Fix echoing of the remote changes:\n // If transaction is market as remote we don't have to call `onChange` handler again\n !vu.transactions.some(tr => tr.annotation(External))) {\n var doc = vu.state.doc;\n var _value = doc.toString();\n onChange(_value, vu);\n }\n onStatistics && onStatistics((0,_utils__WEBPACK_IMPORTED_MODULE_2__.getStatistics)(vu));\n });\n var defaultExtensions = (0,_getDefaultExtensions__WEBPACK_IMPORTED_MODULE_1__.getDefaultExtensions)({\n theme,\n editable,\n readOnly,\n placeholder: placeholderStr,\n indentWithTab: defaultIndentWithTab,\n basicSetup: defaultBasicSetup\n });\n var getExtensions = [updateListener, defaultThemeOption, ...defaultExtensions];\n if (onUpdate && typeof onUpdate === 'function') {\n getExtensions.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.updateListener.of(onUpdate));\n }\n getExtensions = getExtensions.concat(extensions);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (container && !state) {\n var config = {\n doc: value,\n selection,\n extensions: getExtensions\n };\n var stateCurrent = initialState ? _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.fromJSON(initialState.json, config, initialState.fields) : _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.create(config);\n setState(stateCurrent);\n if (!view) {\n var viewCurrent = new _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView({\n state: stateCurrent,\n parent: container,\n root\n });\n setView(viewCurrent);\n onCreateEditor && onCreateEditor(viewCurrent, stateCurrent);\n }\n }\n return () => {\n if (view) {\n setState(undefined);\n setView(undefined);\n }\n };\n }, [container, state]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => setContainer(props.container), [props.container]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => () => {\n if (view) {\n view.destroy();\n setView(undefined);\n }\n }, [view]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (autoFocus && view) {\n view.focus();\n }\n }, [autoFocus, view]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (view) {\n view.dispatch({\n effects: _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateEffect.reconfigure.of(getExtensions)\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [theme, extensions, height, minHeight, maxHeight, width, minWidth, maxWidth, placeholderStr, editable, readOnly, defaultIndentWithTab, defaultBasicSetup, onChange, onUpdate]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (value === undefined) {\n return;\n }\n var currentValue = view ? view.state.doc.toString() : '';\n if (view && value !== currentValue) {\n view.dispatch({\n changes: {\n from: 0,\n to: currentValue.length,\n insert: value || ''\n },\n annotations: [External.of(true)]\n });\n }\n }, [value, view]);\n return {\n state,\n setState,\n view,\n setView,\n container,\n setContainer\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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JlYWRPbmx5LCBkZWZhdWx0SW5kZW50V2l0aFRhYiwgZGVmYXVsdEJhc2ljU2V0dXAsIG9uQ2hhbmdlLCBvblVwZGF0ZV0pO1xuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGlmICh2YWx1ZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHZhciBjdXJyZW50VmFsdWUgPSB2aWV3ID8gdmlldy5zdGF0ZS5kb2MudG9TdHJpbmcoKSA6ICcnO1xuICAgIGlmICh2aWV3ICYmIHZhbHVlICE9PSBjdXJyZW50VmFsdWUpIHtcbiAgICAgIHZpZXcuZGlzcGF0Y2goe1xuICAgICAgICBjaGFuZ2VzOiB7XG4gICAgICAgICAgZnJvbTogMCxcbiAgICAgICAgICB0bzogY3VycmVudFZhbHVlLmxlbmd0aCxcbiAgICAgICAgICBpbnNlcnQ6IHZhbHVlIHx8ICcnXG4gICAgICAgIH0sXG4gICAgICAgIGFubm90YXRpb25zOiBbRXh0ZXJuYWwub2YodHJ1ZSldXG4gICAgICB9KTtcbiAgICB9XG4gIH0sIFt2YWx1ZSwgdmlld10pO1xuICByZXR1cm4ge1xuICAgIHN0YXRlLFxuICAgIHNldFN0YXRlLFxuICAgIHZpZXcsXG4gICAgc2V0VmlldyxcbiAgICBjb250YWluZXIsXG4gICAgc2V0Q29udGFpbmVyXG4gIH07XG59Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@uiw/react-codemirror/esm/useCodeMirror.js\n"); - -/***/ }), - -/***/ "./node_modules/@uiw/react-codemirror/esm/utils.js": -/*!*********************************************************!*\ - !*** ./node_modules/@uiw/react-codemirror/esm/utils.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 */ \"getStatistics\": () => (/* binding */ getStatistics)\n/* harmony export */ });\nvar getStatistics = view => {\n return {\n line: view.state.doc.lineAt(view.state.selection.main.from),\n lineCount: view.state.doc.lines,\n lineBreak: view.state.lineBreak,\n length: view.state.doc.length,\n readOnly: view.state.readOnly,\n tabSize: view.state.tabSize,\n selection: view.state.selection,\n selectionAsSingle: view.state.selection.asSingle().main,\n ranges: view.state.selection.ranges,\n selectionCode: view.state.sliceDoc(view.state.selection.main.from, view.state.selection.main.to),\n selections: view.state.selection.ranges.map(r => view.state.sliceDoc(r.from, r.to)),\n selectedText: view.state.selection.ranges.some(r => !r.empty)\n };\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQHVpdy9yZWFjdC1jb2RlbWlycm9yL2VzbS91dGlscy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7O0FBQU87QUFDUDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvQHVpdy9yZWFjdC1jb2RlbWlycm9yL2VzbS91dGlscy5qcz9iMzE5Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB2YXIgZ2V0U3RhdGlzdGljcyA9IHZpZXcgPT4ge1xuICByZXR1cm4ge1xuICAgIGxpbmU6IHZpZXcuc3RhdGUuZG9jLmxpbmVBdCh2aWV3LnN0YXRlLnNlbGVjdGlvbi5tYWluLmZyb20pLFxuICAgIGxpbmVDb3VudDogdmlldy5zdGF0ZS5kb2MubGluZXMsXG4gICAgbGluZUJyZWFrOiB2aWV3LnN0YXRlLmxpbmVCcmVhayxcbiAgICBsZW5ndGg6IHZpZXcuc3RhdGUuZG9jLmxlbmd0aCxcbiAgICByZWFkT25seTogdmlldy5zdGF0ZS5yZWFkT25seSxcbiAgICB0YWJTaXplOiB2aWV3LnN0YXRlLnRhYlNpemUsXG4gICAgc2VsZWN0aW9uOiB2aWV3LnN0YXRlLnNlbGVjdGlvbixcbiAgICBzZWxlY3Rpb25Bc1NpbmdsZTogdmlldy5zdGF0ZS5zZWxlY3Rpb24uYXNTaW5nbGUoKS5tYWluLFxuICAgIHJhbmdlczogdmlldy5zdGF0ZS5zZWxlY3Rpb24ucmFuZ2VzLFxuICAgIHNlbGVjdGlvbkNvZGU6IHZpZXcuc3RhdGUuc2xpY2VEb2Modmlldy5zdGF0ZS5zZWxlY3Rpb24ubWFpbi5mcm9tLCB2aWV3LnN0YXRlLnNlbGVjdGlvbi5tYWluLnRvKSxcbiAgICBzZWxlY3Rpb25zOiB2aWV3LnN0YXRlLnNlbGVjdGlvbi5yYW5nZXMubWFwKHIgPT4gdmlldy5zdGF0ZS5zbGljZURvYyhyLmZyb20sIHIudG8pKSxcbiAgICBzZWxlY3RlZFRleHQ6IHZpZXcuc3RhdGUuc2VsZWN0aW9uLnJhbmdlcy5zb21lKHIgPT4gIXIuZW1wdHkpXG4gIH07XG59OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@uiw/react-codemirror/esm/utils.js\n"); - -/***/ }), - -/***/ "./node_modules/apng-js/lib/index.js": -/*!*******************************************!*\ - !*** ./node_modules/apng-js/lib/index.js ***! - \*******************************************/ -/***/ (function(module) { - -eval("(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse {}\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __nested_webpack_require_529__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_529__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__nested_webpack_require_529__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__nested_webpack_require_529__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__nested_webpack_require_529__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __nested_webpack_require_529__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __nested_webpack_require_1730__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.isNotPNG = isNotPNG;\n\texports.isNotAPNG = isNotAPNG;\n\texports.default = parseAPNG;\n\n\tvar _crc = __nested_webpack_require_1730__(1);\n\n\tvar _crc2 = _interopRequireDefault(_crc);\n\n\tvar _structs = __nested_webpack_require_1730__(2);\n\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n\tvar errNotPNG = new Error('Not a PNG');\n\tvar errNotAPNG = new Error('Not an animated PNG');\n\n\tfunction isNotPNG(err) {\n\t return err === errNotPNG;\n\t}\n\tfunction isNotAPNG(err) {\n\t return err === errNotAPNG;\n\t}\n\n\t// '\\x89PNG\\x0d\\x0a\\x1a\\x0a'\n\tvar PNGSignature = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);\n\n\t/**\r\n\t * Parse APNG data\r\n\t * @param {ArrayBuffer} buffer\r\n\t * @return {APNG|Error}\r\n\t */\n\tfunction parseAPNG(buffer) {\n\t var bytes = new Uint8Array(buffer);\n\n\t if (Array.prototype.some.call(PNGSignature, function (b, i) {\n\t return b !== bytes[i];\n\t })) {\n\t return errNotPNG;\n\t }\n\n\t // fast animation test\n\t var isAnimated = false;\n\t eachChunk(bytes, function (type) {\n\t return !(isAnimated = type === 'acTL');\n\t });\n\t if (!isAnimated) {\n\t return errNotAPNG;\n\t }\n\n\t var preDataParts = [],\n\t postDataParts = [];\n\t var headerDataBytes = null,\n\t frame = null,\n\t frameNumber = 0,\n\t apng = new _structs.APNG();\n\n\t eachChunk(bytes, function (type, bytes, off, length) {\n\t var dv = new DataView(bytes.buffer);\n\t switch (type) {\n\t case 'IHDR':\n\t headerDataBytes = bytes.subarray(off + 8, off + 8 + length);\n\t apng.width = dv.getUint32(off + 8);\n\t apng.height = dv.getUint32(off + 12);\n\t break;\n\t case 'acTL':\n\t apng.numPlays = dv.getUint32(off + 8 + 4);\n\t break;\n\t case 'fcTL':\n\t if (frame) {\n\t apng.frames.push(frame);\n\t frameNumber++;\n\t }\n\t frame = new _structs.Frame();\n\t frame.width = dv.getUint32(off + 8 + 4);\n\t frame.height = dv.getUint32(off + 8 + 8);\n\t frame.left = dv.getUint32(off + 8 + 12);\n\t frame.top = dv.getUint32(off + 8 + 16);\n\t var delayN = dv.getUint16(off + 8 + 20);\n\t var delayD = dv.getUint16(off + 8 + 22);\n\t if (delayD === 0) {\n\t delayD = 100;\n\t }\n\t frame.delay = 1000 * delayN / delayD;\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=125137\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=139677\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=207059\n\t if (frame.delay <= 10) {\n\t frame.delay = 100;\n\t }\n\t apng.playTime += frame.delay;\n\t frame.disposeOp = dv.getUint8(off + 8 + 24);\n\t frame.blendOp = dv.getUint8(off + 8 + 25);\n\t frame.dataParts = [];\n\t if (frameNumber === 0 && frame.disposeOp === 2) {\n\t frame.disposeOp = 1;\n\t }\n\t break;\n\t case 'fdAT':\n\t if (frame) {\n\t frame.dataParts.push(bytes.subarray(off + 8 + 4, off + 8 + length));\n\t }\n\t break;\n\t case 'IDAT':\n\t if (frame) {\n\t frame.dataParts.push(bytes.subarray(off + 8, off + 8 + length));\n\t }\n\t break;\n\t case 'IEND':\n\t postDataParts.push(subBuffer(bytes, off, 12 + length));\n\t break;\n\t default:\n\t preDataParts.push(subBuffer(bytes, off, 12 + length));\n\t }\n\t });\n\n\t if (frame) {\n\t apng.frames.push(frame);\n\t }\n\n\t if (apng.frames.length == 0) {\n\t return errNotAPNG;\n\t }\n\n\t var preBlob = new Blob(preDataParts),\n\t postBlob = new Blob(postDataParts);\n\n\t apng.frames.forEach(function (frame) {\n\t var bb = [];\n\t bb.push(PNGSignature);\n\t headerDataBytes.set(makeDWordArray(frame.width), 0);\n\t headerDataBytes.set(makeDWordArray(frame.height), 4);\n\t bb.push(makeChunkBytes('IHDR', headerDataBytes));\n\t bb.push(preBlob);\n\t frame.dataParts.forEach(function (p) {\n\t return bb.push(makeChunkBytes('IDAT', p));\n\t });\n\t bb.push(postBlob);\n\t frame.imageData = new Blob(bb, { 'type': 'image/png' });\n\t delete frame.dataParts;\n\t bb = null;\n\t });\n\n\t return apng;\n\t}\n\n\t/**\r\n\t * @param {Uint8Array} bytes\r\n\t * @param {function(string, Uint8Array, int, int): boolean} callback\r\n\t */\n\tfunction eachChunk(bytes, callback) {\n\t var dv = new DataView(bytes.buffer);\n\t var off = 8,\n\t type = void 0,\n\t length = void 0,\n\t res = void 0;\n\t do {\n\t length = dv.getUint32(off);\n\t type = readString(bytes, off + 4, 4);\n\t res = callback(type, bytes, off, length);\n\t off += 12 + length;\n\t } while (res !== false && type != 'IEND' && off < bytes.length);\n\t}\n\n\t/**\r\n\t *\r\n\t * @param {Uint8Array} bytes\r\n\t * @param {number} off\r\n\t * @param {number} length\r\n\t * @return {string}\r\n\t */\n\tfunction readString(bytes, off, length) {\n\t var chars = Array.prototype.slice.call(bytes.subarray(off, off + length));\n\t return String.fromCharCode.apply(String, chars);\n\t}\n\n\t/**\r\n\t *\r\n\t * @param {string} x\r\n\t * @return {Uint8Array}\r\n\t */\n\tfunction makeStringArray(x) {\n\t var res = new Uint8Array(x.length);\n\t for (var i = 0; i < x.length; i++) {\n\t res[i] = x.charCodeAt(i);\n\t }\n\t return res;\n\t}\n\n\t/**\r\n\t * @param {Uint8Array} bytes\r\n\t * @param {int} start\r\n\t * @param {int} length\r\n\t * @return {Uint8Array}\r\n\t */\n\tfunction subBuffer(bytes, start, length) {\n\t var a = new Uint8Array(length);\n\t a.set(bytes.subarray(start, start + length));\n\t return a;\n\t}\n\n\t/**\r\n\t * @param {string} type\r\n\t * @param {Uint8Array} dataBytes\r\n\t * @return {Uint8Array}\r\n\t */\n\tvar makeChunkBytes = function makeChunkBytes(type, dataBytes) {\n\t var crcLen = type.length + dataBytes.length;\n\t var bytes = new Uint8Array(crcLen + 8);\n\t var dv = new DataView(bytes.buffer);\n\n\t dv.setUint32(0, dataBytes.length);\n\t bytes.set(makeStringArray(type), 4);\n\t bytes.set(dataBytes, 8);\n\t var crc = (0, _crc2.default)(bytes, 4, crcLen);\n\t dv.setUint32(crcLen + 4, crc);\n\t return bytes;\n\t};\n\n\tvar makeDWordArray = function makeDWordArray(x) {\n\t return new Uint8Array([x >>> 24 & 0xff, x >>> 16 & 0xff, x >>> 8 & 0xff, x & 0xff]);\n\t};\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n\t\"use strict\";\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\texports.default = function (bytes) {\n\t var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\t var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : bytes.length - start;\n\n\t var crc = -1;\n\t for (var _i = start, l = start + length; _i < l; _i++) {\n\t crc = crc >>> 8 ^ table[(crc ^ bytes[_i]) & 0xFF];\n\t }\n\t return crc ^ -1;\n\t};\n\n\tvar table = new Uint32Array(256);\n\n\tfor (var i = 0; i < 256; i++) {\n\t var c = i;\n\t for (var k = 0; k < 8; k++) {\n\t c = (c & 1) !== 0 ? 0xEDB88320 ^ c >>> 1 : c >>> 1;\n\t }\n\t table[i] = c;\n\t}\n\n\t/**\r\n\t *\r\n\t * @param {Uint8Array} bytes\r\n\t * @param {number} start\r\n\t * @param {number} length\r\n\t * @return {number}\r\n\t */\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __nested_webpack_require_9403__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Frame = exports.APNG = undefined;\n\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\n\tvar _player = __nested_webpack_require_9403__(3);\n\n\tvar _player2 = _interopRequireDefault(_player);\n\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n\t/**\r\n\t * @property {number} currFrameNumber\r\n\t * @property {Frame} currFrame\r\n\t * @property {boolean} paused\r\n\t * @property {boolean} ended\r\n\t */\n\tvar APNG = exports.APNG = function () {\n\t function APNG() {\n\t _classCallCheck(this, APNG);\n\n\t this.width = 0;\n\t this.height = 0;\n\t this.numPlays = 0;\n\t this.playTime = 0;\n\t this.frames = [];\n\t }\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {Frame[]} */\n\n\n\t _createClass(APNG, [{\n\t key: 'createImages',\n\n\n\t /**\r\n\t *\r\n\t * @return {Promise.<*>}\r\n\t */\n\t value: function createImages() {\n\t return Promise.all(this.frames.map(function (f) {\n\t return f.createImage();\n\t }));\n\t }\n\n\t /**\r\n\t *\r\n\t * @param {CanvasRenderingContext2D} context\r\n\t * @param {boolean} autoPlay\r\n\t * @return {Promise.}\r\n\t */\n\n\t }, {\n\t key: 'getPlayer',\n\t value: function getPlayer(context) {\n\t var _this = this;\n\n\t var autoPlay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n\t return this.createImages().then(function () {\n\t return new _player2.default(_this, context, autoPlay);\n\t });\n\t }\n\t }]);\n\n\t return APNG;\n\t}();\n\n\tvar Frame = exports.Frame = function () {\n\t function Frame() {\n\t _classCallCheck(this, Frame);\n\n\t this.left = 0;\n\t this.top = 0;\n\t this.width = 0;\n\t this.height = 0;\n\t this.delay = 0;\n\t this.disposeOp = 0;\n\t this.blendOp = 0;\n\t this.imageData = null;\n\t this.imageElement = null;\n\t }\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {number} */\n\n\t /** @type {Blob} */\n\n\t /** @type {HTMLImageElement} */\n\n\n\t _createClass(Frame, [{\n\t key: 'createImage',\n\t value: function createImage() {\n\t var _this2 = this;\n\n\t if (this.imageElement) {\n\t return Promise.resolve();\n\t }\n\t return new Promise(function (resolve, reject) {\n\t var url = URL.createObjectURL(_this2.imageData);\n\t _this2.imageElement = document.createElement('img');\n\t _this2.imageElement.onload = function () {\n\t URL.revokeObjectURL(url);\n\t resolve();\n\t };\n\t _this2.imageElement.onerror = function () {\n\t URL.revokeObjectURL(url);\n\t _this2.imageElement = null;\n\t reject(new Error(\"Image creation error\"));\n\t };\n\t _this2.imageElement.src = url;\n\t });\n\t }\n\t }]);\n\n\t return Frame;\n\t}();\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __nested_webpack_require_13509__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\n\tvar _events = __nested_webpack_require_13509__(4);\n\n\tvar _events2 = _interopRequireDefault(_events);\n\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n\tvar _class = function (_EventEmitter) {\n\t _inherits(_class, _EventEmitter);\n\n\t /**\r\n\t * @param {APNG} apng\r\n\t * @param {CanvasRenderingContext2D} context\r\n\t * @param {boolean} autoPlay\r\n\t */\n\n\t /** @type {boolean} */\n\n\t /** @type {number} */\n\n\t /** @type {Frame} */\n\n\t /** @type {number} */\n\t function _class(apng, context, autoPlay) {\n\t _classCallCheck(this, _class);\n\n\t var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this));\n\n\t _this.playbackRate = 1.0;\n\t _this._currentFrameNumber = 0;\n\t _this._ended = false;\n\t _this._paused = true;\n\t _this._numPlays = 0;\n\n\t _this._apng = apng;\n\t _this.context = context;\n\t _this.stop();\n\t if (autoPlay) {\n\t _this.play();\n\t }\n\t return _this;\n\t }\n\n\t /**\r\n\t *\r\n\t * @return {number}\r\n\t */\n\n\t /** @type {number} */\n\n\n\t /** @type {boolean} */\n\n\t /** @type {ImageData} */\n\n\n\t /** @type {APNG} */\n\n\t /** @type {CanvasRenderingContext2D} */\n\n\n\t _createClass(_class, [{\n\t key: 'renderNextFrame',\n\t value: function renderNextFrame() {\n\t this._currentFrameNumber = (this._currentFrameNumber + 1) % this._apng.frames.length;\n\t if (this._currentFrameNumber === this._apng.frames.length - 1) {\n\t this._numPlays++;\n\t if (this._apng.numPlays !== 0 && this._numPlays >= this._apng.numPlays) {\n\t this._ended = true;\n\t this._paused = true;\n\t }\n\t }\n\n\t if (this._prevFrame && this._prevFrame.disposeOp == 1) {\n\t this.context.clearRect(this._prevFrame.left, this._prevFrame.top, this._prevFrame.width, this._prevFrame.height);\n\t } else if (this._prevFrame && this._prevFrame.disposeOp == 2) {\n\t this.context.putImageData(this._prevFrameData, this._prevFrame.left, this._prevFrame.top);\n\t }\n\n\t var frame = this.currentFrame;\n\t this._prevFrame = frame;\n\t this._prevFrameData = null;\n\t if (frame.disposeOp == 2) {\n\t this._prevFrameData = this.context.getImageData(frame.left, frame.top, frame.width, frame.height);\n\t }\n\t if (frame.blendOp == 0) {\n\t this.context.clearRect(frame.left, frame.top, frame.width, frame.height);\n\t }\n\n\t this.context.drawImage(frame.imageElement, frame.left, frame.top);\n\n\t this.emit('frame', this._currentFrameNumber);\n\t if (this._ended) {\n\t this.emit('end');\n\t }\n\t }\n\n\t // playback\n\n\t }, {\n\t key: 'play',\n\t value: function play() {\n\t var _this2 = this;\n\n\t this.emit('play');\n\n\t if (this._ended) {\n\t this.stop();\n\t }\n\t this._paused = false;\n\n\t var nextRenderTime = performance.now() + this.currentFrame.delay / this.playbackRate;\n\t var tick = function tick(now) {\n\t if (_this2._ended || _this2._paused) {\n\t return;\n\t }\n\t if (now >= nextRenderTime) {\n\t while (now - nextRenderTime >= _this2._apng.playTime / _this2.playbackRate) {\n\t nextRenderTime += _this2._apng.playTime / _this2.playbackRate;\n\t _this2._numPlays++;\n\t }\n\t do {\n\t _this2.renderNextFrame();\n\t nextRenderTime += _this2.currentFrame.delay / _this2.playbackRate;\n\t } while (!_this2._ended && now > nextRenderTime);\n\t }\n\t requestAnimationFrame(tick);\n\t };\n\t requestAnimationFrame(tick);\n\t }\n\t }, {\n\t key: 'pause',\n\t value: function pause() {\n\t if (!this._paused) {\n\t this.emit('pause');\n\t this._paused = true;\n\t }\n\t }\n\t }, {\n\t key: 'stop',\n\t value: function stop() {\n\t this.emit('stop');\n\t this._numPlays = 0;\n\t this._ended = false;\n\t this._paused = true;\n\t // render first frame\n\t this._currentFrameNumber = -1;\n\t this.context.clearRect(0, 0, this._apng.width, this._apng.height);\n\t this.renderNextFrame();\n\t }\n\t }, {\n\t key: 'currentFrameNumber',\n\t get: function get() {\n\t return this._currentFrameNumber;\n\t }\n\n\t /**\r\n\t *\r\n\t * @return {Frame}\r\n\t */\n\n\t }, {\n\t key: 'currentFrame',\n\t get: function get() {\n\t return this._apng.frames[this._currentFrameNumber];\n\t }\n\t }, {\n\t key: 'paused',\n\t get: function get() {\n\t return this._paused;\n\t }\n\t }, {\n\t key: 'ended',\n\t get: function get() {\n\t return this._ended;\n\t }\n\t }]);\n\n\t return _class;\n\t}(_events2.default);\n\n\texports.default = _class;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n\t// Copyright Joyent, Inc. and other Node contributors.\n\t//\n\t// Permission is hereby granted, free of charge, to any person obtaining a\n\t// copy of this software and associated documentation files (the\n\t// \"Software\"), to deal in the Software without restriction, including\n\t// without limitation the rights to use, copy, modify, merge, publish,\n\t// distribute, sublicense, and/or sell copies of the Software, and to permit\n\t// persons to whom the Software is furnished to do so, subject to the\n\t// following conditions:\n\t//\n\t// The above copyright notice and this permission notice shall be included\n\t// in all copies or substantial portions of the Software.\n\t//\n\t// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\t// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\t// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n\t// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\t// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n\t// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n\t// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\tfunction EventEmitter() {\n\t this._events = this._events || {};\n\t this._maxListeners = this._maxListeners || undefined;\n\t}\n\tmodule.exports = EventEmitter;\n\n\t// Backwards-compat with node 0.10.x\n\tEventEmitter.EventEmitter = EventEmitter;\n\n\tEventEmitter.prototype._events = undefined;\n\tEventEmitter.prototype._maxListeners = undefined;\n\n\t// By default EventEmitters will print a warning if more than 10 listeners are\n\t// added to it. This is a useful default which helps finding memory leaks.\n\tEventEmitter.defaultMaxListeners = 10;\n\n\t// Obviously not all Emitters should be limited to 10. This function allows\n\t// that to be increased. Set to zero for unlimited.\n\tEventEmitter.prototype.setMaxListeners = function(n) {\n\t if (!isNumber(n) || n < 0 || isNaN(n))\n\t throw TypeError('n must be a positive number');\n\t this._maxListeners = n;\n\t return this;\n\t};\n\n\tEventEmitter.prototype.emit = function(type) {\n\t var er, handler, len, args, i, listeners;\n\n\t if (!this._events)\n\t this._events = {};\n\n\t // If there is no 'error' event listener then throw.\n\t if (type === 'error') {\n\t if (!this._events.error ||\n\t (isObject(this._events.error) && !this._events.error.length)) {\n\t er = arguments[1];\n\t if (er instanceof Error) {\n\t throw er; // Unhandled 'error' event\n\t } else {\n\t // At least give some kind of context to the user\n\t var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n\t err.context = er;\n\t throw err;\n\t }\n\t }\n\t }\n\n\t handler = this._events[type];\n\n\t if (isUndefined(handler))\n\t return false;\n\n\t if (isFunction(handler)) {\n\t switch (arguments.length) {\n\t // fast cases\n\t case 1:\n\t handler.call(this);\n\t break;\n\t case 2:\n\t handler.call(this, arguments[1]);\n\t break;\n\t case 3:\n\t handler.call(this, arguments[1], arguments[2]);\n\t break;\n\t // slower\n\t default:\n\t args = Array.prototype.slice.call(arguments, 1);\n\t handler.apply(this, args);\n\t }\n\t } else if (isObject(handler)) {\n\t args = Array.prototype.slice.call(arguments, 1);\n\t listeners = handler.slice();\n\t len = listeners.length;\n\t for (i = 0; i < len; i++)\n\t listeners[i].apply(this, args);\n\t }\n\n\t return true;\n\t};\n\n\tEventEmitter.prototype.addListener = function(type, listener) {\n\t var m;\n\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\n\t if (!this._events)\n\t this._events = {};\n\n\t // To avoid recursion in the case that type === \"newListener\"! Before\n\t // adding it to the listeners, first emit \"newListener\".\n\t if (this._events.newListener)\n\t this.emit('newListener', type,\n\t isFunction(listener.listener) ?\n\t listener.listener : listener);\n\n\t if (!this._events[type])\n\t // Optimize the case of one listener. Don't need the extra array object.\n\t this._events[type] = listener;\n\t else if (isObject(this._events[type]))\n\t // If we've already got an array, just append.\n\t this._events[type].push(listener);\n\t else\n\t // Adding the second element, need to change to array.\n\t this._events[type] = [this._events[type], listener];\n\n\t // Check for listener leak\n\t if (isObject(this._events[type]) && !this._events[type].warned) {\n\t if (!isUndefined(this._maxListeners)) {\n\t m = this._maxListeners;\n\t } else {\n\t m = EventEmitter.defaultMaxListeners;\n\t }\n\n\t if (m && m > 0 && this._events[type].length > m) {\n\t this._events[type].warned = true;\n\t console.error('(node) warning: possible EventEmitter memory ' +\n\t 'leak detected. %d listeners added. ' +\n\t 'Use emitter.setMaxListeners() to increase limit.',\n\t this._events[type].length);\n\t if (typeof console.trace === 'function') {\n\t // not supported in IE 10\n\t console.trace();\n\t }\n\t }\n\t }\n\n\t return this;\n\t};\n\n\tEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\n\tEventEmitter.prototype.once = function(type, listener) {\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\n\t var fired = false;\n\n\t function g() {\n\t this.removeListener(type, g);\n\n\t if (!fired) {\n\t fired = true;\n\t listener.apply(this, arguments);\n\t }\n\t }\n\n\t g.listener = listener;\n\t this.on(type, g);\n\n\t return this;\n\t};\n\n\t// emits a 'removeListener' event iff the listener was removed\n\tEventEmitter.prototype.removeListener = function(type, listener) {\n\t var list, position, length, i;\n\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\n\t if (!this._events || !this._events[type])\n\t return this;\n\n\t list = this._events[type];\n\t length = list.length;\n\t position = -1;\n\n\t if (list === listener ||\n\t (isFunction(list.listener) && list.listener === listener)) {\n\t delete this._events[type];\n\t if (this._events.removeListener)\n\t this.emit('removeListener', type, listener);\n\n\t } else if (isObject(list)) {\n\t for (i = length; i-- > 0;) {\n\t if (list[i] === listener ||\n\t (list[i].listener && list[i].listener === listener)) {\n\t position = i;\n\t break;\n\t }\n\t }\n\n\t if (position < 0)\n\t return this;\n\n\t if (list.length === 1) {\n\t list.length = 0;\n\t delete this._events[type];\n\t } else {\n\t list.splice(position, 1);\n\t }\n\n\t if (this._events.removeListener)\n\t this.emit('removeListener', type, listener);\n\t }\n\n\t return this;\n\t};\n\n\tEventEmitter.prototype.removeAllListeners = function(type) {\n\t var key, listeners;\n\n\t if (!this._events)\n\t return this;\n\n\t // not listening for removeListener, no need to emit\n\t if (!this._events.removeListener) {\n\t if (arguments.length === 0)\n\t this._events = {};\n\t else if (this._events[type])\n\t delete this._events[type];\n\t return this;\n\t }\n\n\t // emit removeListener for all listeners on all events\n\t if (arguments.length === 0) {\n\t for (key in this._events) {\n\t if (key === 'removeListener') continue;\n\t this.removeAllListeners(key);\n\t }\n\t this.removeAllListeners('removeListener');\n\t this._events = {};\n\t return this;\n\t }\n\n\t listeners = this._events[type];\n\n\t if (isFunction(listeners)) {\n\t this.removeListener(type, listeners);\n\t } else if (listeners) {\n\t // LIFO order\n\t while (listeners.length)\n\t this.removeListener(type, listeners[listeners.length - 1]);\n\t }\n\t delete this._events[type];\n\n\t return this;\n\t};\n\n\tEventEmitter.prototype.listeners = function(type) {\n\t var ret;\n\t if (!this._events || !this._events[type])\n\t ret = [];\n\t else if (isFunction(this._events[type]))\n\t ret = [this._events[type]];\n\t else\n\t ret = this._events[type].slice();\n\t return ret;\n\t};\n\n\tEventEmitter.prototype.listenerCount = function(type) {\n\t if (this._events) {\n\t var evlistener = this._events[type];\n\n\t if (isFunction(evlistener))\n\t return 1;\n\t else if (evlistener)\n\t return evlistener.length;\n\t }\n\t return 0;\n\t};\n\n\tEventEmitter.listenerCount = function(emitter, type) {\n\t return emitter.listenerCount(type);\n\t};\n\n\tfunction isFunction(arg) {\n\t return typeof arg === 'function';\n\t}\n\n\tfunction isNumber(arg) {\n\t return typeof arg === 'number';\n\t}\n\n\tfunction isObject(arg) {\n\t return typeof arg === 'object' && arg !== null;\n\t}\n\n\tfunction isUndefined(arg) {\n\t return arg === void 0;\n\t}\n\n\n/***/ })\n/******/ ])\n});\n;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYXBuZy1qcy9saWIvaW5kZXguanMuanMiLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxJQUFJLElBQXlEO0FBQzdEO0FBQ0EsTUFBTSxFQUt3QjtBQUM5QixDQUFDO0FBQ0QscUNBQXFDO0FBQ3JDO0FBQ0E7O0FBRUE7QUFDQSxtQkFBbUIsOEJBQW1COztBQUV0QztBQUNBO0FBQ0E7O0FBRUE7QUFDQTt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2h0ID0gZHYuZ2V0VWludDMyKG9mZiArIDEyKTtcblx0ICAgICAgICAgICAgICAgIGJyZWFrO1xuXHQgICAgICAgICAgICBjYXNlICdhY1RMJzpcblx0ICAgICAgICAgICAgICAgIGFwbmcubnVtUGxheXMgPSBkdi5nZXRVaW50MzIob2ZmICsgOCArIDQpO1xuXHQgICAgICAgICAgICAgICAgYnJlYWs7XG5cdCAgICAgICAgICAgIGNhc2UgJ2ZjVEwnOlxuXHQgICAgICAgICAgICAgICAgaWYgKGZyYW1lKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgYXBuZy5mcmFtZXMucHVzaChmcmFtZSk7XG5cdCAgICAgICAgICAgICAgICAgICAgZnJhbWVOdW1iZXIrKztcblx0ICAgICAgICAgICAgICAgIH1cblx0ICAgICAgICAgICAgICAgIGZyYW1lID0gbmV3IF9zdHJ1Y3RzLkZyYW1lKCk7XG5cdCAgICAgICAgICAgICAgICBmcmFtZS53aWR0aCA9IGR2LmdldFVpbnQzMihvZmYgKyA4ICsgNCk7XG5cdCAgICAgICAgICAgICAgICBmcmFtZS5oZWlnaHQgPSBkdi5nZXRVaW50MzIob2ZmICsgOCArIDgpO1xuXHQgICAgICAgICAgICAgICAgZnJhbWUubGVmdCA9IGR2LmdldFVpbnQzMihvZmYgKyA4ICsgMTIpO1xuXHQgICAgICAgICAgICAgICAgZnJhbWUudG9wID0gZHYuZ2V0VWludDMyKG9mZiArIDggKyAxNik7XG5cdCAgICAgICAgICAgICAgICB2YXIgZGVsYXlOID0gZHYuZ2V0VWludDE2KG9mZiArIDggKyAyMCk7XG5cdCAgICAgICAgICAgICAgICB2YXIgZGVsYXlEID0gZHYuZ2V0VWludDE2KG9mZiArIDggKyAyMik7XG5cdCAgICAgICAgICAgICAgICBpZiAoZGVsYXlEID09PSAwKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgZGVsYXlEID0gMTAwO1xuXHQgICAgICAgICAgICAgICAgfVxuXHQgICAgICAgICAgICAgICAgZnJhbWUuZGVsYXkgPSAxMDAwICogZGVsYXlOIC8gZGVsYXlEO1xuXHQgICAgICAgICAgICAgICAgLy8gaHR0cHM6Ly9idWd6aWxsYS5tb3ppbGxhLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTI1MTM3XG5cdCAgICAgICAgICAgICAgICAvLyBodHRwczovL2J1Z3ppbGxhLm1vemlsbGEub3JnL3Nob3dfYnVnLmNnaT9pZD0xMzk2Nzdcblx0ICAgICAgICAgICAgICAgIC8vIGh0dHBzOi8vYnVnemlsbGEubW96aWxsYS5vcmcvc2hvd19idWcuY2dpP2lkPTIwNzA1OVxuXHQgICAgICAgICAgICAgICAgaWYgKGZyYW1lLmRlbGF5IDw9IDEwKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgZnJhbWUuZGVsYXkgPSAxMDA7XG5cdCAgICAgICAgICAgICAgICB9XG5cdCAgICAgICAgICAgICAgICBhcG5nLnBsYXlUaW1lICs9IGZyYW1lLmRlbGF5O1xuXHQgICAgICAgICAgICAgICAgZnJhbWUuZGlzcG9zZU9wID0gZHYuZ2V0VWludDgob2ZmICsgOCArIDI0KTtcblx0ICAgICAgICAgICAgICAgIGZyYW1lLmJsZW5kT3AgPSBkdi5nZXRVaW50OChvZmYgKyA4ICsgMjUpO1xuXHQgICAgICAgICAgICAgICAgZnJhbWUuZGF0YVBhcnRzID0gW107XG5cdCAgICAgICAgICAgICAgICBpZiAoZnJhbWVOdW1iZXIgPT09IDAgJiYgZnJhbWUuZGlzcG9zZU9wID09PSAyKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgZnJhbWUuZGlzcG9zZU9wID0gMTtcblx0ICAgICAgICAgICAgICAgIH1cblx0ICAgICAgICAgICAgICAgIGJyZWFrO1xuXHQgICAgICAgICAgICBjYXNlICdmZEFUJzpcblx0ICAgICAgICAgICAgICAgIGlmIChmcmFtZSkge1xuXHQgICAgICAgICAgICAgICAgICAgIGZyYW1lLmRhdGFQYXJ0cy5wdXNoKGJ5dGVzLnN1YmFycmF5KG9mZiArIDggKyA0LCBvZmYgKyA4ICsgbGVuZ3RoKSk7XG5cdCAgICAgICAgICAgICAgICB9XG5cdCAgICAgICAgICAgICAgICBicmVhaztcblx0ICAgICAgICAgICAgY2FzZSAnSURBVCc6XG5cdCAgICAgICAgICAgICAgICBpZiAoZnJhbWUpIHtcblx0ICAgICAgICAgICAgICAgICAgICBmcmFtZS5kYXRhUGFydHMucHVzaChieXRlcy5zdWJhcnJheShvZmYgKyA4LCBvZmYgKyA4ICsgbGVuZ3RoKSk7XG5cdCAgICAgICAgICAgICAgICB9XG5cdCAgICAgICAgICAgICAgICBicmVhaztcblx0ICAgICAgICAgICAgY2FzZSAnSUVORCc6XG5cdCAgICAgICAgICAgICAgICBwb3N0RGF0YVBhcnRzLnB1c2goc3ViQnVmZmVyKGJ5dGVzLCBvZmYsIDEyICsgbGVuZ3RoKSk7XG5cdCAgICAgICAgICAgICAgICBicmVhaztcblx0ICAgICAgICAgICAgZGVmYXVsdDpcblx0ICAgICAgICAgICAgICAgIHByZURhdGFQYXJ0cy5wdXNoKHN1YkJ1ZmZlcihieXRlcywgb2ZmLCAxMiArIGxlbmd0aCkpO1xuXHQgICAgICAgIH1cblx0ICAgIH0pO1xuXG5cdCAgICBpZiAoZnJhbWUpIHtcblx0ICAgICAgICBhcG5nLmZyYW1lcy5wdXNoKGZyYW1lKTtcblx0ICAgIH1cblxuXHQgICAgaWYgKGFwbmcuZnJhbWVzLmxlbmd0aCA9PSAwKSB7XG5cdCAgICAgICAgcmV0dXJuIGVyck5vdEFQTkc7XG5cdCAgICB9XG5cblx0ICAgIHZhciBwcmVCbG9iID0gbmV3IEJsb2IocHJlRGF0YVBhcnRzKSxcblx0ICAgICAgICBwb3N0QmxvYiA9IG5ldyBCbG9iKHBvc3REYXRhUGFydHMpO1xuXG5cdCAgICBhcG5nLmZyYW1lcy5mb3JFYWNoKGZ1bmN0aW9uIChmcmFtZSkge1xuXHQgICAgICAgIHZhciBiYiA9IFtdO1xuX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LCByZWplY3QpIHtcblx0ICAgICAgICAgICAgICAgIHZhciB1cmwgPSBVUkwuY3JlYXRlT2JqZWN0VVJMKF90aGlzMi5pbWFnZURhdGEpO1xuXHQgICAgICAgICAgICAgICAgX3RoaXMyLmltYWdlRWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2ltZycpO1xuXHQgICAgICAgICAgICAgICAgX3RoaXMyLmltYWdlRWxlbWVudC5vbmxvYWQgPSBmdW5jdGlvbiAoKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgVVJMLnJldm9rZU9iamVjdFVSTCh1cmwpO1xuXHQgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoKTtcblx0ICAgICAgICAgICAgICAgIH07XG5cdCAgICAgICAgICAgICAgICBfdGhpczIuaW1hZ2VFbGVtZW50Lm9uZXJyb3IgPSBmdW5jdGlvbiAoKSB7XG5cdCAgICAgICAgICAgICAgICAgICAgVVJMLnJldm9rZU9iamVjdFVSTCh1cmwpO1xuXHQgICAgICAgICAgICAgICAgICAgIF90aGlzMi5pbWFnZUVsZW1lbnQgPSBudWxsO1xuXHQgICAgICAgICAgICAgICAgICAgIHJlamVjdChuZXcgRXJyb3IoXCJJbWFnZSBjcmVhdGlvbiBlcnJvclwiKSk7XG5cdCAgICAgICAgICAgICAgICB9O1xuXHQgICAgICAgICAgICAgICAgX3RoaXMyLmltYWdlRWxlbWVudC5zcmMgPSB1cmw7XG5cdCAgICAgICAgICAgIH0pO1xuXHQgICAgICAgIH1cblx0ICAgIH1dKTtcblxuXHQgICAgcmV0dXJuIEZyYW1lO1xuXHR9KCk7XG5cbi8qKiovIH0pLFxuLyogMyAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cywgX193ZWJwYWNrX3JlcXVpcmVfXykge1xuXG5cdCd1c2Ugc3RyaWN0JztcblxuXHRPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIs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JlbnRGcmFtZS5kZWxheSAvIHRoaXMucGxheWJhY2tSYXRlO1xuXHQgICAgICAgICAgICB2YXIgdGljayA9IGZ1bmN0aW9uIHRpY2sobm93KSB7XG5cdCAgICAgICAgICAgICAgICBpZiAoX3RoaXMyLl9lbmRlZCB8fCBfdGhpczIuX3BhdXNlZCkge1xuXHQgICAgICAgICAgICAgICAgICAgIHJldHVybjtcblx0ICAgICAgICAgICAgICAgIH1cblx0ICAgICAgICAgICAgICAgIGlmIChub3cgPj0gbmV4dFJlbmRlclRpbWUpIHtcblx0ICAgICAgICAgICAgICAgICAgICB3aGlsZSAobm93IC0gbmV4dFJlbmRlclRpbWUgPj0gX3RoaXMyLl9hcG5nLnBsYXlUaW1lIC8gX3RoaXMyLnBsYXliYWNrUmF0ZSkge1xuXHQgICAgICAgICAgICAgICAgICAgICAgICBuZXh0UmVuZGVyVGltZSArPSBfdGhpczIuX2FwbmcucGxheVRpbWUgLyBfdGhpczIucGxheWJhY2tSYXRlO1xuXHQgICAgICAgICAgICAgICAgICAgICAgICBfdGhpczIuX251bVBsYXlzKys7XG5cdCAgICAgICAgICAgICAgICAgICAgfVxuXHQgICAgICAgICAgICAgICAgICAgIGRvIHtcblx0ICAgICAgICAgICAgICAgICAgICAgICAgX3RoaXMyLnJlbmRlck5leHRGcmFtZSgpO1xuXHQgICAgICAgICAgICAgICAgICAgICAgICBuZXh0UmVuZGVyVGltZSArPSBfdGhpczIuY3VycmVudEZyYW1lLmRlbGF5IC8gX3RoaXMyLnBsYXliYWNrUmF0ZTtcblx0ICAgICAgICAgICAgICAgICAgICB9IHdoaWxlICghX3RoaXMyLl9lbmRlZCAmJiBub3cgPiBuZXh0UmVuZGVyVGltZSk7XG5cdCAgICAgICAgICAgICAgICB9XG5cdCAgICAgICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUodGljayk7XG5cdCAgICAgICAgICAgIH07XG5cdCAgICAgICAgICAgIHJlcXVlc3RBbmltYXRpb25GcmFtZSh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dm9pZCAwO1xuXHR9XG5cblxuLyoqKi8gfSlcbi8qKioqKiovIF0pXG59KTtcbjsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/apng-js/lib/index.js\n"); - -/***/ }), - -/***/ "./resources/js/app/Footer.js": -/*!************************************!*\ - !*** ./resources/js/app/Footer.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Nav.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-bootstrap */ \"./node_modules/react-router-bootstrap/index.js\");\n/* harmony import */ var _PrivacyDialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PrivacyDialog */ \"./resources/js/app/PrivacyDialog.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\nvar Footer = function Footer() {\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n showDialog = _React$useState2[0],\n setShowDialog = _React$useState2[1];\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(\"footer\", {\n className: \"bg-dark mt-5 px-3 py-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n md: 4,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h5\", {\n children: t('footer.competitions')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n as: \"ul\",\n className: \"flex-column\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/tournaments/6\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"/tournaments/6\",\n children: \"Deutsche ALttP Community - Seed der Woche\"\n })\n })\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n md: 4,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h5\", {\n children: t('footer.resources')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n as: \"ul\",\n className: \"flex-column\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://alttp-wiki.net/\",\n target: \"_blank\",\n children: t('footer.alttpwiki')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/tech\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"/tech\",\n children: t('footer.tech')\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/map\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"/map\",\n children: t('footer.map')\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://glitchmaps.mfns.dev/\",\n target: \"_blank\",\n children: t('footer.muffins')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/schedule\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"/schedule\",\n children: t('footer.schedule')\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://wiki.supermetroid.run/\",\n target: \"_blank\",\n children: t('footer.smwiki')\n })\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n md: 4,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h5\", {\n children: t('footer.info')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n as: \"ul\",\n className: \"flex-column\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n onClick: function onClick() {\n setShowDialog(true);\n },\n children: t('footer.privacy')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://discord.gg/5zuANcS\",\n target: \"_blank\",\n children: t('footer.alttpde')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://discord.com/invite/GGdrbnQmVs\",\n target: \"_blank\",\n children: t('footer.smd')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n as: \"li\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n className: \"p-0 text-muted\",\n href: \"https://discord.gg/hVw5Zeq\",\n target: \"_blank\",\n children: t('footer.connect')\n })\n })]\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"p\", {\n className: \"pt-5 text-center text-muted\",\n children: t('footer.contact')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_PrivacyDialog__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n onHide: function onHide() {\n setShowDialog(false);\n },\n show: showDialog\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Footer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL0Zvb3Rlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOzs7O0FBRUEsSUFBTU8sTUFBTSxHQUFHLFNBQVRBLE1BQVMsR0FBTTtBQUNwQix3QkFBb0NQLDJDQUFBLENBQWUsS0FBZixDQUFwQztBQUFBO0FBQUEsTUFBT1MsVUFBUDtBQUFBLE1BQW1CQyxhQUFuQjs7QUFFQSx3QkFBY04sNkRBQWMsRUFBNUI7QUFBQSxNQUFRTyxDQUFSLG1CQUFRQSxDQUFSOztBQUVBLHNCQUFPO0FBQVEsYUFBUyxFQUFDLHdCQUFsQjtBQUFBLDRCQUNOLHdEQUFDLHVEQUFEO0FBQUEsOEJBQ0Msd0RBQUMsdURBQUQ7QUFBSyxVQUFFLEVBQUUsQ0FBVDtBQUFBLGdDQUNDO0FBQUEsb0JBQUtBLENB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 }), - -/***/ "./resources/js/app/FullLayout.js": -/*!****************************************!*\ - !*** ./resources/js/app/FullLayout.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Footer */ \"./resources/js/app/Footer.js\");\n/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Header */ \"./resources/js/app/Header.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar FullLayout = function FullLayout(_ref) {\n var doLogout = _ref.doLogout;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n doLogout: doLogout\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_4__.Outlet, {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Footer__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {})]\n });\n};\n\nFullLayout.propTypes = {\n doLogout: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FullLayout);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL0Z1bGxMYXlvdXQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7OztBQUVBLElBQU1LLFVBQVUsR0FBRyxTQUFiQSxVQUFhO0FBQUEsTUFBR0MsUUFBSCxRQUFHQSxRQUFIO0FBQUEsc0JBQWtCO0FBQUEsNEJBQ3BDLHVEQUFDLCtDQUFEO0FBQVEsY0FBUSxFQUFFQTtBQUFsQixNQURvQyxlQUVwQyx1REFBQyxvREFBRCxLQUZvQyxlQUdwQyx1REFBQywrQ0FBRCxLQUhvQztBQUFBLElBQWxCO0FBQUEsQ0FBbkI7O0FBTUFELFVBQVUsQ0FBQ0UsU0FBWCxHQUF1QjtBQUN0QkQsRUFBQUEsUUFBUSxFQUFFTix3REFBY1E7QUFERixDQUF2QjtBQUlBLGlFQUFlSCxVQUFmIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2FwcC9GdWxsTGF5b3V0LmpzPzc0ZWEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBPdXRsZXQgfSBmcm9tICdyZWFjdC1yb3V0ZXItZG9tJztcblxuaW1wb3J0IEZvb3RlciBmcm9tICcuL0Zvb3Rlcic7XG5pbXBvcnQgSGVhZGVyIGZyb20gJy4vSGVhZGVyJztcblxuY29uc3QgRnVsbExheW91dCA9ICh7IGRvTG9nb3V0IH0pID0+IDw+XG5cdDxIZWFkZXIgZG9Mb2dvdXQ9e2RvTG9nb3V0fSAvPlxuXHQ8T3V0bGV0IC8+XG5cdDxGb290ZXIgLz5cbjwvPjtcblxuRnVsbExheW91dC5wcm9wVHlwZXMgPSB7XG5cdGRvTG9nb3V0OiBQcm9wVHlwZXMuZnVuYyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZ1bGxMYXlvdXQ7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJPdXRsZXQiLCJGb290ZXIiLCJIZWFkZXIiLCJGdWxsTGF5b3V0IiwiZG9Mb2dvdXQiLCJwcm9wVHlwZXMiLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/app/FullLayout.js\n"); - -/***/ }), - -/***/ "./resources/js/app/Header.js": -/*!************************************!*\ - !*** ./resources/js/app/Header.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 prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Navbar.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Nav.js\");\n/* harmony import */ var react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-bootstrap */ \"./node_modules/react-router-bootstrap/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _LanguageSwitcher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LanguageSwitcher */ \"./resources/js/app/LanguageSwitcher.js\");\n/* harmony import */ var _User__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./User */ \"./resources/js/app/User.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar Header = function Header(_ref) {\n var doLogout = _ref.doLogout;\n\n var _useLocation = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_6__.useLocation)(),\n pathname = _useLocation.pathname;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n id: \"header\",\n bg: \"dark\",\n expand: \"md\",\n variant: \"dark\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n fluid: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Brand, {\n children: \"ALttP\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Toggle, {\n \"aria-controls\": \"header-nav\",\n label: t('button.menu'),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].MENU, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Collapse, {\n id: \"header-nav\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n activeKey: pathname,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/tournaments/6\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Link, {\n href: \"/tournaments/6\",\n children: \"ALttPR Weekly\"\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n activeKey: pathname,\n className: \"ms-auto\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/tech\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Link, {\n href: \"/tech\",\n children: t('menu.tech')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/map/lw\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Link, {\n href: \"/map/lw\",\n children: t('menu.map')\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(\"div\", {\n className: \"d-flex align-items-center\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Text, {\n className: \"mx-2\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_LanguageSwitcher__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_User__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n doLogout: doLogout\n })]\n })]\n })]\n })\n });\n};\n\nHeader.propTypes = {\n doLogout: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL0hlYWRlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7OztBQUVBLElBQU1XLE1BQU0sR0FBRyxTQUFUQSxNQUFTLE9BQWtCO0FBQUEsTUFBZkMsUUFBZSxRQUFmQSxRQUFlOztBQUNoQyxxQkFBcUJOLDZEQUFXLEVBQWhDO0FBQUEsTUFBUU8sUUFBUixnQkFBUUEsUUFBUjs7QUFDQSx3QkFBY04sNkRBQWMsRUFBNUI7QUFBQSxNQUFRTyxDQUFSLG1CQUFRQSxDQUFSOztBQUVBLHNCQUFPLHVEQUFDLHVEQUFEO0FBQVEsTUFBRSxFQUFDLFFBQVg7QUFBb0IsTUFBRSxFQUFDLE1BQXZCO0FBQThCLFVBQU0sRUFBQyxJQUFyQztBQUEwQyxXQUFPLEVBQUMsTUFBbEQ7QUFBQSwyQkFDTix3REFBQyx1REFBRDtBQUFXLFdBQUssTUFBaEI7QUFBQSw4QkFDQyx1REFBQyxpRUFBRDtBQUFlLFVBQUUsRUFBQyxHQUFsQjtBQUFBLCtCQUNDLHVEQUFDLDZEQUFEO0FBQUE7QUFBQTtBQURELFFBREQsZUFNQyx1REFBQyw4REFBRDtBQUFlLHlCQUFjLFlBQTdCO0FBQTBDLGFBQUssRUFBRUEsQ0FBQyxDQUFDLGFBQUQsQ0FBbEQ7QUFBQSwrQkFDQyx1REFBQyxv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cC9sd1wiPlxuXHRcdFx0XHRcdFx0XHR7dCgnbWVudS5tYXAnKX1cblx0XHRcdFx0XHRcdDwvTmF2Lkxpbms+XG5cdFx0XHRcdFx0PC9MaW5rQ29udGFpbmVyPlxuXHRcdFx0XHQ8L05hdj5cblx0XHRcdFx0PGRpdiBjbGFzc05hbWU9XCJkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCI+XG5cdFx0XHRcdFx0PE5hdmJhci5UZXh0IGNsYXNzTmFtZT1cIm14LTJcIj5cblx0XHRcdFx0XHRcdDxMYW5ndWFnZVN3aXRjaGVyIC8+XG5cdFx0XHRcdFx0PC9OYXZiYXIuVGV4dD5cblx0XHRcdFx0XHQ8VXNlciBkb0xvZ291dD17ZG9Mb2dvdXR9IC8+XG5cdFx0XHRcdDwvZGl2PlxuXHRcdFx0PC9OYXZiYXIuQ29sbGFwc2U+XG5cdFx0PC9Db250YWluZXI+XG5cdDwvTmF2YmFyPjtcbn07XG5cbkhlYWRlci5wcm9wVHlwZXMgPSB7XG5cdGRvTG9nb3V0OiBQcm9wVHlwZXMuZnVuYyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEhlYWRlcjtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkNvbnRhaW5lciIsIk5hdiIsIk5hdmJhciIsIkxpbmtDb250YWluZXIiLCJ1c2VMb2NhdGlvbiIsInVzZVRyYW5zbGF0aW9uIiwiTGFuZ3VhZ2VTd2l0Y2hlciIsIlVzZXIiLCJJY29uIiwiSGVhZGVyIiwiZG9Mb2dvdXQiLCJwYXRobmFtZSIsInQiLCJwcm9wVHlwZXMiLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/app/Header.js\n"); - -/***/ }), - -/***/ "./resources/js/app/LanguageSwitcher.js": -/*!**********************************************!*\ - !*** ./resources/js/app/LanguageSwitcher.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 axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar setLanguage = function setLanguage(user, language) {\n _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].changeLanguage(language);\n\n if (user) {\n axios__WEBPACK_IMPORTED_MODULE_0___default().post('/api/users/set-language', {\n language: language\n });\n }\n};\n\nvar LanguageSwitcher = function LanguageSwitcher(_ref) {\n var user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n className: \"text-reset\",\n href: \"?lng=\".concat(_i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language === 'de' ? 'en' : 'de'),\n onClick: function onClick(e) {\n setLanguage(user, _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language === 'de' ? 'en' : 'de');\n e.preventDefault();\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language === 'de' ? 'Switch to english' : 'Auf deutsch wechseln',\n variant: \"outline-secondary\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].LANGUAGE, {}), ' ', _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language === 'de' ? 'Deutsch' : 'English']\n });\n};\n\nLanguageSwitcher.propTypes = {\n user: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__.withUser)(LanguageSwitcher)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL0xhbmd1YWdlU3dpdGNoZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7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kZScgPyAnZW4nIDogJ2RlJ31gfVxuXHRvbkNsaWNrPXtlID0+IHsgc2V0TGFuZ3VhZ2UodXNlciwgaTE4bi5sYW5ndWFnZSA9PT0gJ2RlJyA/ICdlbicgOiAnZGUnKTsgZS5wcmV2ZW50RGVmYXVsdCgpOyB9fVxuXHR0aXRsZT17aTE4bi5sYW5ndWFnZSA9PT0gJ2RlJyA/ICdTd2l0Y2ggdG8gZW5nbGlzaCcgOiAnQXVmIGRldXRzY2ggd2VjaHNlbG4nfVxuXHR2YXJpYW50PVwib3V0bGluZS1zZWNvbmRhcnlcIlxuPlxuXHQ8SWNvbi5MQU5HVUFHRSAvPlxuXHR7JyAnfVxuXHR7aTE4bi5sYW5ndWFnZSA9PT0gJ2RlJyA/ICdEZXV0c2NoJyA6ICdFbmdsaXNoJ31cbjwvQnV0dG9uPjtcblxuTGFuZ3VhZ2VTd2l0Y2hlci5wcm9wVHlwZXMgPSB7XG5cdHVzZXI6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFRyYW5zbGF0aW9uKCkod2l0aFVzZXIoTGFuZ3VhZ2VTd2l0Y2hlcikpO1xuIl0sIm5hbWVzIjpbImF4aW9zIiwiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJ3aXRoVHJhbnNsYXRpb24iLCJJY29uIiwid2l0aFVzZXIiLCJpMThuIiwic2V0TGFuZ3VhZ2UiLCJ1c2VyIiwibGFuZ3VhZ2UiLCJjaGFuZ2VMYW5ndWFnZSIsInBvc3QiLCJMYW5ndWFnZVN3aXRjaGVyIiwiZSIsInByZXZlbnREZWZhdWx0IiwicHJvcFR5cGVzIiwic2hhcGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/app/LanguageSwitcher.js\n"); - -/***/ }), - -/***/ "./resources/js/app/PrivacyDialog.js": -/*!*******************************************!*\ - !*** ./resources/js/app/PrivacyDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar PrivacyDialog = function PrivacyDialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_2__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Title, {\n children: t('privacy.heading')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"p\", {\n children: t('privacy.p1')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"p\", {\n children: t('privacy.p2')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"p\", {\n children: t('privacy.p3')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: t('button.close')\n })\n })]\n });\n};\n\nPrivacyDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrivacyDialog);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL1ByaXZhY3lEaWFsb2cuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ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G5Qcml2YWN5RGlhbG9nLnByb3BUeXBlcyA9IHtcblx0b25IaWRlOiBQcm9wVHlwZXMuZnVuYyxcblx0c2hvdzogUHJvcFR5cGVzLmJvb2wsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBQcml2YWN5RGlhbG9nO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiTW9kYWwiLCJ1c2VUcmFuc2xhdGlvbiIsIlByaXZhY3lEaWFsb2ciLCJvbkhpZGUiLCJzaG93IiwidCIsInByb3BUeXBlcyIsImZ1bmMiLCJib29sIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/app/PrivacyDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/app/Routes.js": -/*!************************************!*\ - !*** ./resources/js/app/Routes.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 prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _FullLayout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FullLayout */ \"./resources/js/app/FullLayout.js\");\n/* harmony import */ var _pages_AlttpSeed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../pages/AlttpSeed */ \"./resources/js/pages/AlttpSeed.js\");\n/* harmony import */ var _pages_DiscordBot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../pages/DiscordBot */ \"./resources/js/pages/DiscordBot.js\");\n/* harmony import */ var _pages_DoorsTracker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pages/DoorsTracker */ \"./resources/js/pages/DoorsTracker.js\");\n/* harmony import */ var _pages_Event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../pages/Event */ \"./resources/js/pages/Event.js\");\n/* harmony import */ var _pages_Front__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../pages/Front */ \"./resources/js/pages/Front.js\");\n/* harmony import */ var _pages_Map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../pages/Map */ \"./resources/js/pages/Map.js\");\n/* harmony import */ var _pages_Schedule__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../pages/Schedule */ \"./resources/js/pages/Schedule.js\");\n/* harmony import */ var _pages_Technique__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../pages/Technique */ \"./resources/js/pages/Technique.js\");\n/* harmony import */ var _pages_Techniques__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../pages/Techniques */ \"./resources/js/pages/Techniques.js\");\n/* harmony import */ var _pages_Tournament__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../pages/Tournament */ \"./resources/js/pages/Tournament.js\");\n/* harmony import */ var _pages_User__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../pages/User */ \"./resources/js/pages/User.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar AppRoutes = function AppRoutes(_ref) {\n var doLogout = _ref.doLogout;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Routes, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_FullLayout__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n doLogout: doLogout\n }),\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"discord-bot\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_DiscordBot__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"dungeons\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Techniques__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n namespace: \"dungeons\",\n type: \"dungeon\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"dungeons/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Technique__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n basepath: \"dungeons\",\n type: \"dungeon\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"events/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Event__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"h/:hash\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_AlttpSeed__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"locations\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Techniques__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n namespace: \"locations\",\n type: \"location\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"locations/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Technique__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n basepath: \"locations\",\n type: \"location\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"map\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n index: true,\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Navigate, {\n replace: true,\n to: \"lw\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \":activeMap\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Map__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {})\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"modes\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Techniques__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n namespace: \"modes\",\n type: \"mode\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"modes/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Technique__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n basepath: \"modes\",\n type: \"mode\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"rulesets\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Techniques__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n namespace: \"rulesets\",\n type: \"ruleset\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"rulesets/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Technique__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n basepath: \"rulesets\",\n type: \"ruleset\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"schedule\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Schedule__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"tech\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Techniques__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n namespace: \"techniques\",\n type: \"tech\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"tech/:name\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Technique__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n basepath: \"tech\",\n type: \"tech\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"tournaments/:id\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Tournament__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"users/:id\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_User__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"/\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_Front__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"*\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Navigate, {\n to: \"/\"\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_14__.Route, {\n path: \"doors-tracker\",\n element: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_pages_DoorsTracker__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {})\n })]\n });\n};\n\nAppRoutes.propTypes = {\n doLogout: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AppRoutes);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL1JvdXRlcy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNaUIsU0FBUyxHQUFHLFNBQVp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js/app/User.js": -/*!**********************************!*\ - !*** ./resources/js/app/User.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 prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Nav.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-bootstrap */ \"./node_modules/react-router-bootstrap/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar User = function User(_ref) {\n var doLogout = _ref.doLogout;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.useTranslation)(),\n t = _useTranslation.t;\n\n var user = (0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__.useUser)();\n return user ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"ms-auto\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_router_bootstrap__WEBPACK_IMPORTED_MODULE_1__.LinkContainer, {\n to: \"/users/\".concat(user.id),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Link, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"img\", {\n alt: \"\",\n src: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_4__.getAvatarUrl)(user)\n }), user.username, user.discriminator && user.discriminator !== '0' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(\"span\", {\n className: \"text-muted\",\n children: [\"#\", user.discriminator]\n }) : null]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n className: \"ms-2\",\n onClick: doLogout,\n title: t('button.logout'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].LOGOUT, {\n title: \"\"\n })\n })]\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n className: \"ms-auto\",\n href: \"/login\",\n onClick: function onClick() {\n if (location.pathname.length > 1) {\n localStorage.setItem('returnPath', location.pathname.substr(1));\n }\n },\n title: t('button.login'),\n variant: \"discord\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DISCORD, {}), ' ', t('button.login')]\n });\n};\n\nUser.propTypes = {\n doLogout: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (User);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBwL1VzZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7Ozs7QUFFQSxJQUFNUyxJQUFJLEdBQUcsU0FBUEEsSUFBTyxPQUFrQjtBQUFBLE1BQWZDLFFBQWUsUUFBZkEsUUFBZTs7QUFDOUIsd0JBQWNMLDZEQUFjLEVBQTVCO0FBQUEsTUFBUU0sQ0FBUixtQkFBUUEsQ0FBUjs7QUFDQSxNQUFNQyxJQUFJLEdBQUdMLDZEQUFPLEVBQXBCO0FBRUEsU0FBT0ssSUFBSSxnQkFDUjtBQUFBLDRCQUNELHVEQUFDLHVEQUFEO0FBQUssZU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R1cm5QYXRoJywgbG9jYXRpb24ucGF0aG5hbWUuc3Vic3RyKDEpKTtcblx0XHRcdFx0fVxuXHRcdFx0fX1cblx0XHRcdHRpdGxlPXt0KCdidXR0b24ubG9naW4nKX1cblx0XHRcdHZhcmlhbnQ9XCJkaXNjb3JkXCJcblx0XHQ+XG5cdFx0XHQ8SWNvbi5ESVNDT1JEIC8+XG5cdFx0XHR7JyAnfVxuXHRcdFx0e3QoJ2J1dHRvbi5sb2dpbicpfVxuXHRcdDwvQnV0dG9uPjtcbn07XG5cblVzZXIucHJvcFR5cGVzID0ge1xuXHRkb0xvZ291dDogUHJvcFR5cGVzLmZ1bmMsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBVc2VyO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiTmF2IiwiTGlua0NvbnRhaW5lciIsInVzZVRyYW5zbGF0aW9uIiwiSWNvbiIsInVzZVVzZXIiLCJnZXRBdmF0YXJVcmwiLCJVc2VyIiwiZG9Mb2dvdXQiLCJ0IiwidXNlciIsImlkIiwidXNlcm5hbWUiLCJkaXNjcmltaW5hdG9yIiwibG9jYXRpb24iLCJwYXRobmFtZSIsImxlbmd0aCIsImxvY2FsU3RvcmFnZSIsInNldEl0ZW0iLCJzdWJzdHIiLCJwcm9wVHlwZXMiLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/app/User.js\n"); - -/***/ }), - -/***/ "./resources/js/app/index.js": -/*!***********************************!*\ - !*** ./resources/js/app/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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _Routes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Routes */ \"./resources/js/app/Routes.js\");\n/* harmony import */ var _helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/AlttpBaseRomContext */ \"./resources/js/helpers/AlttpBaseRomContext.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar App = function App() {\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n user = _useState2[0],\n setUser = _useState2[1];\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_9__.useTranslation)(),\n t = _useTranslation.t;\n\n var checkAuth = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().get('/api/user');\n\n case 3:\n response = _context.sent;\n setUser(response.data);\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n setUser(null);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n\n return function checkAuth() {\n return _ref.apply(this, arguments);\n };\n }();\n\n var doLogout = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post('/logout');\n\n case 2:\n _context2.next = 4;\n return checkAuth();\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function doLogout() {\n return _ref2.apply(this, arguments);\n };\n }();\n\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var timer = null;\n axios__WEBPACK_IMPORTED_MODULE_1___default().get('/sanctum/csrf-cookie').then(function () {\n checkAuth();\n timer = setInterval(checkAuth, 15 * 60 * 1000);\n });\n return function () {\n if (timer) clearInterval(timer);\n };\n }, []);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n window.Echo.channel('App.Control').listen('PleaseRefresh', function () {\n location.reload();\n });\n return function () {\n window.Echo.leave('App.Control');\n };\n }, []);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_10__.BrowserRouter, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Provider, {\n value: user,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"html\", {\n lang: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].language\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"title\", {\n children: t('general.appName')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"meta\", {\n name: \"description\",\n content: t('general.appDescription')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Routes__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n doLogout: doLogout\n })]\n })\n })\n });\n};\n\n/* harmony default export */ const __WEBPACK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iLCJsZWF2ZSIsImxhbmd1YWdlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/app/index.js\n"); - -/***/ }), - -/***/ "./resources/js/bootstrap.js": -/*!***********************************!*\ - !*** ./resources/js/bootstrap.js ***! - \***********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var laravel_echo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! laravel-echo */ \"./node_modules/laravel-echo/dist/echo.js\");\nwindow._ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n\ntry {\n __webpack_require__(/*! bootstrap */ \"./node_modules/bootstrap/dist/js/bootstrap.esm.js\");\n} catch (e) {// well...\n}\n/**\n * We'll load the axios HTTP library which allows us to easily issue requests\n * to our Laravel back-end. This library automatically handles sending the\n * CSRF token as a header based on the value of the \"XSRF\" token cookie.\n */\n\n\nwindow.axios = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\nwindow.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\n\n\nwindow.axios.defaults.paramsSerializer = function (p) {\n return qs__WEBPACK_IMPORTED_MODULE_0___default().stringify(p, {\n arrayFormat: 'brackets'\n });\n};\n/**\n * Echo exposes an expressive API for subscribing to channels and listening\n * for events that are broadcast by Laravel. Echo and event broadcasting\n * allows your team to easily build robust real-time web applications.\n */\n\n\n\nwindow.Pusher = __webpack_require__(/*! pusher-js */ \"./node_modules/pusher-js/dist/web/pusher.js\");\nwindow.Echo = new laravel_echo__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n broadcaster: 'pusher',\n key: \"0lqbj3Kxs7HhaiEpHkqHpKjpR4xZ9UQi6QiPwisI\",\n cluster: \"mt1\",\n wsHost: window.location.hostname,\n wsPort: window.location.port,\n forceTLS: false,\n disableStats: true,\n enabledTransports: ['wss', 'ws']\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYm9vdHN0cmFwLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQUEsTUFBTSxDQUFDQyxDQUFQLEdBQVdDLG1CQUFPLENBQUMsK0NBQUQsQ0FBbEI7O0FBRUEsSUFBSTtBQUNBQSxFQUFBQSxtQkFBTyxDQUFDLG9FQUFELENBQVA7QUFDSCxDQUZELENBRUUsT0FBT0MsQ0FBUCxFQUFVLENBQ1g7QUFDQTtBQUVEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBSCxNQUFNLENBQUNJLEtBQVAsR0FBZUYsbUJBQU8sQ0FBQyw0Q0FBRCxDQUF0QjtBQUVBRixNQUFNLENBQUNJLEtBQVAsQ0FBYUMsUUFBYixDQUFzQkMsT0FBdEIsQ0FBOEJDLE1BQTlCLENBQXFDLGtCQUFyQyxJQUEyRCxnQkFBM0Q7QUFFQTs7QUFDQVAsTUFBTSxDQUFDSSxLQUFQLENBQWFDLFFBQWIsQ0FBc0JJLGdCQUF0QixHQUF5QyxVQUFBQyxDQUFDO0FBQUEsU0FBSUYsbURBQUEsQ0FBYUUsQ0FBYixFQUFnQjtBQUFFRSxJQUFBQSxXQUFXLEVBQUU7QUFBZixHQUFoQixDQUFKO0FBQUEsQ0FBMUM7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUVBWixNQUFNLENBQUNjLE1BQVAsR0FBZ0JaLG1CQUFPLENBQUMsOERBQUQsQ0FBdkI7QUFFQUYsTUFBTSxDQUFDYSxJQUFQLEdBQWMsSUFBS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10sXG59KTtcbiJdLCJuYW1lcyI6WyJ3aW5kb3ciLCJfIiwicmVxdWlyZSIsImUiLCJheGlvcyIsImRlZmF1bHRzIiwiaGVhZGVycyIsImNvbW1vbiIsInFzIiwicGFyYW1zU2VyaWFsaXplciIsInAiLCJzdHJpbmdpZnkiLCJhcnJheUZvcm1hdCIsIkVjaG8iLCJQdXNoZXIiLCJicm9hZGNhc3RlciIsImtleSIsInByb2Nlc3MiLCJlbnYiLCJNSVhfUFVTSEVSX0FQUF9LRVkiLCJjbHVzdGVyIiwiTUlYX1BVU0hFUl9BUFBfQ0xVU1RFUiIsIndzSG9zdCIsImxvY2F0aW9uIiwiaG9zdG5hbWUiLCJ3c1BvcnQiLCJwb3J0IiwiZm9yY2VUTFMiLCJkaXNhYmxlU3RhdHMiLCJlbmFibGVkVHJhbnNwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/bootstrap.js\n"); - -/***/ }), - -/***/ "./resources/js/components/alttp-seeds/BaseRomButton.js": -/*!**************************************************************!*\ - !*** ./resources/js/components/alttp-seeds/BaseRomButton.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/AlttpBaseRomContext */ \"./resources/js/helpers/AlttpBaseRomContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\nvar BaseRomButton = function BaseRomButton() {\n var _useAlttpBaseRom = (0,_helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_3__.useAlttpBaseRom)(),\n rom = _useAlttpBaseRom.rom,\n setRom = _useAlttpBaseRom.setRom;\n\n var handleFile = react__WEBPACK_IMPORTED_MODULE_1__.useCallback( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(e) {\n var buf;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(e.target.files.length != 1)) {\n _context.next = 4;\n break;\n }\n\n setRom(null);\n _context.next = 8;\n break;\n\n case 4:\n _context.next = 6;\n return e.target.files[0].arrayBuffer();\n\n case 6:\n buf = _context.sent;\n setRom(buf);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }(), [setRom]);\n if (rom) return null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"span\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"input\", {\n accept: \".sfc\",\n className: \"d-none\",\n id: \"alttp.baseRom\",\n onChange: handleFile,\n type: \"file\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"label\", {\n htmlFor: \"alttp.baseRom\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n as: \"span\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('alttp.setBaseRom')\n })\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(BaseRomButton));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9hbHR0cC1zZWVkcy9CYXNlUm9tQnV0dG9uLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7Ozs7QUFFQSxJQ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G5cdFx0PGlucHV0XG5cdFx0XHRhY2NlcHQ9XCIuc2ZjXCJcblx0XHRcdGNsYXNzTmFtZT1cImQtbm9uZVwiXG5cdFx0XHRpZD1cImFsdHRwLmJhc2VSb21cIlxuXHRcdFx0b25DaGFuZ2U9e2hhbmRsZUZpbGV9XG5cdFx0XHR0eXBlPVwiZmlsZVwiXG5cdFx0Lz5cblx0XHQ8bGFiZWwgaHRtbEZvcj1cImFsdHRwLmJhc2VSb21cIj5cblx0XHRcdDxCdXR0b24gYXM9XCJzcGFuXCIgdmFyaWFudD1cInByaW1hcnlcIj5cblx0XHRcdFx0e2kxOG4udCgnYWx0dHAuc2V0QmFzZVJvbScpfVxuXHRcdFx0PC9CdXR0b24+XG5cdFx0PC9sYWJlbD5cblx0PC9zcGFuPjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKEJhc2VSb21CdXR0b24pO1xuIl0sIm5hbWVzIjpbIlJlYWN0IiwiQnV0dG9uIiwid2l0aFRyYW5zbGF0aW9uIiwiaTE4biIsInVzZUFsdHRwQmFzZVJvbSIsIkJhc2VSb21CdXR0b24iLCJyb20iLCJzZXRSb20iLCJoYW5kbGVGaWxlIiwidXNlQ2FsbGJhY2siLCJlIiwidGFyZ2V0IiwiZmlsZXMiLCJsZW5ndGgiLCJhcnJheUJ1ZmZlciIsImJ1ZiIsInQiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/alttp-seeds/BaseRomButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/alttp-seeds/Seed.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/alttp-seeds/Seed.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 file_saver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! file-saver */ \"./node_modules/file-saver/dist/FileSaver.min.js\");\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _BaseRomButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BaseRomButton */ \"./resources/js/components/alttp-seeds/BaseRomButton.js\");\n/* harmony import */ var _helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/AlttpBaseRomContext */ \"./resources/js/helpers/AlttpBaseRomContext.js\");\n/* harmony import */ var _helpers_bps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/bps */ \"./resources/js/helpers/bps.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar applyPatch = function applyPatch(rom, patch, filename) {\n try {\n var bps = new _helpers_bps__WEBPACK_IMPORTED_MODULE_5__[\"default\"]();\n bps.setPatch(patch);\n bps.setSource(rom);\n var result = bps.applyPatch();\n file_saver__WEBPACK_IMPORTED_MODULE_0___default().saveAs(new Blob([result], {\n type: 'application/octet-stream'\n }), filename);\n } catch (e) {\n toastr__WEBPACK_IMPORTED_MODULE_2___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.patchError', {\n msg: e.message\n }));\n }\n};\n\nvar isDefaultSetting = function isDefaultSetting() {\n return false;\n};\n\nvar Seed = function Seed(_ref) {\n var onRetry = _ref.onRetry,\n patch = _ref.patch,\n seed = _ref.seed;\n\n var _useAlttpBaseRom = (0,_helpers_AlttpBaseRomContext__WEBPACK_IMPORTED_MODULE_4__.useAlttpBaseRom)(),\n rom = _useAlttpBaseRom.rom;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"h1\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.heading')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n md: {\n order: 2\n },\n children: rom ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n disabled: !seed || seed.status !== 'generated' || !patch,\n onClick: function onClick() {\n return applyPatch(rom, patch, \"\".concat(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.filename', {\n hash: seed.hash,\n preset: seed.preset\n }), \".sfc\"));\n },\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(patch ? 'alttpSeeds.patch' : 'alttpSeeds.fetchingPatch')\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_BaseRomButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {})\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n md: {\n order: 1\n },\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"p\", {\n children: [_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.preset'), \":\", ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"strong\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.presets.\".concat(seed.preset))\n })]\n }), seed.seed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"p\", {\n children: [_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.seed'), \":\", ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"strong\", {\n children: seed.seed\n })]\n }) : null, seed.race ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.race')\n }) : null, seed.mystery ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.mystery')\n }) : null, seed.status === 'generated' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"p\", {\n children: [_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.generated'), \":\", ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"strong\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.date', {\n date: new Date(seed.updated_at)\n })\n })]\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"p\", {\n children: [_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.status'), \":\", ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"strong\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.statuses.\".concat(seed.status))\n })]\n }), seed.status === 'error' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"p\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n onClick: onRetry,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.retry')\n })\n }) : null]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"h2\", {\n className: \"mt-5\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.generator')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.generators.\".concat(seed.generator))\n }), seed.settings ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"h2\", {\n className: \"mt-5\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('alttpSeeds.settings')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n children: Object.entries(seed.settings).map(function (_ref2) {\n var _ref3 = _slicedToArray(_ref2, 2),\n key = _ref3[0],\n value = _ref3[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n sm: 4,\n md: 3,\n lg: 2,\n className: \"mb-2\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"small\", {\n className: \"text-muted\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.settingName.\".concat(key))\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"br\", {}), isDefaultSetting(key, value) ? _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.settingValue.\".concat(key, \".\").concat(value)) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"strong\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"alttpSeeds.settingValue.\".concat(key, \".\").concat(value))\n })]\n }, key);\n })\n })]\n }) : null]\n });\n};\n\nSeed.propTypes = {\n onRetry: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n patch: prop_types__WEBPACK_IMPORTED_MODULE_12___default().instanceOf(ArrayBuffer),\n seed: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n generator: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n hash: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n mystery: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n preset: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n race: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n settings: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({}),\n status: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n updated_at: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_13__.withTranslation)()(Seed));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9hbHR0cC1zZWVkcy9TZWVkLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUVBLElBQU1hLFVBQVUsR0FBRyxTQUFiQSxVQUFhLENBQUNDLEdBQUQsRUFBTUMsS0FBTixFQUFhQyxRQUFiL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XSwibmFtZXMiOlsiRmlsZVNhdmVyIiwiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJDb2wiLCJDb250YWluZXIiLCJSb3ciLCJ3aXRoVHJhbnNsYXRpb24iLCJ0b2FzdHIiLCJCYXNlUm9tQnV0dG9uIiwidXNlQWx0dHBCYXNlUm9tIiwiQlBTIiwiaTE4biIsImFwcGx5UGF0Y2giLCJyb20iLCJwYXRjaCIsImZpbGVuYW1lIiwiYnBzIiwic2V0UGF0Y2giLCJzZXRTb3VyY2UiLCJyZXN1bHQiLCJzYXZlQXMiLCJCbG9iIiwidHlwZSIsImUiLCJlcnJvciIsInQiLCJtc2ciLCJtZXNzYWdlIiwiaXNEZWZhdWx0U2V0dGluZyIsIlNlZWQiLCJvblJldHJ5Iiwic2VlZCIsIm9yZGVyIiwic3RhdHVzIiwiaGFzaCIsInByZXNldCIsInJhY2UiLCJteXN0ZXJ5IiwiZGF0ZSIsIkRhdGUiLCJ1cGRhdGVkX2F0IiwiZ2VuZXJhdG9yIiwic2V0dGluZ3MiLCJPYmplY3QiLCJlbnRyaWVzIiwibWFwIiwia2V5IiwidmFsdWUiLCJwcm9wVHlwZXMiLCJmdW5jIiwiaW5zdGFuY2VPZiIsIkFycmF5QnVmZmVyIiwic2hhcGUiLCJzdHJpbmciLCJib29sIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/alttp-seeds/Seed.js\n"); - -/***/ }), - -/***/ "./resources/js/components/applications/Button.js": -/*!********************************************************!*\ - !*** ./resources/js/components/applications/Button.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 prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Badge.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dialog */ \"./resources/js/components/applications/Dialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar ApplicationsButton = function ApplicationsButton(_ref) {\n var tournament = _ref.tournament,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if (!user || !tournament.accept_applications || !(0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.mayHandleApplications)(user, tournament)) {\n return null;\n }\n\n var pending = (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__.getPendingApplications)(tournament);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('tournaments.applications'),\n variant: \"primary\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].APPLICATIONS, {\n title: \"\"\n }), pending.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n children: [' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n children: pending.length\n })]\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_Dialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n show: showDialog,\n tournament: tournament\n })]\n });\n};\n\nApplicationsButton.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n accept_applications: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_11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ndGgiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImJvb2wiLCJpZCIsIm51bWJlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/applications/Button.js\n"); - -/***/ }), - -/***/ "./resources/js/components/applications/Dialog.js": -/*!********************************************************!*\ - !*** ./resources/js/components/applications/Dialog.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 prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ \"./resources/js/components/applications/List.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar Dialog = function Dialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show,\n tournament = _ref.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"applications-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('tournaments.applications')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Body, {\n className: \"p-0\",\n children: tournament.applications && tournament.applications.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_List__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n tournament: tournament\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n variant: \"info\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('tournaments.noApplications')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('button.close')\n })\n })]\n });\n};\n\nDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({\n applications: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({}))\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()(Dialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9hcHBsaWNhdGlvbnMvRGlhbG9nLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7O0FBRUEsSUFBTVEsTUFBTSxHQUFHLFNBQVRBLE1BQVM7QUFBQSxNQUFHQyxNQUFILFFBQUdBLE1BQUg7QUFBQSxNQUFXQyxJQUFYLFFBQVdBLElBQVg7QUFBQSxNQUFpQkMsVUFBakIsUUFBaUJBLFVBQWpCO0FBQUEsc0JBQ2Ysd0RBQUMsdURBQUQ7QUFBTyxhQUFTLEVBQUMscUJBQWpCO0FBQXVDLFVBQU0sRUFBRUYsTUFBL0M7QUFBdUQsUUFBSSxFQUFFQyxJQUE3RDtBQUFBLDRCQUNDLHVEQUFDLDhEQUFEO0FBQWMsaUJBQVcsTUFBekI7QUFBQSw2Q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xuXHRcdFx0e2kxOG4udCgnYnV0dG9uLmNsb3NlJyl9XG5cdFx0PC9CdXR0b24+XG5cdDwvTW9kYWwuRm9vdGVyPlxuPC9Nb2RhbD47XG5cbkRpYWxvZy5wcm9wVHlwZXMgPSB7XG5cdG9uSGlkZTogUHJvcFR5cGVzLmZ1bmMsXG5cdHNob3c6IFByb3BUeXBlcy5ib29sLFxuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdGFwcGxpY2F0aW9uczogUHJvcFR5cGVzLmFycmF5T2YoUHJvcFR5cGVzLnNoYXBlKHtcblx0XHR9KSlcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShEaWFsb2cpO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQWxlcnQiLCJCdXR0b24iLCJNb2RhbCIsIndpdGhUcmFuc2xhdGlvbiIsIkxpc3QiLCJpMThuIiwiRGlhbG9nIiwib25IaWRlIiwic2hvdyIsInRvdXJuYW1lbnQiLCJ0IiwiYXBwbGljYXRpb25zIiwibGVuZ3RoIiwicHJvcFR5cGVzIiwiZnVuYyIsImJvb2wiLCJzaGFwZSIsImFycmF5T2YiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/applications/Dialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/applications/Item.js": -/*!******************************************************!*\ - !*** ./resources/js/components/applications/Item.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar accept = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(tournament, application) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/application/\".concat(application.id, \"/accept\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.acceptSuccess'));\n _context.next = 9;\n break;\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.acceptError'));\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 6]]);\n }));\n\n return function accept(_x, _x2) {\n return _ref.apply(this, arguments);\n };\n}();\n\nvar reject = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(tournament, application) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/application/\".concat(application.id, \"/reject\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.rejectSuccess'));\n _context2.next = 9;\n break;\n\n case 6:\n _context2.prev = 6;\n _context2.t0 = _context2[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.rejectError'));\n\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[0, 6]]);\n }));\n\n return function reject(_x3, _x4) {\n return _ref2.apply(this, arguments);\n };\n}();\n\nvar Item = function Item(_ref3) {\n var application = _ref3.application,\n tournament = _ref3.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Item, {\n className: \"d-flex justify-content-between align-items-center\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n discriminator: true,\n user: application.user\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n className: \"button-bar\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n onClick: function onClick() {\n return accept(tournament, application);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.accept'),\n variant: \"success\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ACCEPT, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n onClick: function onClick() {\n return reject(tournament, application);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('applications.reject'),\n variant: \"danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].REJECT, {\n title: \"\"\n })\n })]\n })]\n });\n};\n\nItem.propTypes = {\n application: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n user: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({})\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_11__.withTranslation)()(Item));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9hcHBsaWNhdGlvbnMvSXRlbS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7OztBQUVBLElBQU1VLE1BQU07QUFBQSxvSEFBRyx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9wVHlwZXMuc2hhcGUoe1xuXHRcdHVzZXI6IFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0fSksXG5cdH0pLFxuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKEl0ZW0pO1xuIl0sIm5hbWVzIjpbImF4aW9zIiwiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJMaXN0R3JvdXAiLCJ3aXRoVHJhbnNsYXRpb24iLCJ0b2FzdHIiLCJJY29uIiwiQm94IiwiaTE4biIsImFjY2VwdCIsInRvdXJuYW1lbnQiLCJhcHBsaWNhdGlvbiIsInBvc3QiLCJpZCIsInN1Y2Nlc3MiLCJ0IiwiZXJyb3IiLCJyZWplY3QiLCJJdGVtIiwidXNlciIsInByb3BUeXBlcyIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/applications/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/applications/List.js": -/*!******************************************************!*\ - !*** ./resources/js/components/applications/List.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/applications/Item.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\nvar List = function List(_ref) {\n var tournament = _ref.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n variant: \"flush\",\n children: tournament.applications.map(function (application) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n application: application,\n tournament: tournament\n }, application.id);\n })\n });\n};\n\nList.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n applications: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({}))\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9hcHBsaWNhdGlvbnMvTGlzdC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7OztBQUVBLElBQU1JLElBQUksR0FBRyxTQUFQQSxJQUFPO0FBQUEsTUFBR0MsVUFBSCxRQUFHQSxVQUFIO0FBQUEsc0JBQ2IsdURBQUMsdURBQUQ7QUFBVyxXQUFPLEVBQUMsT0FBbkI7QUFBQSxjQUNFQSxVQUFVLENBQUNDLFlBQVgsQ0FBd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ge1xuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdGFwcGxpY2F0aW9uczogUHJvcFR5cGVzLmFycmF5T2YoUHJvcFR5cGVzLnNoYXBlKHtcblx0XHR9KSksXG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgTGlzdDtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkxpc3RHcm91cCIsIkl0ZW0iLCJMaXN0IiwidG91cm5hbWVudCIsImFwcGxpY2F0aW9ucyIsIm1hcCIsImFwcGxpY2F0aW9uIiwiaWQiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImFycmF5T2YiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/applications/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/CanonicalLinks.js": -/*!**********************************************************!*\ - !*** ./resources/js/components/common/CanonicalLinks.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar CanonicalLinks = function CanonicalLinks(_ref) {\n var base = _ref.base,\n lang = _ref.lang,\n langs = _ref.langs;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n i18n = _useTranslation.i18n;\n\n var activeLang = lang || i18n.language;\n var availableLangs = langs || ['de', 'en'];\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_1__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"link\", {\n href: \"https://alttp.localhorst.tv\".concat(base, \"?lng=\").concat(activeLang),\n hrefLang: activeLang,\n rel: \"canonical\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"link\", {\n href: \"https://alttp.localhorst.tv\".concat(base),\n hrefLang: \"x-default\",\n rel: \"alternate\"\n }), availableLangs.filter(function (l) {\n return l !== activeLang;\n }).map(function (l) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"link\", {\n href: \"https://alttp.localhorst.tv\".concat(base, \"?lng=\").concat(l),\n hrefLang: l,\n rel: \"alternate\"\n }, l);\n })]\n });\n};\n\nCanonicalLinks.propTypes = {\n base: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string.isRequired),\n lang: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n langs: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().string))\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanonicalLinks);//# sourceURL=[module]\n//# sourceMapp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XBlcyIsInN0cmluZyIsImlzUmVxdWlyZWQiLCJhcnJheU9mIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/common/CanonicalLinks.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/DiscordChannelSelect.js": -/*!****************************************************************!*\ - !*** ./resources/js/components/common/DiscordChannelSelect.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _discord_guilds_ChannelBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../discord-guilds/ChannelBox */ \"./resources/js/components/discord-guilds/ChannelBox.js\");\n/* harmony import */ var _helpers_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/debounce */ \"./resources/js/helpers/debounce.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar DiscordChannelSelect = function DiscordChannelSelect(_ref) {\n var guild = _ref.guild,\n isInvalid = _ref.isInvalid,\n name = _ref.name,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n types = _ref.types,\n value = _ref.value;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n resolved = _useState2[0],\n setResolved = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),\n _useState4 = _slicedToArray(_useState3, 2),\n results = _useState4[0],\n setResults = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(''),\n _useState6 = _slicedToArray(_useState5, 2),\n search = _useState6[0],\n setSearch = _useState6[1];\n\n var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n showResults = _useState8[0],\n setShowResults = _useState8[1];\n\n var ref = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)(),\n t = _useTranslation.t;\n\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var handleEventOutside = function handleEventOutside(e) {\n if (ref.current && !ref.current.contains(e.target)) {\n setShowResults(false);\n }\n };\n\n document.addEventListener('click', handleEventOutside, true);\n document.addEventListener('focus', handleEventOutside, true);\n return function () {\n document.removeEventListener('click', handleEventOutside, true);\n document.removeEventListener('focus', handleEventOutside, true);\n };\n }, []);\n var ctrl = null;\n var fetch = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((0,_helpers_debounce__WEBPACK_IMPORTED_MODULE_5__[\"default\"])( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(guild, phrase, types) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (ctrl) {\n ctrl.abort();\n }\n\n ctrl = new AbortController();\n _context.prev = 2;\n _context.next = 5;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/discord-guilds/\".concat(guild, \"/channels\"), {\n params: {\n phrase: phrase,\n types: types\n },\n signal: ctrl.signal\n });\n\n case 5:\n response = _context.sent;\n ctrl = null;\n setResults(response.data);\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](2);\n ctrl = null;\n console.error(_context.t0);\n\n case 14:\n return _context.abrupt(\"return\", function () {\n if (ctrl) ctrl.abort();\n });\n\n case 15:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 10]]);\n }));\n\n return function (_x, _x2, _x3) {\n return _ref2.apply(this, arguments);\n };\n }(), 300), []);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n fetch(guild, search, types);\n }, [guild, search].concat(_toConsumableArray(types)));\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n if (value) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/discord-channels/\".concat(value)).then(function (response) {\n setResolved(response.data);\n });\n } else {\n setResolved(null);\n }\n }, [value]);\n\n if (value) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"span\", {\n children: resolved ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_discord_guilds_ChannelBox__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n channel: resolved\n }) : value\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n className: \"ms-2\",\n onClick: function onClick() {\n return onChange({\n guild: null,\n target: {\n name: name,\n value: ''\n }\n });\n },\n title: t('button.unset'),\n variant: \"outline-danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"].REMOVE, {\n title: \"\"\n })\n })]\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"discord-select \".concat(showResults ? 'expanded' : 'collapsed'),\n ref: ref,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n className: \"search-input\",\n name: Math.random().toString(20).substr(2, 10),\n onChange: function onChange(e) {\n return setSearch(e.target.value);\n },\n onFocus: function onFocus() {\n return setShowResults(true);\n },\n type: \"search\",\n value: search\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n className: \"search-results-holder\",\n children: results.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n className: \"search-results\",\n children: results.map(function (result) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Item, {\n action: true,\n onClick: function onClick() {\n return onChange({\n channel: result,\n target: {\n name: name,\n value: result.channel_id\n }\n });\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_discord_guilds_ChannelBox__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n channel: result\n })\n }, result.id);\n })\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n className: \"search-results\",\n variant: \"info\",\n children: t('search.noResults')\n })\n })]\n });\n};\n\nDiscordChannelSelect.propTypes = {\n guild: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n isInvalid: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n types: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().number)),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DiscordChannelSelect);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vRGlzY29yZENoYW5uZWxTZWxlY3QuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNYyxvQkFBb0IsR0FBRyxTQUF2QkEsb0JBQXVCLE9BUXZCO0FBQUEsTUFQTEMsS0FPSyxRQVBMQSxLQU9LO0FBQUEsTUFOTEMsU0FNSyxRQU5MQSxTQU1LO0FBQUEsTUFMTEMsSUFLSyxRQUxMQSxJQUtLO0FBQUEsTUFKTEMsTUFJSyxRQUpMQSxNQUlLO0FBQUEsTUFITEMsUUFHSyxRQUhMQSxRQUdLO0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CJlcnJvciIsInRoZW4iLCJNYXRoIiwicmFuZG9tIiwidG9TdHJpbmciLCJzdWJzdHIiLCJsZW5ndGgiLCJtYXAiLCJyZXN1bHQiLCJjaGFubmVsIiwiY2hhbm5lbF9pZCIsImlkIiwicHJvcFR5cGVzIiwic3RyaW5nIiwiYm9vbCIsImZ1bmMiLCJhcnJheU9mIiwibnVtYmVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/common/DiscordChannelSelect.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/DiscordSelect.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/common/DiscordSelect.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _discord_guilds_Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../discord-guilds/Box */ \"./resources/js/components/discord-guilds/Box.js\");\n/* harmony import */ var _helpers_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/debounce */ \"./resources/js/helpers/debounce.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar DiscordSelect = function DiscordSelect(_ref) {\n var onChange = _ref.onChange,\n value = _ref.value;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n resolved = _useState2[0],\n setResolved = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),\n _useState4 = _slicedToArray(_useState3, 2),\n results = _useState4[0],\n setResults = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(''),\n _useState6 = _slicedToArray(_useState5, 2),\n search = _useState6[0],\n setSearch = _useState6[1];\n\n var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n showResults = _useState8[0],\n setShowResults = _useState8[1];\n\n var ref = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)(),\n t = _useTranslation.t;\n\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var handleEventOutside = function handleEventOutside(e) {\n if (ref.current && !ref.current.contains(e.target)) {\n setShowResults(false);\n }\n };\n\n document.addEventListener('click', handleEventOutside, true);\n document.addEventListener('focus', handleEventOutside, true);\n return function () {\n document.removeEventListener('click', handleEventOutside, true);\n document.removeEventListener('focus', handleEventOutside, true);\n };\n }, []);\n var ctrl = null;\n var fetch = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((0,_helpers_debounce__WEBPACK_IMPORTED_MODULE_5__[\"default\"])( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(phrase) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (ctrl) {\n ctrl.abort();\n }\n\n ctrl = new AbortController();\n _context.prev = 2;\n _context.next = 5;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/discord-guilds\", {\n params: {\n phrase: phrase\n },\n signal: ctrl.signal\n });\n\n case 5:\n response = _context.sent;\n ctrl = null;\n setResults(response.data);\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](2);\n ctrl = null;\n console.error(_context.t0);\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 10]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), 300), []);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n fetch(search);\n }, [search]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n if (value) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/discord-guilds/\".concat(value)).then(function (response) {\n setResolved(response.data);\n });\n } else {\n setResolved(null);\n }\n }, [value]);\n\n if (value) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"span\", {\n children: resolved ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_discord_guilds_Box__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n guild: resolved\n }) : value\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n className: \"ms-2\",\n onClick: function onClick() {\n return onChange({\n guild: null,\n target: {\n value: ''\n }\n });\n },\n title: t('button.unset'),\n variant: \"outline-danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"].REMOVE, {\n title: \"\"\n })\n })]\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"discord-select \".concat(showResults ? 'expanded' : 'collapsed'),\n ref: ref,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n className: \"search-input\",\n name: Math.random().toString(20).substr(2, 10),\n onChange: function onChange(e) {\n return setSearch(e.target.value);\n },\n onFocus: function onFocus() {\n return setShowResults(true);\n },\n type: \"search\",\n value: search\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n className: \"search-results-holder\",\n children: results.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n className: \"search-results\",\n children: results.map(function (result) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Item, {\n action: true,\n onClick: function onClick() {\n return onChange({\n guild: result,\n target: {\n value: result.guild_id\n }\n });\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_discord_guilds_Box__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n guild: result\n })\n }, result.id);\n })\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n className: \"search-results\",\n variant: \"info\",\n children: t('search.noResults')\n })\n })]\n });\n};\n\nDiscordSelect.propTypes = {\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DiscordSelect);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXN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b250cm9sbGVyIiwiZ2V0IiwicGFyYW1zIiwic2lnbmFsIiwicmVzcG9uc2UiLCJkYXRhIiwiY29uc29sZSIsImVycm9yIiwidGhlbiIsImd1aWxkIiwiTWF0aCIsInJhbmRvbSIsInRvU3RyaW5nIiwic3Vic3RyIiwibGVuZ3RoIiwibWFwIiwicmVzdWx0IiwiZ3VpbGRfaWQiLCJpZCIsInByb3BUeXBlcyIsImZ1bmMiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/DiscordSelect.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/ErrorBoundary.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/common/ErrorBoundary.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _ErrorMessage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\nvar ErrorBoundary = /*#__PURE__*/function (_React$Component) {\n _inherits(ErrorBoundary, _React$Component);\n\n var _super = _createSuper(ErrorBoundary);\n\n function ErrorBoundary(props) {\n var _this;\n\n _classCallCheck(this, ErrorBoundary);\n\n _this = _super.call(this, props);\n _this.state = {\n error: null\n };\n return _this;\n }\n\n _createClass(ErrorBoundary, [{\n key: \"componentDidCatch\",\n value: function componentDidCatch(error, errorInfo) {\n console.log(error, errorInfo);\n }\n }, {\n key: \"render\",\n value: function render() {\n var children = this.props.children;\n var error = this.state.error;\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_ErrorMessage__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n error: error\n });\n }\n\n return children;\n }\n }], [{\n key: \"getDerivedStateFromError\",\n value: function getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n }]);\n\n return ErrorBoundary;\n}(react__WEBPACK_IMPORTED_MODULE_0__.Component);\n\nErrorBoundary.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().node)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ErrorBoundary);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vRXJyb3JCb3VuZGFyeS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7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ibm9kZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/common/ErrorBoundary.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/ErrorMessage.js": -/*!********************************************************!*\ - !*** ./resources/js/components/common/ErrorMessage.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar ErrorMessage = function ErrorMessage(_ref) {\n var error = _ref.error;\n\n if (error.response) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n variant: \"danger\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Heading, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_1__[\"default\"].t(\"error.\".concat(error.response.status, \".heading\"))\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"p\", {\n className: \"mb-0\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_1__[\"default\"].t(\"error.\".concat(error.response.status, \".description\"))\n })]\n });\n }\n\n if (error.message) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n variant: \"danger\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Heading, {\n children: \"Error\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"p\", {\n className: \"mb-0\",\n children: error.message\n })]\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"error\",\n children: \"Error\"\n });\n};\n\nErrorMessage.propTypes = {\n error: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n message: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n request: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({}),\n response: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n status: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)\n })\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_5__.withTranslation)()(ErrorMessage));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;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XG5cdH1cblx0aWYgKGVycm9yLm1lc3NhZ2UpIHtcblx0XHRyZXR1cm4gPEFsZXJ0IHZhcmlhbnQ9XCJkYW5nZXJcIj5cblx0XHRcdDxBbGVydC5IZWFkaW5nPkVycm9yPC9BbGVydC5IZWFkaW5nPlxuXHRcdFx0PHAgY2xhc3NOYW1lPVwibWItMFwiPntlcnJvci5tZXNzYWdlfTwvcD5cblx0XHQ8L0FsZXJ0Pjtcblx0fVxuXHRyZXR1cm4gPGRpdiBjbGFzc05hbWU9XCJlcnJvclwiPkVycm9yPC9kaXY+O1xufTtcblxuRXJyb3JNZXNzYWdlLnByb3BUeXBlcyA9IHtcblx0ZXJyb3I6IFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0bWVzc2FnZTogUHJvcFR5cGVzLnN0cmluZyxcblx0XHRyZXF1ZXN0OiBQcm9wVHlwZXMuc2hhcGUoe30pLFxuXHRcdHJlc3BvbnNlOiBQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdFx0c3RhdHVzOiBQcm9wVHlwZXMubnVtYmVyLFxuXHRcdH0pLFxuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKEVycm9yTWVzc2FnZSk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJBbGVydCIsIndpdGhUcmFuc2xhdGlvbiIsImkxOG4iLCJFcnJvck1lc3NhZ2UiLCJlcnJvciIsInJlc3BvbnNlIiwidCIsInN0YXR1cyIsIm1lc3NhZ2UiLCJwcm9wVHlwZXMiLCJzaGFwZSIsInN0cmluZyIsInJlcXVlc3QiLCJudW1iZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/ErrorMessage.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/HTMLInput.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/common/HTMLInput.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 _codemirror_lang_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/lang-html */ \"./node_modules/@codemirror/lang-html/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _uiw_codemirror_theme_github__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uiw/codemirror-theme-github */ \"./node_modules/@uiw/codemirror-theme-github/esm/index.js\");\n/* harmony import */ var _uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uiw/react-codemirror */ \"./node_modules/@uiw/react-codemirror/esm/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar HTMLInput = function HTMLInput(_ref) {\n var name = _ref.name,\n onChange = _ref.onChange,\n value = _ref.value;\n var handleChange = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (value) {\n return onChange({\n target: {\n name: name,\n value: value\n }\n });\n }, [name, onChange]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n extensions: [(0,_codemirror_lang_html__WEBPACK_IMPORTED_MODULE_4__.html)(), _codemirror_view__WEBPACK_IMPORTED_MODULE_5__.EditorView.lineWrapping],\n onChange: handleChange,\n theme: _uiw_codemirror_theme_github__WEBPACK_IMPORTED_MODULE_1__.githubDark,\n value: value\n });\n};\n\nHTMLInput.propTypes = {\n name: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HTMLInput);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vSFRNTElucHV0LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUEsSUFBTU0sU0FBUyxHQUFHLFNBQVpBLFNBQVksT0FJWjtBQUFBLE1BSExDLElBR0ssUUFITEEsSUFHSztBQUFBLE1BRkxDLFFBRUssUUFGTEEsUUFFSztBQUFBLE1BRExDLEtBQ0ssUUFETEEsS0FDSztBQUNMLE1BQU1DLFlBQVksR0FBR1AsOENBQUEsQ0FBa0IsVUFBQ00sS0FBRCxFQUFXO0FBQ2pELFdBQU9ELFFBQVEsQ0FBQztBQUFFSSxNQUFBQSxNQUFNLEVBQUU7QUFBRUwsUUFBQUEsSUFBSSxFQUFKQSxJQUFGO0FBQVFFLFFBQUFBLEtBQUssRUFBTEE7QUFBUjtBQUFWLEtBQUQsQ0FBZjtBQUNBLEdBRm9CLEVBRWxCLENBQUNGLElBQUQsRUFBT0MsUUFBUCxDQUZrQixDQUFyQjtBQU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G9uQ2hhbmdlKHsgdGFyZ2V0OiB7IG5hbWUsIHZhbHVlIH0gfSk7XG5cdH0sIFtuYW1lLCBvbkNoYW5nZV0pO1xuXG5cdHJldHVybiA8Q29kZU1pcnJvclxuXHRcdGV4dGVuc2lvbnM9e1todG1sKCksIEVkaXRvclZpZXcubGluZVdyYXBwaW5nXX1cblx0XHRvbkNoYW5nZT17aGFuZGxlQ2hhbmdlfVxuXHRcdHRoZW1lPXtnaXRodWJEYXJrfVxuXHRcdHZhbHVlPXt2YWx1ZX1cblx0Lz47XG59O1xuXG5IVE1MSW5wdXQucHJvcFR5cGVzID0ge1xuXHRuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHRvbkNoYW5nZTogUHJvcFR5cGVzLmZ1bmMsXG5cdHZhbHVlOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgSFRNTElucHV0O1xuIl0sIm5hbWVzIjpbImh0bWwiLCJFZGl0b3JWaWV3IiwiUHJvcFR5cGVzIiwiUmVhY3QiLCJnaXRodWJEYXJrIiwiQ29kZU1pcnJvciIsIkhUTUxJbnB1dCIsIm5hbWUiLCJvbkNoYW5nZSIsInZhbHVlIiwiaGFuZGxlQ2hhbmdlIiwidXNlQ2FsbGJhY2siLCJ0YXJnZXQiLCJsaW5lV3JhcHBpbmciLCJwcm9wVHlwZXMiLCJzdHJpbmciLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/common/HTMLInput.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/Icon.js": -/*!************************************************!*\ - !*** ./resources/js/components/common/Icon.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 _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ \"./node_modules/@fortawesome/fontawesome-svg-core/index.es.js\");\n/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ \"./node_modules/@fortawesome/react-fontawesome/index.es.js\");\n/* harmony import */ var _fortawesome_free_brands_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-brands-svg-icons */ \"./node_modules/@fortawesome/free-brands-svg-icons/index.es.js\");\n/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ \"./node_modules/@fortawesome/free-solid-svg-icons/index.es.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add(_fortawesome_free_brands_svg_icons__WEBPACK_IMPORTED_MODULE_5__.fab);\n_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add(_fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_6__.fas);\n\nvar Icon = function Icon(_ref) {\n var alt = _ref.alt,\n className = _ref.className,\n name = _ref.name,\n size = _ref.size,\n title = _ref.title;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, {\n icon: name,\n alt: alt,\n className: name === Icon.LOADING ? \"\".concat(className, \" fa-spin\") : className,\n size: size,\n title: title\n });\n};\n\nIcon.propTypes = {\n name: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]).isRequired,\n alt: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),\n size: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)\n};\nIcon.defaultProps = {\n alt: null,\n className: '',\n size: null,\n title: null\n};\n\nvar makePreset = function makePreset(presetDisplayName, presetName) {\n var preset = function preset(_ref2) {\n var alt = _ref2.alt,\n className = _ref2.className,\n name = _ref2.name,\n size = _ref2.size,\n title = _ref2.title;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(Icon, {\n alt: alt || _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t(\"icon.\".concat(presetDisplayName)),\n className: className,\n name: name || presetName,\n size: size,\n title: title !== '' ? title || alt || _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t(\"icon.\".concat(presetDisplayName)) : null\n });\n };\n\n preset.displayName = presetDisplayName;\n return (0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()(preset);\n};\n\nIcon.ACCEPT = makePreset('AcceptIcon', 'square-check');\nIcon.ADD = makePreset('AddIcon', 'circle-plus');\nIcon.ALLOWED = makePreset('AllowedIcon', 'square-check');\nIcon.APPLY = makePreset('ApplyIcon', 'right-to-bracket');\nIcon.APPLICATIONS = makePreset('ApplicationsIcon', 'person-running');\nIcon.CHART = makePreset('ChartIcon', 'chart-line');\nIcon.CROSSHAIRS = makePreset('CrosshairsIcon', 'crosshairs');\nIcon.DELETE = makePreset('DeleteIcon', 'user-xmark');\nIcon.DISCORD = makePreset('DiscordIcon', ['fab', 'discord']);\nIcon.EDIT = makePreset('EditIcon', 'edit');\nIcon.FILTER = makePreset('FilterIcon', 'filter');\nIcon.FINISHED = makePreset('FinishedIcon', 'square-check');\nIcon.FIRST_PLACE = makePreset('FirstPlaceIcon', 'trophy');\nIcon.FORBIDDEN = makePreset('ForbiddenIcon', 'square-xmark');\nIcon.FORFEIT = makePreset('ForfeitIcon', 'square-xmark');\nIcon.HASH = makePreset('HashIcon', 'hashtag');\nIcon.INVERT = makePreset('InvertIcon', 'circle-half-stroke');\nIcon.LANGUAGE = makePreset('LanguageIcon', 'language');\nIcon.LOCKED = makePreset('LockedIcon', 'lock');\nIcon.LOGOUT = makePreset('LogoutIcon', 'sign-out-alt');\nIcon.MENU = makePreset('MenuIcon', 'bars');\nIcon.MICROPHONE = makePreset('MicrophoneIcon', 'microphone');\nIcon.MONITOR = makePreset('MonitorIcon', 'tv');\nIcon.MOUSE = makePreset('MouseIcon', 'arrow-pointer');\nIcon.PAUSE = makePreset('PauseIcon', 'pause');\nIcon.PENDING = makePreset('PendingIcon', 'clock');\nIcon.PIN = makePreset('PinIcon', 'location-pin');\nIcon.PLAY = makePreset('PlayIcon', 'play');\nIcon.PROTOCOL = makePreset('ProtocolIcon', 'file-alt');\nIcon.RACETIME = makePreset('RacetimeIcon', 'stopwatch');\nIcon.REJECT = makePreset('RejectIcon', 'square-xmark');\nIcon.REMOVE = makePreset('RemoveIcon', 'square-xmark');\nIcon.RESULT = makePreset('ResultIcon', 'clock');\nIcon.SECOND_PLACE = makePreset('SecondPlaceIcon', 'medal');\nIcon.SETTINGS = makePreset('SettingsIcon', 'cog');\nIcon.SLASH = makePreset('SlashIcon', 'slash');\nIcon.STEP_BACKWARD = makePreset('StepBackwardIcon', 'backward-step');\nIcon.STEP_FORWARD = makePreset('StepForwardIcon', 'forward-step');\nIcon.STOP = makePreset('StopIcon', 'stop');\nIcon.STREAM = makePreset('StreamIcon', ['fab', 'twitch']);\nIcon.THIRD_PLACE = makePreset('ThirdPlaceIcon', 'award');\nIcon.TWITCH = makePreset('TwitchIcon', ['fab', 'twitch']);\nIcon.UNKNOWN = makePreset('UnknownIcon', 'square-question');\nIcon.UNLOCKED = makePreset('UnlockedIcon', 'lock-open');\nIcon.VIDEO = makePreset('VideoIcon', 'video');\nIcon.VOLUME = makePreset('VolumeIcon', 'volume-high');\nIcon.YOUTUBE = makePreset('YoutubeIcon', ['fab', 'youtube']);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vSWNvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7O0FBRUFBLDBFQUFBLENBQVlFLG1FQUFaO0FBQ0FGLDBFQUFBLENBQVlHLGtFQUFaOztBQUVBLElBQU1NLElBQUksR0FBRyxTQUFQQSxJQUFPO0FBQUEsTUFDWkMsR0FEWSxRQUNaQSxHQURZO0FBQUEsTUFFWkMsU0FGWSxRQUVaQSxTQUZZO0FBQUEsTUFHWkMsSUFIWSxRQUdaQSxJQUhZO0FBQUEsTUFJ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WUiLCJBQ0NFUFQiLCJBREQiLCJBTExPV0VEIiwiQVBQTFkiLCJBUFBMSUNBVElPTlMiLCJDSEFSVCIsIkNST1NTSEFJUlMiLCJERUxFVEUiLCJESVNDT1JEIiwiRURJVCIsIkZJTFRFUiIsIkZJTklTSEVEIiwiRklSU1RfUExBQ0UiLCJGT1JCSURERU4iLCJGT1JGRUlUIiwiSEFTSCIsIklOVkVSVCIsIkxBTkdVQUdFIiwiTE9DS0VEIiwiTE9HT1VUIiwiTUVOVSIsIk1JQ1JPUEhPTkUiLCJNT05JVE9SIiwiTU9VU0UiLCJQQVVTRSIsIlBFTkRJTkciLCJQSU4iLCJQTEFZIiwiUFJPVE9DT0wiLCJSQUNFVElNRSIsIlJFSkVDVCIsIlJFTU9WRSIsIlJFU1VMVCIsIlNFQ09ORF9QTEFDRSIsIlNFVFRJTkdTIiwiU0xBU0giLCJTVEVQX0JBQ0tXQVJEIiwiU1RFUF9GT1JXQVJEIiwiU1RPUCIsIlNUUkVBTSIsIlRISVJEX1BMQUNFIiwiVFdJVENIIiwiVU5LTk9XTiIsIlVOTE9DS0VEIiwiVklERU8iLCJWT0xVTUUiLCJZT1VUVUJFIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/common/Icon.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/LargeCheck.js": -/*!******************************************************!*\ - !*** ./resources/js/components/common/LargeCheck.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar LargeCheck = function LargeCheck(_ref) {\n var className = _ref.className,\n id = _ref.id,\n name = _ref.name,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n value = _ref.value;\n var clsn = className ? \"\".concat(className, \" custom-check\") : 'custom-check';\n\n if (value) {\n clsn += ' checked';\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: clsn,\n id: id,\n onBlur: onBlur ? function () {\n return onBlur({\n target: {\n name: name,\n value: value\n }\n });\n } : null,\n onClick: onChange ? function () {\n return onChange({\n target: {\n name: name,\n value: !value\n }\n });\n } : null,\n onKeyPress: onChange ? function (e) {\n if (e.key == 'Enter' || e.key == ' ') {\n e.preventDefault();\n e.stopPropagation();\n onChange({\n target: {\n name: name,\n value: !value\n }\n });\n }\n } : null,\n tabIndex: \"0\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: \"check\"\n })\n });\n};\n\nLargeCheck.propTypes = {\n className: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool)\n};\nLargeCheck.defaultProps = {\n className: '',\n id: '',\n name: '',\n onBlur: null,\n onChange: null,\n value: false\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LargeCheck);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vTGFyZ2VDaGVjay5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBRUE7OztBQUVBLElBQU1HLFVBQVUsR0FBRyxTQUFiQSxVQUFhLE9BT2I7QUFBQSxNQU5MQyxTQU1LLFFBTkxBLFNBTUs7QUFBQSxNQUxMQyxFQUtLLFFBTExBLEVBS0s7QUFBQSxNQUpMQyxJQUlLLFFBSkxBLElBSUs7QUFBQSxNQUhMQyxNQUdLLFFBSExBLE1BR0s7QUFBQSxNQUZMQyxRQUVLLFFBRkxBLFFBRUs7QUFBQSxNQURMQyxLQUNLLFFBRExBLEtBQ0s7QUFDTCxNQUFJQyxJQUFJLEdBQUdOLFNBQVMsYUFBTUEsU0FBTixxQkFBaUMsY0FBckQ7O0FBQ0EsTUFBSUssS0FBSixFQUFXO0FBQ1ZDLElBQUFBLElBQUksSUFBSSxVQUFSO0FBQ0E7O0FBQ0Qsc0JBQU87QUFDTixhQUFTLEVBQUVBLElBREw7QUFFTixNQUFFLEVBQUVMLEVBRkU7QUFHTixVQUFNLEVBQUVFLE1BQU0sR0FBRztBQUFBLGFBQU1BLE1BQU0sQ0FBQztBQUFFSSxRQUFBQSxNQUFNLEVBQUU7QUFBRUwsVUFBQUEsSUFBSSxFQUFKQSxJQUFGO0FBQVFHLFVBQUFBLEtBQUssRUFBTEE7QUFBUjtBQUFWLE9BQUQsQ0FBWjtBQUFBLEtBQUgsR0FBK0MsSUFIdkQ7QUFJTixXQUFPLEVBQUVEL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WUiLCJjbHNuIiwidGFyZ2V0IiwiZSIsImtleSIsInByZXZlbnREZWZhdWx0Iiwic3RvcFByb3BhZ2F0aW9uIiwicHJvcFR5cGVzIiwic3RyaW5nIiwiZnVuYyIsImJvb2wiLCJkZWZhdWx0UHJvcHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/LargeCheck.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/Loading.js": -/*!***************************************************!*\ - !*** ./resources/js/components/common/Loading.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ProgressBar.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\nvar Loading = function Loading() {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"div\", {\n className: \"loading\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n animated: true,\n now: 100,\n variant: \"info\"\n })\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Loading);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vTG9hZGluZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQTs7O0FBRUEsSUFBTUUsT0FBTyxHQUFHLFNBQVZBLE9BQVU7QUFBQSxzQkFBTTtBQUFLLGFBQVMsRUFBQyxTQUFmO0FBQUEsMkJBQ3JCLHVEQUFDLHVEQUFEO0FBQWEsY0FBUSxNQUFyQjtBQUFzQixTQUFHLEVBQUUsR0FBM0I7QUFBZ0MsYUFBTyxFQUFDO0FBQXhDO0FBRHFCLElBQU47QUFBQSxDQUFoQjs7QUFJQSxpRUFBZUEsT0FBZiIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL2NvbW1vbi9Mb2FkaW5nLmpzPzFjYjkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IFByb2dyZXNzQmFyIH0gZnJvbSAncmVhY3QtYm9vdHN0cmFwJztcblxuY29uc3QgTG9hZGluZyA9ICgpID0+IDxkaXYgY2xhc3NOYW1lPVwibG9hZGluZ1wiPlxuXHQ8UHJvZ3Jlc3NCYXIgYW5pbWF0ZWQgbm93PXsxMDB9IHZhcmlhbnQ9XCJpbmZvXCIgLz5cbjwvZGl2PjtcblxuZXhwb3J0IGRlZmF1bHQgTG9hZGluZztcbiJdLCJuYW1lcyI6WyJSZWFjdCIsIlByb2dyZXNzQmFyIiwiTG9hZGluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/common/Loading.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/PngDialog.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/common/PngDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var _PngPlayer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PngPlayer */ \"./resources/js/components/common/PngPlayer.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar PngDialog = function PngDialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show,\n src = _ref.src,\n title = _ref.title;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n onHide: onHide,\n show: show,\n size: \"lg\",\n children: [title ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Title, {\n children: title\n })\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_PngPlayer__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n src: src\n })\n })]\n });\n};\n\nPngDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),\n src: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PngDialog);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vUG5nRGlhbG9nLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTs7OztBQUVBLElBQU1JLFNBQVMsR0FBRyxTQUFaQSxTQUFZO0FBQUEsTUFBR0MsTUFBSCxRQUFHQSxNQUFIO0FBQUEsTUFBV0MsSUFBWCxRQUFXQSxJQUFYO0FBQUEsTUFBaUJDLEdBQWpCLFFBQWlCQSxHQUFqQjtBQUFBLE1BQXNCQyxLQUF0QixRQUFzQkEsS0FBdEI7QUFBQSxzQkFBa0Msd0RBQUMsdURBQUQ7QUFBTyxVQUFNLEVBQUVILE1BQWY7QUFBdUIsUUFBSSxFQUFFQyxJQUE3QjtBQUFtQyxRQUFJLEVBQUMsSUFBeEM7QUFBQSxlQUNsREUsS0FBSyxnQkFDTCx1REFBQyw4REFBRDtBQUFjLGlCQUFXLE1BQXpCO0FBQUEsNkJBQ0MsdURBQUMsNkRBQUQ7QUFBQSxrQkFDRUE7QUFERjtBQURELE1BREssR0FNSixJQVBpRCxlQVFuRCx1REFBQyw0REFBRDtBQUFBLDZCQUNDLHVEQUFDLGtEQUF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bD47XG5cblBuZ0RpYWxvZy5wcm9wVHlwZXMgPSB7XG5cdG9uSGlkZTogUHJvcFR5cGVzLmZ1bmMsXG5cdHNob3c6IFByb3BUeXBlcy5ib29sLFxuXHRzcmM6IFByb3BUeXBlcy5zdHJpbmcsXG5cdHRpdGxlOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgUG5nRGlhbG9nO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTW9kYWwiLCJQbmdQbGF5ZXIiLCJQbmdEaWFsb2ciLCJvbkhpZGUiLCJzaG93Iiwic3JjIiwidGl0bGUiLCJwcm9wVHlwZXMiLCJmdW5jIiwiYm9vbCIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/common/PngDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/PngPlayer.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/common/PngPlayer.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var apng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! apng-js */ \"./node_modules/apng-js/lib/index.js\");\n/* harmony import */ var apng_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(apng_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\nvar createPlayer = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(apng, canvas) {\n var context, player;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n context = canvas.getContext('2d', {\n willReadFrequently: true\n });\n _context.next = 3;\n return apng.getPlayer(context);\n\n case 3:\n player = _context.sent;\n player.stop();\n return _context.abrupt(\"return\", player);\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function createPlayer(_x, _x2) {\n return _ref.apply(this, arguments);\n };\n}();\n\nvar PngPlayer = function PngPlayer(_ref2) {\n var src = _ref2.src;\n var canvas = react__WEBPACK_IMPORTED_MODULE_3__.useRef();\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.useTranslation)(),\n t = _useTranslation.t;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n apng = _React$useState2[0],\n setApng = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n error = _React$useState4[0],\n setError = _React$useState4[1];\n\n var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_3__.useState(''),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n frameInfo = _React$useState6[0],\n setFrameInfo = _React$useState6[1];\n\n var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_3__.useState(true),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n loading = _React$useState8[0],\n setLoading = _React$useState8[1];\n\n var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n player = _React$useState10[0],\n setPlayer = _React$useState10[1];\n\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n if (!src) return;\n setError(null);\n setLoading(true);\n var ctrl = new AbortController();\n\n var fetchPng = /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2() {\n var response, png;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_2___default().get(src, {\n responseType: 'arraybuffer',\n signal: ctrl.signal\n });\n\n case 3:\n response = _context2.sent;\n png = apng_js__WEBPACK_IMPORTED_MODULE_1___default()(response.data);\n _context2.next = 7;\n return png.createImages();\n\n case 7:\n setApng(png);\n setLoading(false);\n _context2.next = 14;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2[\"catch\"](0);\n\n if (!axios__WEBPACK_IMPORTED_MODULE_2___default().isCancel(_context2.t0)) {\n setError(_context2.t0);\n console.log(_context2.t0);\n }\n\n case 14:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[0, 11]]);\n }));\n\n return function fetchPng() {\n return _ref3.apply(this, arguments);\n };\n }();\n\n fetchPng();\n return function () {\n ctrl.abort();\n };\n }, [src]);\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee3() {\n var p, updateFrame;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!(loading || !canvas.current)) {\n _context3.next = 2;\n break;\n }\n\n return _context3.abrupt(\"return\");\n\n case 2:\n setFrameInfo(\"1/\".concat(apng.frames.length));\n _context3.next = 5;\n return createPlayer(apng, canvas.current);\n\n case 5:\n p = _context3.sent;\n setPlayer(p);\n\n updateFrame = function updateFrame(number) {\n setFrameInfo(\"\".concat(number + 1, \"/\").concat(apng.frames.length));\n };\n\n p.on('frame', updateFrame);\n return _context3.abrupt(\"return\", function () {\n p.off('frame', updateFrame);\n });\n\n case 10:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n })), [apng, canvas.current, loading]);\n var stop = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n if (player) player.stop();\n }, [player]);\n var toggle = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n if (!player) return;\n\n if (player.paused) {\n player.play();\n } else {\n player.pause();\n }\n }, [player]);\n var nextFrame = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n if (player) player.renderNextFrame();\n }, [player]);\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"div\", {\n children: \"Error\"\n });\n }\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"div\", {\n children: \"Loading\"\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(\"div\", {\n className: \"png-player\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"div\", {\n className: \"screen\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"canvas\", {\n ref: canvas,\n width: apng.width,\n height: apng.height\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"span\", {\n className: \"ms-auto\",\n children: frameInfo\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(\"div\", {\n className: \"button-bar controls\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: stop,\n title: t('button.stop'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].STOP, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: toggle,\n title: t('button.playPause'),\n variant: \"outline-secondary\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].PLAY, {\n title: \"\"\n }), ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].PAUSE, {\n title: \"\"\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: nextFrame,\n title: t('button.nextFrame'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].STEP_FORWARD, {\n title: \"\"\n })\n })]\n })]\n });\n};\n\nPngPlayer.propTypes = {\n src: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PngPlayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vUG5nUGxheWVyLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Ozs7QUFFQSxJQUFNTyxZQUFZO0FBQUEsb0hBQUcsaUJBQU9DLElBQVAsRUFBYUMsTUFBYjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDZEMsWUFBQUEsT0FEYyxHQUNKR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iLCJwcm9wVHlwZXMiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/PngPlayer.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/RawHTML.js": -/*!***************************************************!*\ - !*** ./resources/js/components/common/RawHTML.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _PngDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PngDialog */ \"./resources/js/components/common/PngDialog.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\nvar isApng = function isApng(el) {\n return el.nodeName === 'IMG' && el.getAttribute('type') === 'image/apng';\n};\n\nvar isLink = function isLink(el) {\n return el.nodeName === 'A';\n};\n\nvar canClick = function canClick(el) {\n if (isLink(el)) return true;\n if (isApng(el)) return true;\n return false;\n};\n\nvar RawHTML = function RawHTML(_ref) {\n var html = _ref.html;\n var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_3__.useNavigate)();\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n apng = _React$useState2[0],\n setApng = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n show = _React$useState4[0],\n setShow = _React$useState4[1];\n\n var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n title = _React$useState6[0],\n setTitle = _React$useState6[1];\n\n var onClick = function onClick(e) {\n if (e.defaultPrevented) return;\n if (e.metaKey || e.ctrlKey || e.shiftKey) return;\n if (e.button !== 0) return;\n var el = e.target;\n\n while (el && !canClick(el)) {\n el = el.parentNode;\n }\n\n if (!el) return;\n\n if (isLink(el)) {\n if (el.target && el.target !== '_self') return;\n if (el.attributes.download) return;\n if (el.rel && /(?:^|\\s+)external(?:\\s+|$)/.test(el.rel)) return;\n var href = el.getAttribute('href');\n if (href.startsWith('#')) return;\n if (href.startsWith('http')) return;\n if (href.startsWith('mailto')) return;\n if (href.startsWith('tel')) return;\n el.blur();\n e.preventDefault();\n setTimeout(function () {\n // scroll to top on location change\n scrollTo({\n top: 0,\n behavior: 'smooth'\n });\n }, 50);\n navigate(href);\n return;\n }\n\n if (isApng(el)) {\n setApng(el.getAttribute('src'));\n setShow(true);\n setTitle(el.getAttribute('alt'));\n }\n };\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"raw-html\",\n onClick: onClick,\n dangerouslySetInnerHTML: {\n __html: html\n }\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_PngDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShow(false);\n },\n show: show,\n src: apng,\n title: title\n })]\n });\n};\n\nRawHTML.propTypes = {\n html: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RawHTML);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanM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LCJnZXRBdHRyaWJ1dGUiLCJpc0xpbmsiLCJjYW5DbGljayIsIlJhd0hUTUwiLCJodG1sIiwibmF2aWdhdGUiLCJ1c2VTdGF0ZSIsImFwbmciLCJzZXRBcG5nIiwic2hvdyIsInNldFNob3ciLCJ0aXRsZSIsInNldFRpdGxlIiwib25DbGljayIsImUiLCJkZWZhdWx0UHJldmVudGVkIiwibWV0YUtleSIsImN0cmxLZXkiLCJzaGlmdEtleSIsImJ1dHRvbiIsInRhcmdldCIsInBhcmVudE5vZGUiLCJhdHRyaWJ1dGVzIiwiZG93bmxvYWQiLCJyZWwiLCJ0ZXN0IiwiaHJlZiIsInN0YXJ0c1dpdGgiLCJibHVyIiwicHJldmVudERlZmF1bHQiLCJzZXRUaW1lb3V0Iiwic2Nyb2xsVG8iLCJ0b3AiLCJiZWhhdmlvciIsIl9faHRtbCIsInByb3BUeXBlcyIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/common/RawHTML.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/Spoiler.js": -/*!***************************************************!*\ - !*** ./resources/js/components/common/Spoiler.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 prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\nvar Spoiler = function Spoiler(_ref) {\n var children = _ref.children;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n show = _useState2[0],\n setShow = _useState2[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"span\", {\n className: \"spoiler \".concat(show ? 'shown' : 'hidden'),\n onClick: function onClick() {\n return setShow(true);\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"span\", {\n className: \"content\",\n children: children\n })\n });\n};\n\nSpoiler.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)])\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Spoiler);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vU3BvaWxlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7OztBQUVBLElBQU1HLE9BQU8sR0FBRyxTQUFWQSxPQUFVLE9BQWtCO0FBQUEsTUFBZkMsUUFBZSxRQUFmQSxRQUFlOztBQUNqQyxrQkFBd0JGLCtDQUFRLENBQUMsS0FBRCxDQUFoQztBQUFBO0FBQUEsTUFBT0csSUFBUDtBQUFBLE1BQWFDLE9BQWI7O0FBRUEsc0JBQU87QUFDTixhQUFTLG9CQUFhRCxJQUFJLEdBQUcsT0FBSCxHQUFhLFFBQTlCLENBREg7QUFFTixXQUFPLEVBQUU7QUFBQSxhQUFNQyxPQUFPLENBQUMsSUFBRCxDQUFiO0FBQUEsS0FGSDtBQUFBLDJCQUlOO0FBQU0sZUFBUyxFQUFDLFNBQWhCO0FBQUEsZ0JBQTJCRjtBQUEzQjtBQUpNLElBQVA7QUFNQSxDQVREOztBQVdBRCxPQUFPLENBQUNJLFNBQVIsR0FBb0I7QUFDbkJILEVBQUFBLFFBQVEsRUFBRUosMkRBQUEsQ0FBb0IsQ0FDN0JBLHdEQUQ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cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/Spoiler.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/ToggleSwitch.js": -/*!********************************************************!*\ - !*** ./resources/js/components/common/ToggleSwitch.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar ToggleSwitch = function ToggleSwitch(_ref) {\n var isInvalid = _ref.isInvalid,\n isValid = _ref.isValid,\n name = _ref.name,\n offLabel = _ref.offLabel,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n onLabel = _ref.onLabel,\n readonly = _ref.readonly,\n value = _ref.value;\n\n var toggle = function toggle() {\n if (readonly) return;\n if (onChange) onChange({\n target: {\n name: name,\n value: !value\n }\n });\n };\n\n var handleClick = function handleClick(event) {\n event.stopPropagation();\n toggle();\n };\n\n var handleKey = function handleKey(event) {\n if ([13, 32].includes(event.which)) {\n toggle();\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n var classNames = ['form-control', 'custom-toggle'];\n if (value) classNames.push('is-toggled');\n if (isInvalid) classNames.push('is-invalid');\n if (isValid) classNames.push('is-valid');\n if (readonly) classNames.push('readonly');\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: classNames.join(' '),\n role: \"button\",\n \"aria-pressed\": value,\n tabIndex: \"0\",\n onBlur: onBlur ? function () {\n return onBlur({\n target: {\n name: name,\n value: value\n }\n });\n } : null,\n onClick: handleClick,\n onKeyDown: handleKey,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"handle\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"handle-label\",\n children: value ? onLabel || /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: \"check\"\n }) : offLabel || /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: \"times\"\n })\n })\n })\n });\n};\n\nToggleSwitch.propTypes = {\n id: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n isInvalid: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),\n isValid: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n offLabel: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),\n onLabel: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),\n readonly: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool)\n};\nToggleSwitch.defaultProps = {\n id: '',\n isInvalid: false,\n isValid: false,\n name: '',\n offLabel: '',\n onBlur: null,\n onChange: null,\n onLabel: '',\n readonly: false,\n value: false\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToggleSwitch);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vVG9nZ2xlU3dpdGNoLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFQTs7O0FBRUEsSUFBTUcsWUFBWSxHQUFHLFNBQWZBLFlBQWUsT0FVZjtBQUFBLE1BVExDLFNBU0ssUUFUTEEsU0FTSztBQUFBLE1BUkxDLE9BUUssUUFSTEEsT0FRSztBQUFBLE1BUExDLElBT0ssUUFQTEEsSUFPSztBQUFBLE1BTkxDLFFBTUssUUFOTEEsUUFNSztBQUFBLE1BTExDLE1BS0ssUUFMTEEsTUFLSztBQUFBLE1BSkxDLFFBSUssUUFKTEEsUUFJSztBQUFBLE1BSExDLE9BR0ssUUFITEEsT0FHSztBQUFBLE1BRkxDLFFBRUssUUFGTEEsUUFFSztBQUFBLE1BRExDLEtBQ0ssUUFETEEsS0FDSzs7QUFDTCxNQUFNQyxNQUFNLEdBQUcsU0FBVEEsTUFBUyxHQUFNO0FBQ3BCLFFBQUlGLFFBQUosRUFBYztBQUNkLFFBQUlGLFFBQUosRUFBY0EsUUFBUSxDQUFDO0FBQUVLLE1BQUFBLE1BQU0sRUFBRTtBQUFFUixRQUFBQSxJQUFJLEVBQUpBLElBQUY7QUFBUU0sUUFBQUEsS0FBSyxFQUFFLENBQUNBO0FBQWhCO0FBQVYsS0FBRCxDQUFSO0FBQ2QsR0FIRDs7QUFLQSxNQUFNRyxXQUFXLEdBQUcsU0FBZEEsV0FBYyxDQUFBQyxLQUFLL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dsZSIsInRhcmdldCIsImhhbmRsZUNsaWNrIiwiZXZlbnQiLCJzdG9wUHJvcGFnYXRpb24iLCJoYW5kbGVLZXkiLCJpbmNsdWRlcyIsIndoaWNoIiwicHJldmVudERlZmF1bHQiLCJjbGFzc05hbWVzIiwicHVzaCIsImpvaW4iLCJwcm9wVHlwZXMiLCJpZCIsInN0cmluZyIsImJvb2wiLCJmdW5jIiwiZGVmYXVsdFByb3BzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/common/ToggleSwitch.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/UserSelect.js": -/*!******************************************************!*\ - !*** ./resources/js/components/common/UserSelect.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _helpers_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/debounce */ \"./resources/js/helpers/debounce.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\nvar UserSelect = function UserSelect(_ref) {\n var name = _ref.name,\n onChange = _ref.onChange,\n value = _ref.value;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n resolved = _useState2[0],\n setResolved = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),\n _useState4 = _slicedToArray(_useState3, 2),\n results = _useState4[0],\n setResults = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(''),\n _useState6 = _slicedToArray(_useState5, 2),\n search = _useState6[0],\n setSearch = _useState6[1];\n\n var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n showResults = _useState8[0],\n setShowResults = _useState8[1];\n\n var ref = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var handleEventOutside = function handleEventOutside(e) {\n if (ref.current && !ref.current.contains(e.target)) {\n setShowResults(false);\n }\n };\n\n document.addEventListener('click', handleEventOutside, true);\n document.addEventListener('focus', handleEventOutside, true);\n return function () {\n document.removeEventListener('click', handleEventOutside, true);\n document.removeEventListener('focus', handleEventOutside, true);\n };\n }, []);\n var ctrl = null;\n var fetch = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((0,_helpers_debounce__WEBPACK_IMPORTED_MODULE_5__[\"default\"])( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(phrase) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (ctrl) {\n ctrl.abort();\n }\n\n ctrl = new AbortController();\n\n if (!(!phrase || phrase.length < 3)) {\n _context.next = 5;\n break;\n }\n\n setResults([]);\n return _context.abrupt(\"return\");\n\n case 5:\n _context.prev = 5;\n _context.next = 8;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/users\", {\n params: {\n phrase: phrase\n },\n signal: ctrl.signal\n });\n\n case 8:\n response = _context.sent;\n ctrl = null;\n setResults(response.data);\n _context.next = 17;\n break;\n\n case 13:\n _context.prev = 13;\n _context.t0 = _context[\"catch\"](5);\n ctrl = null;\n console.error(_context.t0);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[5, 13]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), 300), []);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n fetch(search);\n }, [search]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n if (value) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/users/\".concat(value)).then(function (response) {\n setResolved(response.data);\n });\n } else {\n setResolved(null);\n }\n }, [value]);\n\n if (value) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"d-flex justify-content-between\",\n children: [resolved ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n discriminator: true,\n noLink: true,\n user: resolved\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"span\", {\n children: \"value\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: function onClick() {\n return onChange({\n target: {\n name: name,\n value: null\n }\n });\n },\n size: \"sm\",\n variant: \"outline-danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"].REMOVE, {})\n })]\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"user-select \".concat(showResults ? 'expanded' : 'collapsed'),\n ref: ref,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n className: \"search-input\",\n name: Math.random().toString(20).substr(2, 10),\n onChange: function onChange(e) {\n return setSearch(e.target.value);\n },\n onFocus: function onFocus() {\n return setShowResults(true);\n },\n type: \"search\",\n value: search\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n className: \"search-results-holder\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n className: \"search-results\",\n children: results.map(function (result) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Item, {\n action: true,\n onClick: function onClick() {\n return onChange({\n target: {\n name: name,\n value: result.id\n }\n });\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n discriminator: true,\n noLink: true,\n user: result\n })\n }, result.id);\n })\n })\n })]\n });\n};\n\nUserSelect.propTypes = {\n name: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func),\n value: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UserSelect);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vVXNlclNlbGVjdC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7OztBQUVBLElBQU1hLFVBQVUsR0FBRyxTQUFiQSxVQUFhLE9BQStCO0FBQUEsTUFBNUJDLElBQTRCLFFBQTVCQSxJQUE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VyU2VsZWN0IiwibmFtZSIsIm9uQ2hhbmdlIiwidmFsdWUiLCJyZXNvbHZlZCIsInNldFJlc29sdmVkIiwicmVzdWx0cyIsInNldFJlc3VsdHMiLCJzZWFyY2giLCJzZXRTZWFyY2giLCJzaG93UmVzdWx0cyIsInNldFNob3dSZXN1bHRzIiwicmVmIiwiaGFuZGxlRXZlbnRPdXRzaWRlIiwiZSIsImN1cnJlbnQiLCJjb250YWlucyIsInRhcmdldCIsImRvY3VtZW50IiwiYWRkRXZlbnRMaXN0ZW5lciIsInJlbW92ZUV2ZW50TGlzdGVuZXIiLCJjdHJsIiwiZmV0Y2giLCJwaHJhc2UiLCJhYm9ydCIsIkFib3J0Q29udHJvbGxlciIsImxlbmd0aCIsImdldCIsInBhcmFtcyIsInNpZ25hbCIsInJlc3BvbnNlIiwiZGF0YSIsImNvbnNvbGUiLCJlcnJvciIsInRoZW4iLCJNYXRoIiwicmFuZG9tIiwidG9TdHJpbmciLCJzdWJzdHIiLCJtYXAiLCJyZXN1bHQiLCJpZCIsInByb3BUeXBlcyIsInN0cmluZyIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/common/UserSelect.js\n"); - -/***/ }), - -/***/ "./resources/js/components/common/ZeldaIcon.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/common/ZeldaIcon.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar getIconURL = function getIconURL(name) {\n switch (name) {\n case 'big-key':\n case 'blue-boomerang':\n case 'blue-mail':\n case 'blue-pendant':\n case 'blue-potion':\n case 'bombos':\n case 'bomb':\n case 'book':\n case 'boots':\n case 'bottle-bee':\n case 'bottle':\n case 'bow':\n case 'bugnet':\n case 'byrna':\n case 'cape':\n case 'compass':\n case 'crystal':\n case 'duck':\n case 'ether':\n case 'fairy':\n case 'fighter-shield':\n case 'fighter-sword':\n case 'fire-rod':\n case 'fire-shield':\n case 'flippers':\n case 'flute':\n case 'glove':\n case 'green-mail':\n case 'green-pendant':\n case 'green-potion':\n case 'hammer':\n case 'heart-container':\n case 'heart-piece':\n case 'hookshot':\n case 'ice-rod':\n case 'lamp':\n case 'map':\n case 'mirror':\n case 'mirror-shield':\n case 'mitts':\n case 'moonpearl':\n case 'mushroom':\n case 'powder':\n case 'quake':\n case 'red-bomb':\n case 'red-boomerang':\n case 'red-mail':\n case 'red-pendant':\n case 'red-potion':\n case 'shovel':\n case 'silvers':\n case 'small-key':\n case 'somaria':\n return \"/item/\".concat(name, \".png\");\n\n case 'dungeon-ct':\n case 'dungeon-dp':\n case 'dungeon-ep':\n case 'dungeon-gt':\n case 'dungeon-hc':\n case 'dungeon-ip':\n case 'dungeon-mm':\n case 'dungeon-pd':\n case 'dungeon-sp':\n case 'dungeon-sw':\n case 'dungeon-th':\n case 'dungeon-tr':\n case 'dungeon-tt':\n return \"/dungeon/\".concat(name.substr(8), \".png\");\n\n case 'crystal-switch':\n case 'crystal-switch-blue':\n case 'crystal-switch-red':\n return \"/icon/\".concat(name, \".png\");\n\n default:\n return '';\n }\n};\n\nvar ZeldaIcon = function ZeldaIcon(_ref) {\n var name = _ref.name,\n title = _ref.title;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n var invert = name.startsWith('not-');\n var strippedName = invert ? name.substr(4) : name;\n var src = getIconURL(strippedName);\n var alt = t(\"icon.zelda.\".concat(name));\n var realTitle = title !== '' ? title || alt : null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"span\", {\n className: \"zelda-icon\",\n children: [src ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"img\", {\n alt: alt,\n src: src,\n title: realTitle\n }) : null, invert ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"strike\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SLASH, {\n title: \"\"\n })\n }) : null]\n });\n};\n\nZeldaIcon.propTypes = {\n name: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ZeldaIcon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9jb21tb24vWmVsZGFJY29uLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQU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51bGx9XG5cdDwvc3Bhbj47XG59O1xuXG5aZWxkYUljb24ucHJvcFR5cGVzID0ge1xuXHRuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHR0aXRsZTogUHJvcFR5cGVzLnN0cmluZyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFplbGRhSWNvbjtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsInVzZVRyYW5zbGF0aW9uIiwiSWNvbiIsImdldEljb25VUkwiLCJuYW1lIiwic3Vic3RyIiwiWmVsZGFJY29uIiwidGl0bGUiLCJ0IiwiaW52ZXJ0Iiwic3RhcnRzV2l0aCIsInN0cmlwcGVkTmFtZSIsInNyYyIsImFsdCIsInJlYWxUaXRsZSIsInByb3BUeXBlcyIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/common/ZeldaIcon.js\n"); - -/***/ }), - -/***/ "./resources/js/components/discord-bot/Controls.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/discord-bot/Controls.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _common_DiscordChannelSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/DiscordChannelSelect */ \"./resources/js/components/common/DiscordChannelSelect.js\");\n/* harmony import */ var _common_DiscordSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/DiscordSelect */ \"./resources/js/components/common/DiscordSelect.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\nvar Controls = function Controls() {\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(''),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n channel = _React$useState2[0],\n setChannel = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n guild = _React$useState4[0],\n setGuild = _React$useState4[1];\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n md: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Label, {\n children: t('discordBot.guild')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Control, {\n as: _common_DiscordSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n onChange: function onChange(_ref) {\n var guild = _ref.guild;\n setGuild(guild);\n setChannel('');\n },\n value: guild ? guild.guild_id : ''\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n md: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Label, {\n children: t('discordBot.channel')\n }), guild ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Control, {\n as: _common_DiscordChannelSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n guild: guild.guild_id,\n onChange: function onChange(_ref2) {\n var value = _ref2.target.value;\n return setChannel(value);\n },\n types: [],\n value: channel\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Control, {\n plaintext: true,\n readOnly: true,\n defaultValue: t('discordBot.selectGuild')\n })]\n })]\n })\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Controls);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9kaXNjb3JkLWJvdC9Db250cm9scy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7OztBQUVBLElBQU1PLFFBQVEsR0FBRyxTQUFYQSxRQUFXLEdBQU07QUFDdEIsd0JBQThCUCwyQ0FBQSxDQUFlLEVBQWYsQ0FBOUI7QUFBQ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c2VsZWN0R3VpbGQnKX0gLz5cblx0XHRcdFx0fVxuXHRcdFx0PC9Gb3JtLkdyb3VwPlxuXHRcdDwvUm93PlxuXHQ8Lz47XG59O1xuXG5leHBvcnQgZGVmYXVsdCBDb250cm9scztcbiJdLCJuYW1lcyI6WyJSZWFjdCIsIkNvbCIsIkZvcm0iLCJSb3ciLCJ1c2VUcmFuc2xhdGlvbiIsIkRpc2NvcmRDaGFubmVsU2VsZWN0IiwiRGlzY29yZFNlbGVjdCIsIkNvbnRyb2xzIiwidXNlU3RhdGUiLCJjaGFubmVsIiwic2V0Q2hhbm5lbCIsImd1aWxkIiwic2V0R3VpbGQiLCJ0IiwiZ3VpbGRfaWQiLCJ2YWx1ZSIsInRhcmdldCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/discord-bot/Controls.js\n"); - -/***/ }), - -/***/ "./resources/js/components/discord-guilds/Box.js": -/*!*******************************************************!*\ - !*** ./resources/js/components/discord-guilds/Box.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 prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar getIconUrl = function getIconUrl(guild) {\n return \"https://cdn.discordapp.com/icons/\".concat(guild.guild_id, \"/\").concat(guild.icon_hash, \".png\");\n};\n\nvar Box = function Box(_ref) {\n var guild = _ref.guild;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(\"div\", {\n className: \"guild-box\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"img\", {\n alt: \"\",\n src: getIconUrl(guild)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"span\", {\n children: guild.name\n })]\n });\n};\n\nBox.propTypes = {\n guild: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({\n guild_id: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),\n icon_hash: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Box);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9kaXNjb3JkLWd1aWxkcy9Cb3guanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBOzs7O0FBRUEsSUFBTUUsVUFBVSxHQUFHLFNBQWJBLFVBQWEsQ0FBQUMsS0FBSztBQUFBLG9EQUNhQSxLQUFLLENBQUNDLFFBRG5CLGNBQytCRCxLQUFLLENBQUNFLFNBRHJDO0FBQUEsQ0FBeEI7O0FBR0EsSUFBTUMsR0FBRyxHQUFHLFNBQU5BLEdBQU07QUFBQSxNQUFHSCxLQUFILFFBQUdBLEtBQUg7QUFBQSxzQkFBZTtBQUFLLGFBQVMsRUFBQyxXQUFmO0FBQUEsNEJBQ3pCO0FBQUssU0FBRyxFQUFDLEVBQVQ7QUFBWSxT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mcsXG5cdFx0aWNvbl9oYXNoOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHRcdG5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQm94O1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiZ2V0SWNvblVybCIsImd1aWxkIiwiZ3VpbGRfaWQiLCJpY29uX2hhc2giLCJCb3giLCJuYW1lIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/discord-guilds/Box.js\n"); - -/***/ }), - -/***/ "./resources/js/components/discord-guilds/ChannelBox.js": -/*!**************************************************************!*\ - !*** ./resources/js/components/discord-guilds/ChannelBox.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\nvar getIcon = function getIcon(channel) {\n if (channel.type === 0) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].HASH, {\n title: \"\"\n });\n }\n\n if (channel.type === 2) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].VOLUME, {\n title: \"\"\n });\n }\n\n return null;\n};\n\nvar Box = function Box(_ref) {\n var channel = _ref.channel;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"channel-box\",\n children: [getIcon(channel), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n children: channel.name\n })]\n });\n};\n\nBox.propTypes = {\n channel: prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({\n name: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Box);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9kaXNjb3JkLWd1aWxkcy9DaGFubmVsQm94LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFQTs7OztBQUVBLElBQU1HLE9BQU8sR0FBRyxTQUFWQSxPQUFVLENBQUFDLE9BQU8sRUFBSTtBQUMxQixNQUFJQSxPQUFPLENBQUNDLElBQVIsS0FBaUIsQ0FBckIsRUFBd0I7QUFDdkIsd0JBQU8sdURBQUMseURBQUQ7QUFBVyxXQUFLLEVBQUM7QUFBakIsTUFBUDtBQUNBOztBQUNELE1BQUlELE9BQU8sQ0FBQ0MsSUFBUixLQUFpQixDQUFyQixFQUF3QjtBQUN2Qix3QkFBTyx1REFBQywyRE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m94ID0gKHsgY2hhbm5lbCB9KSA9PiA8ZGl2IGNsYXNzTmFtZT1cImNoYW5uZWwtYm94XCI+XG5cdHtnZXRJY29uKGNoYW5uZWwpfVxuXHQ8c3Bhbj57Y2hhbm5lbC5uYW1lfTwvc3Bhbj5cbjwvZGl2PjtcblxuQm94LnByb3BUeXBlcyA9IHtcblx0Y2hhbm5lbDogUHJvcFR5cGVzLnNoYXBlKHtcblx0XHRuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEJveDtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkljb24iLCJnZXRJY29uIiwiY2hhbm5lbCIsInR5cGUiLCJCb3giLCJuYW1lIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/discord-guilds/ChannelBox.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/ApplyDialog.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/episodes/ApplyDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _ApplyForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApplyForm */ \"./resources/js/components/episodes/ApplyForm.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar ApplyDialog = function ApplyDialog(_ref) {\n var as = _ref.as,\n episode = _ref.episode,\n onHide = _ref.onHide,\n onSubmit = _ref.onSubmit,\n show = _ref.show;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"apply-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: t('episodes.applyDialog.title')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_ApplyForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n as: as,\n episode: episode,\n onCancel: onHide,\n onSubmit: onSubmit\n })]\n });\n};\n\nApplyDialog.propTypes = {\n as: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}),\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApplyDialog);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9BcHBseURpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Ozs7QUFFQSxJQUFNSyxXQUFXLEdBQUcsU0FBZEEsV0FBYyxPQU1kO0FBQUEsTUFMTEMsRUFLSyxRQUxMQSxFQUtLO0FBQUEsTUFKTEMsT0FJSyxRQUpMQSxPQUlLO0FBQUEsTUFITEMsTUFHSyxRQUhMQSxNQUdLO0FBQUEsTUFGTEMsUUFFSyxRQUZMQSxRQUVLO0FBQUEsTUFETEMsSUFDSyxRQURMQSxJQUNLOztBQUNMLHdCQUFjUCw2REFBYyxFQUE1QjtBQUFBLE1BQVFRLENBQVIsbUJBQVFBLENBQVI7O0FBRUEsc0JBQU8sd0RBQUMsdURBQUQ7QUFBTyxhQUFTLEVBQUMsY0FBakI7QUFBZ0MsVUFBTSxFQUFFSCxNQUF4QztBQUFnRCxRQUFJLEVBQUVFLElBQXREO0FBQUEsNEJBQ04sdURBQUMsOERBQUQ7QUFBYyxpQkFBVyxNQUF6QjtBQUFBLDZCQUNDLHVEQUFDLDZEQUFEO0FBQUEsa0JBQ0VDLENBQUMsQ0FBQyw0QkFBRDtBQURIO0FBREQsTUFETSxlQU1OLHVEQUFDLGtEQUFEO0FBQ0MsUUFBRSxFQUFFTCxFQURMO0FBRUMsYUFBTyxFQUFFQyxPQUZWO0FBR0MsY0FBUSxFQUFFQ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V0dG9uPlxuXHRcdFx0PE1vZGFsLlRpdGxlPlxuXHRcdFx0XHR7dCgnZXBpc29kZXMuYXBwbHlEaWFsb2cudGl0bGUnKX1cblx0XHRcdDwvTW9kYWwuVGl0bGU+XG5cdFx0PC9Nb2RhbC5IZWFkZXI+XG5cdFx0PEFwcGx5Rm9ybVxuXHRcdFx0YXM9e2FzfVxuXHRcdFx0ZXBpc29kZT17ZXBpc29kZX1cblx0XHRcdG9uQ2FuY2VsPXtvbkhpZGV9XG5cdFx0XHRvblN1Ym1pdD17b25TdWJtaXR9XG5cdFx0Lz5cblx0PC9Nb2RhbD47XG59O1xuXG5BcHBseURpYWxvZy5wcm9wVHlwZXMgPSB7XG5cdGFzOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHRlcGlzb2RlOiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcblx0b25IaWRlOiBQcm9wVHlwZXMuZnVuYyxcblx0b25TdWJtaXQ6IFByb3BUeXBlcy5mdW5jLFxuXHRzaG93OiBQcm9wVHlwZXMuYm9vbCxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFwcGx5RGlhbG9nO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTW9kYWwiLCJ1c2VUcmFuc2xhdGlvbiIsIkFwcGx5Rm9ybSIsIkFwcGx5RGlhbG9nIiwiYXMiLCJlcGlzb2RlIiwib25IaWRlIiwib25TdWJtaXQiLCJzaG93IiwidCIsInByb3BUeXBlcyIsInN0cmluZyIsInNoYXBlIiwiZnVuYyIsImJvb2wiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/ApplyDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/ApplyForm.js": -/*!*******************************************************!*\ - !*** ./resources/js/components/episodes/ApplyForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _DialogEpisode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DialogEpisode */ \"./resources/js/components/episodes/DialogEpisode.js\");\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar ApplyForm = function ApplyForm(_ref) {\n var as = _ref.as,\n episode = _ref.episode,\n errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n user = _ref.user,\n values = _ref.values;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.useTranslation)(),\n t = _useTranslation.t;\n\n var available_channels = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {\n return (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.applicableChannels)(user, episode, as);\n }, [as, episode, user]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_DialogEpisode__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n episode: episode\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n controlId: \"apply.role\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: t('episodes.applyDialog.signUpAs')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n plaintext: true,\n readOnly: true,\n value: t(\"crew.roles.\".concat(as))\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n controlId: \"apply.channel_id\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: t('episodes.channel')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Select, {\n isInvalid: !!(touched.channel_id && errors.channel_id),\n name: \"channel_id\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: values.channel_id || 0,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"option\", {\n disabled: true,\n value: 0,\n children: t('general.pleaseSelect')\n }), available_channels.map(function (c) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"option\", {\n value: c.id,\n children: c.title\n }, c.id);\n })]\n }), touched.channel_id && errors.channel_id ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: t(errors.channel_id)\n }) : null]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: t('button.submit')\n })]\n })]\n });\n};\n\nApplyForm.propTypes = {\n episode: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({}),\n errors: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({}),\n values: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__.withUser)((0,formik__WEBPACK_IMPORTED_MODULE_1__.withFormik)({\n displayName: 'ApplyForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var setErrors, onSubmit;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setErrors = actions.setErrors;\n onSubmit = actions.props.onSubmit;\n _context.prev = 2;\n _context.next = 5;\n return onSubmit(values);\n\n case 5:\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](2);\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 7]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var as = _ref2.as,\n episode = _ref2.episode,\n user = _ref2.user;\n var channels = (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.applicableChannels)(user, episode, as);\n return {\n as: as,\n channel_id: channels.length ? channels[0].id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mxlbmd0aCA/IGNoYW5uZWxzWzBdLmlkIDogMCxcblx0XHRcdGVwaXNvZGVfaWQ6IGVwaXNvZGUgPyBlcGlzb2RlLmlkIDogMCxcblx0XHR9O1xuXHR9LFxufSkoQXBwbHlGb3JtKSk7XG4iXSwibmFtZXMiOlsid2l0aEZvcm1payIsIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiQ29sIiwiRm9ybSIsIk1vZGFsIiwiUm93IiwidXNlVHJhbnNsYXRpb24iLCJEaWFsb2dFcGlzb2RlIiwibGFyYXZlbEVycm9yc1RvRm9ybWlrIiwiYXBwbGljYWJsZUNoYW5uZWxzIiwid2l0aFVzZXIiLCJBcHBseUZvcm0iLCJhcyIsImVwaXNvZGUiLCJlcnJvcnMiLCJoYW5kbGVCbHVyIiwiaGFuZGxlQ2hhbmdlIiwiaGFuZGxlU3VibWl0Iiwib25DYW5jZWwiLCJ0b3VjaGVkIiwidXNlciIsInZhbHVlcyIsInQiLCJhdmFpbGFibGVfY2hhbm5lbHMiLCJ1c2VNZW1vIiwiY2hhbm5lbF9pZCIsIm1hcCIsImMiLCJpZCIsInRpdGxlIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJmdW5jIiwiYm9vbCIsIm51bWJlciIsImRpc3BsYXlOYW1lIiwiZW5hYmxlUmVpbml0aWFsaXplIiwiYWN0aW9ucyIsInNldEVycm9ycyIsIm9uU3VibWl0IiwicHJvcHMiLCJyZXNwb25zZSIsImRhdGEiLCJtYXBQcm9wc1RvVmFsdWVzIiwiY2hhbm5lbHMiLCJsZW5ndGgiLCJlcGlzb2RlX2lkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/ApplyForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Channel.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/episodes/Channel.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar Channel = function Channel(_ref) {\n var channel = _ref.channel,\n episode = _ref.episode,\n onEditRestream = _ref.onEditRestream,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: \"episode-channel text-nowrap\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n href: channel.stream_link,\n rel: \"noreferer\",\n target: \"_blank\",\n title: channel.title,\n variant: \"outline-twitch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].STREAM, {}), ' ', channel.short_name || channel.title]\n }), onEditRestream && (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_2__.mayEditRestream)(user, episode, channel) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: \"ms-1\",\n onClick: function onClick() {\n return onEditRestream(episode, channel);\n },\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SETTINGS, {})\n }) : null]\n });\n};\n\nChannel.propTypes = {\n channel: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({\n short_name: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)\n }),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({}),\n onEditRestream: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n user: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__.withUser)(Channel));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9DaGFubmVsLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs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pdGhVc2VyKENoYW5uZWwpO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiSWNvbiIsIm1heUVkaXRSZXN0cmVhbSIsIndpdGhVc2VyIiwiQ2hhbm5lbCIsImNoYW5uZWwiLCJlcGlzb2RlIiwib25FZGl0UmVzdHJlYW0iLCJ1c2VyIiwic3RyZWFtX2xpbmsiLCJ0aXRsZSIsInNob3J0X25hbWUiLCJwcm9wVHlwZXMiLCJzaGFwZSIsInN0cmluZyIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Channel.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Channels.js": -/*!******************************************************!*\ - !*** ./resources/js/components/episodes/Channels.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Channel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Channel */ \"./resources/js/components/episodes/Channel.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar Channels = function Channels(_ref) {\n var channels = _ref.channels,\n episode = _ref.episode,\n onEditRestream = _ref.onEditRestream;\n return channels.map(function (channel) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Channel__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n channel: channel,\n episode: episode,\n onEditRestream: onEditRestream\n }, channel.id);\n });\n};\n\nChannels.propTypes = {\n channels: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({})),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({}),\n onEditRestream: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Channels);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9DaGFubmVscy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBRUE7OztBQUVBLElBQU1HLFFBQVEsR0FBRyxTQUFYQSxRQUFXO0FBQUEsTUFBR0MsUUFBSCxRQUFHQSxRQUFIO0FBQUEsTUFBYUMsT0FBYixRQUFhQSxPQUFiO0FBQUEsTUFBc0JDLGNBQXRCLFFBQXNCQSxjQUF0QjtBQUFBLFNBQ2hCRixRQUFRLENBQUNHLEdBQVQsQ0FBYSxVQUFBQyxPQUFPO0FBQUEsd0JBQ25CLHVEQUFDLGdEQUFEO0FBQ0MsYUFBTyxFQUFFQSxPQURWO0FBRUMsYUFBTyxFQUFFSCxPQUZWO0FBSUMsb0JBQWMsRUFBRUM7QUFKakIsT0FHTUUsT0FBTyxDQUFDQyxFQUhkLENBRG1CO0FBQUEsR0FBcEIsQ0FEZ0I7QUFBQSxDQUFqQjs7QUFVQU4sUUFBUSxDQUFDTyxTQUFULEdBQXFCO0FBQ3BCTixFQUFBQSxRQUFRLEVBQUV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lbCIsIkNoYW5uZWxzIiwiY2hhbm5lbHMiLCJlcGlzb2RlIiwib25FZGl0UmVzdHJlYW0iLCJtYXAiLCJjaGFubmVsIiwiaWQiLCJwcm9wVHlwZXMiLCJhcnJheU9mIiwic2hhcGUiLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Channels.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Crew.js": -/*!**************************************************!*\ - !*** ./resources/js/components/episodes/Crew.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 prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _CrewMember__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CrewMember */ \"./resources/js/components/episodes/CrewMember.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var _helpers_Episode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Episode */ \"./resources/js/helpers/Episode.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Crew = function Crew(_ref) {\n var episode = _ref.episode,\n onApply = _ref.onApply,\n user = _ref.user;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.useTranslation)(),\n t = _useTranslation.t;\n\n var commentators = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return episode.crew.filter(function (c) {\n return c.role === 'commentary';\n }).sort(_helpers_Crew__WEBPACK_IMPORTED_MODULE_3__.compareCrew);\n }, [episode]);\n var trackers = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return episode.crew.filter(function (c) {\n return c.role === 'tracking';\n }).sort(_helpers_Crew__WEBPACK_IMPORTED_MODULE_3__.compareCrew);\n }, [episode]);\n var techies = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return episode.crew.filter(function (c) {\n return c.role === 'setup';\n }).sort(_helpers_Crew__WEBPACK_IMPORTED_MODULE_3__.compareCrew);\n }, [episode]);\n var sgLanguages = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.getSGLanguages)(episode);\n }, [episode]);\n var showCommentators = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return commentators.length || !(0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasPassed)(episode) && ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.canApplyForEpisode)(user, episode, 'commentary') || (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasSGRestream)(episode));\n }, [commentators, episode, user]);\n var showTracker = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return trackers.length || !(0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasPassed)(episode) && ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.canApplyForEpisode)(user, episode, 'tracking') || (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasSGRestream)(episode));\n }, [episode, trackers, user]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n className: \"episode-crew\",\n children: [showCommentators ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n xs: 6,\n md: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n className: \"fs-6 fs-md-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].MICROPHONE, {\n className: \"ms-3 me-2\",\n title: \"\"\n }), t('episodes.commentary')]\n }), commentators.map(function (c) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_CrewMember__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n crew: c\n }, c.id);\n }), onApply && (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.canApplyForEpisode)(user, episode, 'commentary') ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"button-bar m-2\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n onClick: function onClick() {\n return onApply(episode, 'commentary');\n },\n variant: \"outline-secondary\",\n children: t('button.signUp')\n })\n }) : null, (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasSGRestream)(episode) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"button-bar m-2\",\n children: sgLanguages.map(function (lang) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n href: (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.getSGSignupLink)(episode, lang, 'commentator'),\n target: \"_blank\",\n variant: \"outline-secondary\",\n children: \"\".concat(t('episodes.sgSignUp'), \" \").concat(lang.toUpperCase())\n }, lang);\n })\n }) : null]\n }) : null, showTracker ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n xs: 6,\n md: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n className: \"fs-6 fs-md-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].MOUSE, {\n className: \"ms-3 me-2\",\n title: \"\"\n }), t('episodes.tracking')]\n }), trackers.map(function (c) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_CrewMember__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n crew: c\n }, c.id);\n }), onApply && (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.canApplyForEpisode)(user, episode, 'tracking') ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"button-bar m-2\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n onClick: function onClick() {\n return onApply(episode, 'tracking');\n },\n variant: \"outline-secondary\",\n children: t('button.signUp')\n })\n }) : null, (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.hasSGRestream)(episode) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"button-bar m-2\",\n children: sgLanguages.map(function (lang) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n href: (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_4__.getSGSignupLink)(episode, lang, 'tracker'),\n target: \"_blank\",\n variant: \"outline-secondary\",\n children: \"\".concat(t('episodes.sgSignUp'), \" \").concat(lang.toUpperCase())\n }, lang);\n })\n }) : null]\n }) : null, techies.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n xs: 6,\n md: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n className: \"fs-6 fs-md-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].MONITOR, {\n className: \"ms-3 me-2\",\n title: \"\"\n }), t('episodes.setup')]\n }), techies.map(function (c) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_CrewMember__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n crew: c\n }, c.id);\n })]\n }) : null]\n });\n};\n\nCrew.propTypes = {\n episode: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n channels: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number)\n })),\n crew: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({}))\n }),\n onApply: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n user: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__.withUser)(Crew));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9DcmV3LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFNQTtBQUNBOzs7O0FBRUEsSUFBTWUsSUFBSSxHQUFHLFNBQVBBLElBQU8sT0FBZ0M7QUFBQSx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ZXMuZnVuYyxcblx0dXNlcjogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVXNlcihDcmV3KTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkJ1dHRvbiIsIkNvbCIsIlJvdyIsInVzZVRyYW5zbGF0aW9uIiwiQ3Jld01lbWJlciIsIkljb24iLCJjb21wYXJlQ3JldyIsImdldFNHTGFuZ3VhZ2VzIiwiZ2V0U0dTaWdudXBMaW5rIiwiaGFzUGFzc2VkIiwiaGFzU0dSZXN0cmVhbSIsImNhbkFwcGx5Rm9yRXBpc29kZSIsIndpdGhVc2VyIiwiQ3JldyIsImVwaXNvZGUiLCJvbkFwcGx5IiwidXNlciIsInQiLCJjb21tZW50YXRvcnMiLCJ1c2VNZW1vIiwiY3JldyIsImZpbHRlciIsImMiLCJyb2xlIiwic29ydCIsInRyYWNrZXJzIiwidGVjaGllcyIsInNnTGFuZ3VhZ2VzIiwic2hvd0NvbW1lbnRhdG9ycyIsImxlbmd0aCIsInNob3dUcmFja2VyIiwibWFwIiwiaWQiLCJsYW5nIiwidG9VcHBlckNhc2UiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImNoYW5uZWxzIiwiYXJyYXlPZiIsIm51bWJlciIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Crew.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/CrewManagement.js": -/*!************************************************************!*\ - !*** ./resources/js/components/episodes/CrewManagement.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _CrewMember__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CrewMember */ \"./resources/js/components/episodes/CrewMember.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_UserSelect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/UserSelect */ \"./resources/js/components/common/UserSelect.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\nvar CrewManagement = function CrewManagement(_ref) {\n var channel = _ref.channel,\n episode = _ref.episode,\n manageCrew = _ref.manageCrew,\n role = _ref.role;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_5__.useTranslation)(),\n t = _useTranslation.t;\n\n var crews = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return (episode.crew || []).filter(function (c) {\n return c.channel_id === channel.id && c.role === role;\n });\n }, [channel, episode, role]);\n var addCrew = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (user_id) {\n manageCrew({\n add: user_id,\n channel_id: channel.id,\n episode_id: episode.id,\n role: role\n });\n }, [channel, episode, manageCrew, role]);\n var confirmCrew = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (crew) {\n manageCrew({\n channel_id: channel.id,\n confirm: crew.id,\n episode_id: episode.id,\n role: role\n });\n }, [channel, episode, manageCrew, role]);\n var removeCrew = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (crew) {\n manageCrew({\n channel_id: channel.id,\n episode_id: episode.id,\n remove: crew.id,\n role: role\n });\n }, [channel, episode, manageCrew, role]);\n var unconfirmCrew = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (crew) {\n manageCrew({\n channel_id: channel.id,\n episode_id: episode.id,\n role: role,\n unconfirm: crew.id\n });\n }, [channel, episode, manageCrew, role]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: \"mt-2\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n className: \"fs-4\",\n children: t(\"crew.roles.\".concat(role))\n }), crews.map(function (crew) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_CrewMember__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n crew: crew\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: \"button-bar\",\n children: [crew.confirmed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return unconfirmCrew(crew);\n },\n title: t('button.unconfirm'),\n variant: \"outline-danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].REJECT, {\n title: \"\"\n })\n }) : null, !crew.confirmed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return confirmCrew(crew);\n },\n title: t('button.confirm'),\n variant: \"outline-success\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ACCEPT, {})\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return removeCrew(crew);\n },\n title: t('button.remove'),\n variant: \"outline-danger\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DELETE, {\n title: \"\"\n })\n })]\n })]\n }, crew.id);\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Group, {\n controlId: \"crew.addUser\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Label, {\n children: t('episodes.restreamDialog.addUser')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Control, {\n as: _common_UserSelect__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n onChange: function onChange(e) {\n return addCrew(e.target.value);\n },\n value: \"\"\n })]\n })]\n });\n};\n\nCrewManagement.propTypes = {\n channel: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number)\n }),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n crew: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),\n role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)\n })),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number)\n }),\n manageCrew: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),\n role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CrewManagement);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9DcmV3TWFuYWdlbWVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTVEsY0FBYyxHQUFHLFNBQWpCQSxjQUFpQixPQUtqQjtBQUFBLE1BSkxDLE9BSUssUUFKTEEsT0FJSztBQUFBLE1BSExDLE9BR0ssUUFITEEsT0FHSztBQUFBLE1BRkxDLFVBRUssUUFGTEEsVUFFSztBQUFBLE1BRExDLElBQ0ssUUFETEEsSUFDSzs7QUFDTCx3QkFBY1IsNkRBQWMsRUFBNUI7QUFBQSxNQUFRUyxDQUFSLG1CQUFRQSxDQUFSOztBQUVBLE1BQU1DLEtBQUssR0FBR2IsM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BQcm9wVHlwZXMuc3RyaW5nLFxuXHRcdH0pKSxcblx0XHRpZDogUHJvcFR5cGVzLm51bWJlcixcblx0fSksXG5cdG1hbmFnZUNyZXc6IFByb3BUeXBlcy5mdW5jLFxuXHRyb2xlOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ3Jld01hbmFnZW1lbnQ7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJGb3JtIiwidXNlVHJhbnNsYXRpb24iLCJDcmV3TWVtYmVyIiwiSWNvbiIsIlVzZXJTZWxlY3QiLCJDcmV3TWFuYWdlbWVudCIsImNoYW5uZWwiLCJlcGlzb2RlIiwibWFuYWdlQ3JldyIsInJvbGUiLCJ0IiwiY3Jld3MiLCJ1c2VNZW1vIiwiY3JldyIsImZpbHRlciIsImMiLCJjaGFubmVsX2lkIiwiaWQiLCJhZGRDcmV3IiwidXNlQ2FsbGJhY2siLCJ1c2VyX2lkIiwiYWRkIiwiZXBpc29kZV9pZCIsImNvbmZpcm1DcmV3IiwiY29uZmlybSIsInJlbW92ZUNyZXciLCJyZW1vdmUiLCJ1bmNvbmZpcm1DcmV3IiwidW5jb25maXJtIiwibWFwIiwiY29uZmlybWVkIiwiZSIsInRhcmdldCIsInZhbHVlIiwicHJvcFR5cGVzIiwic2hhcGUiLCJudW1iZXIiLCJhcnJheU9mIiwic3RyaW5nIiwiZnVuYyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/CrewManagement.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/CrewMember.js": -/*!********************************************************!*\ - !*** ./resources/js/components/episodes/CrewMember.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar CrewMember = function CrewMember(_ref) {\n var crew = _ref.crew;\n var classNames = ['crew-member', 'text-light'];\n\n if (!crew.confirmed) {\n classNames.push('unconfirmed');\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: classNames.join(' '),\n href: (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_1__.getStreamLink)(crew) || null,\n rel: \"noreferer\",\n variant: \"outline-twitch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"img\", {\n alt: \"\",\n src: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_2__.getAvatarUrl)(crew.user)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n children: (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_1__.getName)(crew)\n })]\n }, crew.id);\n};\n\nCrewMember.propTypes = {\n crew: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({\n confirmed: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),\n user: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CrewMember);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9DcmV3TWVtYmVyLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTs7OztBQUVBLElBQU1NLFVBQVUsR0FBRyxTQUFiQSxVQUFhLE9BQWM7QUFBQSxNQUFYQyxJQUFXLFFBQVhBLElBQVc7QUFDaEMsTUFBTUMsVUFBVSxHQUFHLENBQ2xCLGFBRGtCLEVBRWxCLFlBRmtCLENBQW5COztBQUlBLE1BQUksQ0FBQ0QsSUFBSSxDQUFDRSxTQUFWLEVBQXFCO0FBQ3BCRCxJQUFBQSxVQUFVLENBQUNFLElBQVgsQ0FBZ0IsYUFBaEI7QUFDQTs7QUFDRCxzQkFBTyx3REFBQyx1REFBRDtBQUNOLGFBQVMsRUFBRUYsVUFBVSxDQUFDRyxJQUFYLENBQWdCLEdBQWhCLENBREw7QUFFTixRQUFJLEVBQUVQLDREQUFhLENBQUNHLElBQUQsQ0FBYixJQUF1QixJQUZ2QjtBQUlOLE9BQUcsRUFBQyxXQUpFO0FBS04sV0FBTyxFQUFDLGdCQUxGO0FBQUEsNEJBT047QUFBSyxTQUFHLEVBQUM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oIWNyZXcuY29uZmlybWVkKSB7XG5cdFx0Y2xhc3NOYW1lcy5wdXNoKCd1bmNvbmZpcm1lZCcpO1xuXHR9XG5cdHJldHVybiA8QnV0dG9uXG5cdFx0Y2xhc3NOYW1lPXtjbGFzc05hbWVzLmpvaW4oJyAnKX1cblx0XHRocmVmPXtnZXRTdHJlYW1MaW5rKGNyZXcpIHx8IG51bGx9XG5cdFx0a2V5PXtjcmV3LmlkfVxuXHRcdHJlbD1cIm5vcmVmZXJlclwiXG5cdFx0dmFyaWFudD1cIm91dGxpbmUtdHdpdGNoXCJcblx0PlxuXHRcdDxpbWcgYWx0PVwiXCIgc3JjPXtnZXRBdmF0YXJVcmwoY3Jldy51c2VyKX0gLz5cblx0XHQ8c3Bhbj57Z2V0TmFtZShjcmV3KX08L3NwYW4+XG5cdDwvQnV0dG9uPjtcbn07XG5cbkNyZXdNZW1iZXIucHJvcFR5cGVzID0ge1xuXHRjcmV3OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdGNvbmZpcm1lZDogUHJvcFR5cGVzLmJvb2wsXG5cdFx0aWQ6IFByb3BUeXBlcy5udW1iZXIsXG5cdFx0dXNlcjogUHJvcFR5cGVzLnNoYXBlKHtcblx0XHR9KSxcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCBDcmV3TWVtYmVyO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiZ2V0TmFtZSIsImdldFN0cmVhbUxpbmsiLCJnZXRBdmF0YXJVcmwiLCJDcmV3TWVtYmVyIiwiY3JldyIsImNsYXNzTmFtZXMiLCJjb25maXJtZWQiLCJwdXNoIiwiam9pbiIsInVzZXIiLCJpZCIsInByb3BUeXBlcyIsInNoYXBlIiwiYm9vbCIsIm51bWJlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/CrewMember.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/DialogEpisode.js": -/*!***********************************************************!*\ - !*** ./resources/js/components/episodes/DialogEpisode.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar DialogEpisode = function DialogEpisode(_ref) {\n var episode = _ref.episode;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n if (!episode) return null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n children: episode.event.title\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n children: t('episodes.startTime', {\n date: new Date(episode.start)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n children: episode.players.map(function (p) {\n return (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_1__.getName)(p);\n }).join(', ')\n })]\n });\n};\n\nDialogEpisode.propTypes = {\n episode: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n event: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n }),\n players: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({})),\n start: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DialogEpisode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9EaWFsb2dFcGlzb2RlLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTs7Ozs7QUFFQSxJQUFNSSxhQUFhLEdBQUcsU0FBaEJBLGFBQWdCLE9BQWlCO0FBQUEsTUFBZEMsT0FBYyxRQUFkQSxPQUFjOztBQUN0Qyx3QkFBY0gsNkRBQWMsRUFBNUI7QUFBQSxNQUFRSSxDQUFSLG1CQUFRQSxDQUFSOztBQUVBLE1BQUksQ0FBQ0QsT0FBTCxFQUFjLE9BQU8sSUFBUDtBQUVkLHNCQUFPO0FBQUEsNEJBQ047QUFBQSxnQkFDRUEsT0FBTyxDQUFDRSxLQUFSLENBQWNDO0FBRGhCLE1BRE0sZUFJTjtBQUFBLGdCQUNFRixDQUFDLENBQUMsb0JBQUQsRUF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2luIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJhcnJheU9mIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/DialogEpisode.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Filter.js": -/*!****************************************************!*\ - !*** ./resources/js/components/episodes/Filter.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var _helpers_Episode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Episode */ \"./resources/js/helpers/Episode.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\nvar Filter = function Filter(_ref) {\n var events = _ref.events,\n filter = _ref.filter,\n setFilter = _ref.setFilter;\n var toggleEvent = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (event) {\n setFilter((0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_1__.toggleEventFilter)(events, filter, event));\n }, [events, filter, setFilter]);\n if (!events || !events.length) return null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"episode-filter button-bar text-end\",\n children: events.map(function (event) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n active: (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_1__.isEventSelected)(filter, event),\n onClick: function onClick() {\n return toggleEvent(event);\n },\n title: event[\"short\"] ? event.title : null,\n variant: \"outline-secondary\",\n children: event[\"short\"] || event.title\n }, event.id);\n })\n });\n};\n\nFilter.propTypes = {\n events: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({})),\n filter: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape(),\n setFilter: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Filter);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9GaWx0ZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUVBOzs7QUFFQSxJQUFNSyxNQUFNLEdBQUcsU0FBVEEsTUFBUyxPQUFtQztBQUFBLE1BQWhDQyxNQUFnQyxRQUFoQ0EsTUFBZ0M7QUFBQSxNQUF4QkMsTUFBd0IsUUFBeEJBLE1BQXdCO0FBQUEsTUFBaEJDLFNBQWdCLFFBQWhCQSxTQUFnQjtBQUNqRCxNQUFNQyxXQUFXLEdBQUdSLDhDQUFBLENBQWtCLFVBQUFVLEtBQUssRUFBSTtBQUM5Q0gsSUFBQUEsU0FBUyxDQUFDSixtRUFBaUIsQ0FBQ0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ib3V0bGluZS1zZWNvbmRhcnlcIlxuXHRcdFx0PlxuXHRcdFx0XHR7ZXZlbnQuc2hvcnQgfHwgZXZlbnQudGl0bGV9XG5cdFx0XHQ8L0J1dHRvbj5cblx0XHQpfVxuXHQ8L2Rpdj47XG59O1xuXG5GaWx0ZXIucHJvcFR5cGVzID0ge1xuXHRldmVudHM6IFByb3BUeXBlcy5hcnJheU9mKFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pKSxcblx0ZmlsdGVyOiBQcm9wVHlwZXMuc2hhcGUoKSxcblx0c2V0RmlsdGVyOiBQcm9wVHlwZXMuZnVuYyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZpbHRlcjtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkJ1dHRvbiIsImlzRXZlbnRTZWxlY3RlZCIsInRvZ2dsZUV2ZW50RmlsdGVyIiwiRmlsdGVyIiwiZXZlbnRzIiwiZmlsdGVyIiwic2V0RmlsdGVyIiwidG9nZ2xlRXZlbnQiLCJ1c2VDYWxsYmFjayIsImV2ZW50IiwibGVuZ3RoIiwibWFwIiwidGl0bGUiLCJpZCIsInByb3BUeXBlcyIsImFycmF5T2YiLCJzaGFwZSIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Filter.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Item.js": -/*!**************************************************!*\ - !*** ./resources/js/components/episodes/Item.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 prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _Channels__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Channels */ \"./resources/js/components/episodes/Channels.js\");\n/* harmony import */ var _Crew__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Crew */ \"./resources/js/components/episodes/Crew.js\");\n/* harmony import */ var _MultiLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MultiLink */ \"./resources/js/components/episodes/MultiLink.js\");\n/* harmony import */ var _Players__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Players */ \"./resources/js/components/episodes/Players.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_Episode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/Episode */ \"./resources/js/helpers/Episode.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Item = function Item(_ref) {\n var episode = _ref.episode,\n onAddRestream = _ref.onAddRestream,\n onApply = _ref.onApply,\n onEditRestream = _ref.onEditRestream,\n user = _ref.user;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_10__.useTranslation)(),\n t = _useTranslation.t;\n\n var classNames = ['episodes-item', 'my-3', 'p-2', 'border', 'rounded'];\n\n if ((0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_6__.isActive)(episode)) {\n classNames.push('is-active');\n }\n\n var style = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n if (episode.event && episode.event.corner) {\n return {\n backgroundImage: \"url(\".concat(episode.event.corner, \")\")\n };\n }\n\n return null;\n }, [episode.event && episode.event.corner]);\n var hasChannels = episode.channels && episode.channels.length;\n var hasPlayers = episode.players && episode.players.length;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: classNames.join(' '),\n style: style,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"d-flex align-items-stretch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n className: \"episode-start me-3 fs-5 fs-md-4 text-end\",\n children: t('schedule.startTime', {\n date: new Date(episode.start)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"episode-titlebar\",\n children: [episode.title || episode.event ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n className: \"episode-title fs-5 fs-md-4\",\n children: episode.title || episode.event.title\n }) : null, episode.comment ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n className: \"episode-comment\",\n children: episode.comment\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"episode-channel-links ms-auto text-end\",\n children: [hasChannels ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_Channels__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n channels: episode.channels,\n episode: episode,\n onEditRestream: onEditRestream\n }) : null, !hasChannels && hasPlayers ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_MultiLink__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n players: episode.players\n }) : null, episode.raceroom ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n href: episode.raceroom,\n target: \"_blank\",\n title: t('episodes.raceroom'),\n variant: \"outline-secondary\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_5__[\"default\"].RACETIME, {\n title: \"\"\n }), ' ', t('episodes.raceroom')]\n })\n }) : null, onAddRestream && (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_7__.canRestreamEpisode)(user, episode) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n onClick: function onClick() {\n return onAddRestream(episode);\n },\n title: t('episodes.addRestream'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_5__[\"default\"].ADD, {\n title: \"\"\n })\n })\n }) : null]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"episode-body d-flex flex-column flex-fill\",\n children: [hasPlayers ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_Players__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n players: episode.players\n }) : null, episode.crew && episode.crew.length || !(0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_6__.hasPassed)(episode) && ((0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_6__.hasSGRestream)(episode) || (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_7__.canApplyForEpisode)(user, episode, 'commentary') || (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_7__.canApplyForEpisode)(user, episode, 'tracking')) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n className: \"mb-3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_Crew__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n episode: episode,\n onApply: onApply\n })\n }) : null, episode.event ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"div\", {\n className: \"episode-event mt-auto\",\n children: episode.event.description_id ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_12__.Link, {\n className: \"event-link\",\n to: \"/events/\".concat(episode.event.name),\n children: episode.event.title\n }) : episode.event.title\n }) : null]\n })]\n });\n};\n\nItem.propTypes = {\n episode: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n channels: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({})),\n comment: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n crew: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({})),\n event: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n corner: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n description_id: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)\n }),\n players: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({})),\n raceroom: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n start: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)\n }),\n onAddRestream: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n onApply: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n onEditRestream: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n user: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_8__.withUser)(Item));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9JdGVtLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QU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VUcmFuc2xhdGlvbiIsIkxpbmsiLCJDaGFubmVscyIsIkNyZXciLCJNdWx0aUxpbmsiLCJQbGF5ZXJzIiwiSWNvbiIsImhhc1Bhc3NlZCIsImhhc1NHUmVzdHJlYW0iLCJpc0FjdGl2ZSIsImNhbkFwcGx5Rm9yRXBpc29kZSIsImNhblJlc3RyZWFtRXBpc29kZSIsIndpdGhVc2VyIiwiSXRlbSIsImVwaXNvZGUiLCJvbkFkZFJlc3RyZWFtIiwib25BcHBseSIsIm9uRWRpdFJlc3RyZWFtIiwidXNlciIsInQiLCJjbGFzc05hbWVzIiwicHVzaCIsInN0eWxlIiwidXNlTWVtbyIsImV2ZW50IiwiY29ybmVyIiwiYmFja2dyb3VuZEltYWdlIiwiaGFzQ2hhbm5lbHMiLCJjaGFubmVscyIsImxlbmd0aCIsImhhc1BsYXllcnMiLCJwbGF5ZXJzIiwiam9pbiIsImRhdGUiLCJEYXRlIiwic3RhcnQiLCJ0aXRsZSIsImNvbW1lbnQiLCJyYWNlcm9vbSIsImNyZXciLCJkZXNjcmlwdGlvbl9pZCIsIm5hbWUiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImFycmF5T2YiLCJzdHJpbmciLCJudW1iZXIiLCJmdW5jIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/List.js": -/*!**************************************************!*\ - !*** ./resources/js/components/episodes/List.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 moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/episodes/Item.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\n\nvar List = function List(_ref) {\n var episodes = _ref.episodes,\n onAddRestream = _ref.onAddRestream,\n onApply = _ref.onApply,\n onEditRestream = _ref.onEditRestream;\n var grouped = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(function () {\n return episodes.reduce(function (groups, episode) {\n var day = moment__WEBPACK_IMPORTED_MODULE_0___default()(episode.start).format('YYYY-MM-DD');\n return _objectSpread(_objectSpread({}, groups), {}, _defineProperty({}, day, [].concat(_toConsumableArray(groups[day] || []), [episode])));\n }, {});\n }, [episodes]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"episodes-list\",\n children: Object.entries(grouped).map(function (_ref2) {\n var _ref3 = _slicedToArray(_ref2, 2),\n day = _ref3[0],\n group = _ref3[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(\"div\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h2\", {\n className: \"text-center episodes-group-heading\",\n children: moment__WEBPACK_IMPORTED_MODULE_0___default()(day).format('dddd, L')\n }), group.map(function (episode) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n episode: episode,\n onAddRestream: onAddRestream,\n onApply: onApply,\n onEditRestream: onEditRestream\n }, episode.id);\n })]\n }, day);\n })\n });\n};\n\nList.propTypes = {\n episodes: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n start: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n })),\n onAddRestream: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n onApply: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n onEditRestream: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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XHRcdFx0XHRcdGtleT17ZXBpc29kZS5pZH1cblx0XHRcdFx0Lz5cblx0XHRcdCl9XG5cdFx0PC9kaXY+KX1cblx0PC9kaXY+O1xufTtcblxuTGlzdC5wcm9wVHlwZXMgPSB7XG5cdGVwaXNvZGVzOiBQcm9wVHlwZXMuYXJyYXlPZihQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdHN0YXJ0OiBQcm9wVHlwZXMuc3RyaW5nLFxuXHR9KSksXG5cdG9uQWRkUmVzdHJlYW06IFByb3BUeXBlcy5mdW5jLFxuXHRvbkFwcGx5OiBQcm9wVHlwZXMuZnVuYyxcblx0b25FZGl0UmVzdHJlYW06IFByb3BUeXBlcy5mdW5jLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgTGlzdDtcbiJdLCJuYW1lcyI6WyJtb21lbnQiLCJQcm9wVHlwZXMiLCJSZWFjdCIsIkl0ZW0iLCJMaXN0IiwiZXBpc29kZXMiLCJvbkFkZFJlc3RyZWFtIiwib25BcHBseSIsIm9uRWRpdFJlc3RyZWFtIiwiZ3JvdXBlZCIsInVzZU1lbW8iLCJyZWR1Y2UiLCJncm91cHMiLCJlcGlzb2RlIiwiZGF5Iiwic3RhcnQiLCJmb3JtYXQiLCJPYmplY3QiLCJlbnRyaWVzIiwibWFwIiwiZ3JvdXAiLCJpZCIsInByb3BUeXBlcyIsImFycmF5T2YiLCJzaGFwZSIsInN0cmluZyIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/MultiLink.js": -/*!*******************************************************!*\ - !*** ./resources/js/components/episodes/MultiLink.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar MultiLink = function MultiLink(_ref) {\n var players = _ref.players;\n var streams = players.map(_helpers_Crew__WEBPACK_IMPORTED_MODULE_2__.getStreamLink);\n var names = streams.map(function (s) {\n return s.split('/').pop();\n });\n var url = \"https://multitwitch.tv/\".concat(names.join('/'));\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"episode-channel\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n href: url,\n rel: \"noreferer\",\n target: \"_blank\",\n title: \"MultiTwitch\",\n variant: \"outline-twitch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].STREAM, {}), ' MultiTwitch']\n })\n });\n};\n\nMultiLink.propTypes = {\n players: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({\n short_name: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)\n }))\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MultiLink);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9NdWx0aUxpbmsuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7O0FBRUEsSUFBTUssU0FBUyxHQUFHLFNBQVpBLFNBQVksT0FBaUI7QUFBQSxNQUFkQyxPQUFjLFFBQWRBLE9BQWM7QUFDbEMsTUFBTUMsT0FBTyxHQUFHRCxPQUFPLENBQUNFLEdBQVIsQ0FBWUosd0RBQVosQ0FBaEI7QUFDQSxNQUFNSyxLQUFLLEdBQUdGLE9BQU8sQ0FBQ0MsR0FBUixDQUFZLFVBQUFFLENBQUM7QUFBQSxXQUFJQSxDQUFDLENBQUNDLEtBQUYsQ0FBUSxHQUFSLEVBQWFDLEdBQWIsRUFBSjtBQUFBLEdBQWIsQ0FBZDtBQUNBLE1BQU1DLEdBQUcsb0NBQTZCSixLQUFLLENBQUNLLElBQU4sQ0FBVyxHQUFYLENBQTdCLENBQVQ7QUFFQSxzQkFBTztBQUFLLGFBQVMsRUFBQyxpQkFBZjtBQUFBLDJCQUNOLHdEQUFDLHVEQUFEO0FBQ0MsVUFBSSxFQUFFRCxHQURQO0FBRUMsU0FBRyxFQUFDLFd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components/episodes/MultiLink.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Player.js": -/*!****************************************************!*\ - !*** ./resources/js/components/episodes/Player.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar Player = function Player(_ref) {\n var player = _ref.player;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"episode-player my-3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"player-link\",\n href: (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_1__.getStreamLink)(player),\n rel: \"noreferrer\",\n target: \"_blank\",\n variant: \"outline-twitch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"img\", {\n alt: \"\",\n src: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_2__.getAvatarUrl)(player.user)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n className: \"text-light fs-5 fs-md-4\",\n children: (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_1__.getName)(player)\n })]\n })\n });\n};\n\nPlayer.propTypes = {\n player: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),\n name_override: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),\n stream_override: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string),\n user: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Player);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9QbGF5ZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7O0FBRUEsSUFBTU0sTUFBTSxHQUFHLFNBQVRBLE1BQVMsT0FBZ0I7QUFBQSxNQUFiQyxNQUFhLFFBQWJBLE1BQWE7QUFDOUIsc0JBQU87QUFBSyxhQUFTLEVBQUMscUJBQWY7QUFBQSwyQkFDTix3REFBQyx1REFBRDtBQUNDLGVBQVMsRUFBQyxhQURYO0FBRUMsVUFBSSxFQUFFSCw0REFBYSxDQUFDRyxNQUFELENBRn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wibnVtYmVyIiwibmFtZV9vdmVycmlkZSIsInN0cmluZyIsInN0cmVhbV9vdmVycmlkZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Player.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/Players.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/episodes/Players.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ \"./resources/js/components/episodes/Player.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar Players = function Players(_ref) {\n var players = _ref.players;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"episode-players\",\n children: players.map(function (player) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Player__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n player: player\n }, player.id);\n })\n });\n};\n\nPlayers.propTypes = {\n players: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number)\n }))\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Players);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9QbGF5ZXJzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFQTs7O0FBRUEsSUFBTUcsT0FBTyxHQUFHLFNBQVZBLE9BQVU7QUFBQSxNQUFHQyxPQUFILFFBQUdBLE9BQUg7QUFBQSxzQkFDZjtBQUFLLGFBQVMsRUFBQyxpQkFBZjtBQUFBLGNBQ0VBLE9BQU8sQ0FBQ0MsR0FBUixDQUFZLFVBQUFDLE1BQU07QUFBQSwwQkFDbEIsdURBQUMsK0NBQUQ7QUFBd0IsY0FBTSxFQUFFQTtBQUFoQyxTQUFhQSxNQUFNLENBQUNDLEVBQXBCLENBRGtCO0FBQUEsS0FBbEI7QUFERixJQURlO0FBQUEsQ0FBaEI7O0FBT0FKLE9BQU8sQ0FBQ0ssU0FBUixHQUFvQjtBQUNuQkosRUFBQUEsT0FBTyxFQUFFSix5REFBQSxDQUFrQkEsdURBQUEsQ0FBZ0I7QUFDMUNPLElBQUFBLEVBQUUsRUFBRVAsMERBQWdCVztBQURzQixHQUFoQixDQUFsQjtBQURVLENBQXBCO0FBTUEsaUVBQWVSLE9BQWYiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9QbGF5ZXJzLmpzP2M4ZmEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCBQbGF5ZXIgZnJvbSAnLi9QbGF5ZXInO1xuXG5jb25zdCBQbGF5ZXJzID0gKHsgcGxheWVycyB9KSA9PlxuXHQ8ZGl2IGNsYXNzTmFtZT1cImVwaXNvZGUtcGxheWVyc1wiPlxuXHRcdHtwbGF5ZXJzLm1hcChwbGF5ZXIgPT5cblx0XHRcdDxQbGF5ZXIga2V5PXtwbGF5ZXIuaWR9IHBsYXllcj17cGxheWVyfSAvPlxuXHRcdCl9XG5cdDwvZGl2PjtcblxuUGxheWVycy5wcm9wVHlwZXMgPSB7XG5cdHBsYXllcnM6IFByb3BUeXBlcy5hcnJheU9mKFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0aWQ6IFByb3BUeXBlcy5udW1iZXIsXG5cdH0pKSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFBsYXllcnM7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJQbGF5ZXIiLCJQbGF5ZXJzIiwicGxheWVycyIsIm1hcCIsInBsYXllciIsImlkIiwicHJvcFR5cGVzIiwiYXJyYXlPZiIsInNoYXBlIiwibnVtYmVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/Players.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/RestreamAddForm.js": -/*!*************************************************************!*\ - !*** ./resources/js/components/episodes/RestreamAddForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _DialogEpisode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DialogEpisode */ \"./resources/js/components/episodes/DialogEpisode.js\");\n/* harmony import */ var _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/ToggleSwitch */ \"./resources/js/components/common/ToggleSwitch.js\");\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar RestreamAddForm = function RestreamAddForm(_ref) {\n var episode = _ref.episode,\n errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n user = _ref.user,\n values = _ref.values;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_DialogEpisode__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n episode: episode\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n controlId: \"episodes.channel_id\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: t('episodes.channel')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Select, {\n isInvalid: !!(touched.channel_id && errors.channel_id),\n name: \"channel_id\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: values.channel_id || 0,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"option\", {\n disabled: true,\n value: 0,\n children: t('general.pleaseSelect')\n }), (user && user.channel_crews || []).map(function (c) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"option\", {\n value: c.channel_id,\n children: c.channel.title\n }, c.id);\n })]\n }), touched.channel_id && errors.channel_id ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: t(errors.channel_id)\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n sm: 6,\n controlId: \"episodes.accept_comms\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n className: \"d-block\",\n children: t('episodes.restreamDialog.acceptComms')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n as: _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n isInvalid: !!(touched.accept_comms && errors.accept_comms),\n name: \"accept_comms\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: !!values.accept_comms\n }), touched.accept_comms && errors.accept_comms ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: t(errors.accept_comms)\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n sm: 6,\n controlId: \"episodes.accept_tracker\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n className: \"d-block\",\n children: t('episodes.restreamDialog.acceptTracker')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n as: _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n isInvalid: !!(touched.accept_tracker && errors.accept_tracker),\n name: \"accept_tracker\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: !!values.accept_tracker\n }), touched.accept_tracker && errors.accept_tracker ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: t(errors.accept_tracker)\n }) : null]\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: t('button.save')\n })]\n })]\n });\n};\n\nRestreamAddForm.propTypes = {\n episode: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n event: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n players: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({})),\n start: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n errors: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n accept_comms: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n accept_tracker: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n accept_comms: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),\n accept_tracker: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n channel_crews: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({}))\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n accept_comms: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),\n accept_tracker: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__.withUser)((0,formik__WEBPACK_IMPORTED_MODULE_1__.withFormik)({\n displayName: 'RestreamAddForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var setErrors, onSubmit;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setErrors = actions.setErrors;\n onSubmit = actions.props.onSubmit;\n _context.prev = 2;\n _context.next = 5;\n return onSubmit(values);\n\n case 5:\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](2);\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 7]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var episode = _ref2.episode,\n user = _ref2.user;\n return {\n accept_comms: false,\n accept_tracker: false,\n channel_id: user && user.channel_crews && user.channel_crews.length ? user.channel_crews[0].channel_id : 0,\n episode_id: episode ? episode.id : 0\n };\n }\n})(RestreamAddForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9SZXN0cmVhbUFkZEZvcm0uanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTWEsZUFBZSxHQUFHLFNBQWxCQSxlQUFrQixPQVVsQjtBQUFBLE1BVExDLE9BU0ssUUFUTEEsT0FTSztBQUFBLE1BUkxDLE1BUUssUUFSTEEsTUFRSztBQUFBLE1BUExDLFVBT0ssUUFQTEEsVUFPSztBQUFBLE1BTkxDLFlBTUssUUFOTEEsWUFNSztBQUFBLE1BTExDLFlBS0ssUUFMTEEsWUFLSztBQUFBLE1BSkxDLFFBSUssUUFKTEEsUUFJSztBQUFBLE1BSExDLE9BR0ssUUFITEEsT0FHSztBQUFBLE1BRkxDLElBRUssUUFGTEEsSUFFSztBQUFBL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internal:///./resources/js/components/episodes/RestreamAddForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/RestreamDialog.js": -/*!************************************************************!*\ - !*** ./resources/js/components/episodes/RestreamDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _RestreamAddForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RestreamAddForm */ \"./resources/js/components/episodes/RestreamAddForm.js\");\n/* harmony import */ var _RestreamEditForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RestreamEditForm */ \"./resources/js/components/episodes/RestreamEditForm.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar RestreamDialog = function RestreamDialog(_ref) {\n var channel = _ref.channel,\n editRestream = _ref.editRestream,\n episode = _ref.episode,\n manageCrew = _ref.manageCrew,\n onHide = _ref.onHide,\n onRemoveRestream = _ref.onRemoveRestream,\n onSubmit = _ref.onSubmit,\n show = _ref.show;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: \"restream-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Title, {\n children: t('episodes.restreamDialog.title')\n })\n }), channel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_RestreamEditForm__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n channel: channel,\n editRestream: editRestream,\n episode: episode,\n manageCrew: manageCrew,\n onCancel: onHide,\n onRemoveRestream: onRemoveRestream\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_RestreamAddForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n episode: episode,\n onCancel: onHide,\n onSubmit: onSubmit\n })]\n });\n};\n\nRestreamDialog.propTypes = {\n channel: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({}),\n editRestream: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({}),\n manageCrew: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n onRemoveRestream: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RestreamDialog);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9SZXN0cmVhbURpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Ozs7QUFFQSxJQUFNTSxjQUFjLEdBQUcsU0FBakJBLGNBQWlCLE9BU2pCO0FBQUEsTUFSTEMsT0FRSyxRQVJMQSxPQVFLO0FBQUEsTUFQTEMsWUFPSyxRQVBMQSxZQU9LO0FBQUEsTUFOTEMsT0FNSyxRQU5MQSxPQU1LO0FBQUEsTUFMTEMsVUFLSyxRQUxMQSxVQUtLO0FBQUEsTUFKTEMsTUFJSyxRQUpMQSxNQUlLO0FBQUEsTUFITEMsZ0JBR0ssUUFITEEsZ0JBR0s7QUFBQSxNQUZMQyxRQUVLLFFBRkxBLFFBRUs7QUFBQSxNQURMQyxJQUNLLFFBRExBLElBQ0s7O0FBQ0wsd0JBQWNYLDZEQUFjLEVBQTVCO0FBQUEsTUFBUVksQ0FBUixtQkFBUUEsQ0FBUjs7QUFFQSxzQkFBTyx3REFBQyx1REFBRDtBQUFPLGFBQVMsRUFBQyxpQkFBakI7QUFBbUMsVUFBTSxFQUFFSixNQUEzQztBQUFtRCxRQUFJLEVBQUVHLElBQXpEO0FBQUEsNEJBQ04sdURBQUMsOERBQUQ7QUFBYyxpQkFBVyxNQUF6QjtBQUFBLDZCQUNDLHVEQUFDLDZEQUFEO0FBQUEsa0JBQ0VDLENBQUMsQ0FBQywrQkFBRDtBQURIO0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3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/RestreamDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/episodes/RestreamEditForm.js": -/*!**************************************************************!*\ - !*** ./resources/js/components/episodes/RestreamEditForm.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 prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _CrewManagement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CrewManagement */ \"./resources/js/components/episodes/CrewManagement.js\");\n/* harmony import */ var _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/ToggleSwitch */ \"./resources/js/components/common/ToggleSwitch.js\");\n/* harmony import */ var _helpers_Crew__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/Crew */ \"./resources/js/helpers/Crew.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar RestreamEditForm = function RestreamEditForm(_ref) {\n var channel = _ref.channel,\n editRestream = _ref.editRestream,\n episode = _ref.episode,\n manageCrew = _ref.manageCrew,\n onCancel = _ref.onCancel,\n onRemoveRestream = _ref.onRemoveRestream;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_5__.useTranslation)(),\n t = _useTranslation.t;\n\n var acceptToggle = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (e) {\n editRestream(_defineProperty({\n channel_id: channel.id,\n episode_id: episode.id\n }, e.target.name, e.target.value));\n }, [channel, editRestream, episode]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Body, {\n children: [channel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n children: channel.title\n }) : null, episode ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n children: episode.event.title\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n children: t('episodes.startTime', {\n date: new Date(episode.start)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n children: episode.players.map(function (p) {\n return (0,_helpers_Crew__WEBPACK_IMPORTED_MODULE_3__.getName)(p);\n }).join(', ')\n })]\n }) : null, channel && episode && editRestream ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n sm: 6,\n controlId: \"episodes.accept_comms\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n className: \"d-block\",\n children: t('episodes.restreamDialog.acceptComms')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n as: _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n name: \"accept_comms\",\n onChange: acceptToggle,\n value: !!channel.pivot.accept_comms\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n sm: 6,\n controlId: \"episodes.accept_tracker\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n className: \"d-block\",\n children: t('episodes.restreamDialog.acceptTracker')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n as: _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n name: \"accept_tracker\",\n onChange: acceptToggle,\n value: !!channel.pivot.accept_tracker\n })]\n })]\n }) : null, channel && episode && manageCrew ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_CrewManagement__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n channel: channel,\n episode: episode,\n manageCrew: manageCrew,\n role: \"commentary\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_CrewManagement__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n channel: channel,\n episode: episode,\n manageCrew: manageCrew,\n role: \"tracking\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_CrewManagement__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n channel: channel,\n episode: episode,\n manageCrew: manageCrew,\n role: \"setup\"\n })]\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Footer, {\n className: \"justify-content-between\",\n children: [onRemoveRestream ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n onClick: function onClick() {\n return onRemoveRestream(episode, channel);\n },\n variant: \"outline-danger\",\n children: t('button.remove')\n }) : null, onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: t('button.close')\n }) : null]\n })]\n });\n};\n\nRestreamEditForm.propTypes = {\n channel: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),\n pivot: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n accept_comms: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),\n accept_tracker: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool)\n }),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)\n }),\n editRestream: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func),\n episode: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n crew: prop_types__WEBPACK_IMPORTED_MODULE_11___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n channel_id: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),\n role: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)\n })),\n event: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)\n }),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),\n players: prop_types__WEBPACK_IMPORTED_MODULE_11___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({})),\n start: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)\n }),\n manageCrew: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func),\n onRemoveRestream: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RestreamEditForm);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9lcGlzb2Rlcy9SZXN0cmVhbUVkaXRGb3JtLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7Ozs7QUFFQSxJQUFNVyxnQkFBZ0IsR0FBRyxTQUFuQkEsZ0JBQW1CLE9BT25CO0FBQUEsTUFOTEMsT0FNSyxRQU5MQSxPQU1LO0FBQUEsTUFMTEMsWUFLSyxRQUxMQSxZQUtLO0FBQUEsTUFKTEMsT0FJSyxRQUpMQSxPQUlLO0FBQUEsTUFITEMsVUFHSyxRQUhMQSxVQUdLO0FBQUEsTUFGTEMsUUFFSyxRQUZMQSxRQUVLO0FBQUEsTUFETEMsZ0JBQ0ssUUFETEEsZ0JBQ0s7O0FBQ0wsd0JBQWNWLDZEQUFjLEVBQTVCO0FBQUEsTUFBUVcsQ0FBUixtQkFBUUEsQ0FBUjs7QUFFQSxNQUFNQyxZQUFZLEdBQUdsQiw4Q0FBQSxDQUFrQixVQUFBb0IsQ0FBQyxFQUFJO0FBQzNDUixJQUFBQSxZQUFZO0FBQ1hTLE1BQUFBLFVBQVUsRUFBRVYsT0FBTyxDQUFDVyxFQURUO0FBRVhDLE1BQUFBLFVBQVUsRUFBRVYsT0FBTyxDQUFDUztBQUZULE9BR1ZGLENBQUMs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hbUVkaXRGb3JtIiwiY2hhbm5lbCIsImVkaXRSZXN0cmVhbSIsImVwaXNvZGUiLCJtYW5hZ2VDcmV3Iiwib25DYW5jZWwiLCJvblJlbW92ZVJlc3RyZWFtIiwidCIsImFjY2VwdFRvZ2dsZSIsInVzZUNhbGxiYWNrIiwiZSIsImNoYW5uZWxfaWQiLCJpZCIsImVwaXNvZGVfaWQiLCJ0YXJnZXQiLCJuYW1lIiwidmFsdWUiLCJ0aXRsZSIsImV2ZW50IiwiZGF0ZSIsIkRhdGUiLCJzdGFydCIsInBsYXllcnMiLCJtYXAiLCJwIiwiam9pbiIsInBpdm90IiwiYWNjZXB0X2NvbW1zIiwiYWNjZXB0X3RyYWNrZXIiLCJwcm9wVHlwZXMiLCJzaGFwZSIsIm51bWJlciIsImJvb2wiLCJzdHJpbmciLCJmdW5jIiwiY3JldyIsImFycmF5T2YiLCJyb2xlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/episodes/RestreamEditForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/events/Detail.js": -/*!**************************************************!*\ - !*** ./resources/js/components/events/Detail.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_RawHTML__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/RawHTML */ \"./resources/js/components/common/RawHTML.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar Detail = function Detail(_ref) {\n var actions = _ref.actions,\n event = _ref.event;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"h1\", {\n children: event.title\n }), event.description && actions.editContent ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"ms-3\",\n onClick: function onClick() {\n return actions.editContent(event.description);\n },\n size: \"sm\",\n title: t('button.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].EDIT, {\n title: \"\"\n })\n }) : null]\n }), event.description ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_RawHTML__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n html: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_3__.getTranslation)(event.description, 'description', _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language)\n }) : null]\n });\n};\n\nDetail.propTypes = {\n actions: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n editContent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func)\n }),\n event: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n description: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Detail);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9ldmVudHMvRGV0YWlsLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFFQSxJQUFNUSxNQUFNLEdBQUcsU0FBVEEsTUFBUyxPQUF3QjtBQUFBLE1BQXJCQyxPQUFxQixRQUFyQkEsT0FBcUI7QUFBQSxNQUFaQyxLQUFZLFFBQVpBLEtBQVk7O0FBQ3RDLHdCQUFjUCw2REFBYyxFQUE1QjtBQ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iLCJwcm9wVHlwZXMiLCJzaGFwZSIsImZ1bmMiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/events/Detail.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Buttons.js": -/*!************************************************!*\ - !*** ./resources/js/components/map/Buttons.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar Buttons = function Buttons(_ref) {\n var setUWOverlay = _ref.setUWOverlay,\n uwOverlay = _ref.uwOverlay;\n\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__.useOpenSeadragon)(),\n activeMap = _useOpenSeadragon.activeMap,\n setActiveMap = _useOpenSeadragon.setActiveMap;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"mt-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"button-bar\",\n children: ['lw', 'dw', 'sp', 'uw', 'uw2'].map(function (map) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n active: activeMap === map,\n onClick: function onClick() {\n return setActiveMap(map);\n },\n title: t(\"map.\".concat(map, \"Long\")),\n variant: \"outline-secondary\",\n children: t(\"map.\".concat(map, \"Short\"))\n }, map);\n })\n }), activeMap === 'uw' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"mt-2\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Check, {\n checked: uwOverlay,\n id: \"toggle-uw-overlay\",\n inline: true,\n onChange: function onChange(e) {\n return setUWOverlay(e.target.checked);\n },\n type: \"checkbox\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Label, {\n className: \"mt-0\",\n htmlFor: \"toggle-uw-overlay\",\n children: t('map.uwOverlay')\n })]\n }) : null]\n });\n};\n\nButtons.propTypes = {\n setUWOverlay: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n uwOverlay: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Buttons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvQnV0dG9ucy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOzs7O0FBRUEsSUFBTU0sT0FBTyxHQUFHLFNBQVZBLE9BQVUsT0FBaUM7QUFBQSxNQUE5QkMsWUFBOEIsUUFBOUJBLFlBQThCO0FBQUEsTUFBaEJDLFNBQWdCLFFBQWhCQSxTQUFnQjs7QUFDaEQsMEJBQW9DSCxnRUFBZ0IsRUFBcEQ7QUFBQSxNQUFRSSxTQUFSLHFCQUFRQSxTQUFSO0FBQUEsTUFBbUJDLFlBQW5CLHFCQUFtQkEsWUFBbkI7O0FBQ0Esd0JBQWNOLDZEQUFjLEVBQTVCO0FBQUEsTUFBUU8sQ0FBUixtQkFBUUEsQ0FBUjs7QUFFQSxzQkFBTztBQUFLLGFBQVMsRUFBQyxNQUFmO0FBQUEsNEJBQ047QUFBSyxlQUFTLEVBQUMsWUFBZjtBQUFBLGdCQUNFLENBQUMsSUFBRCxFQUFPLElBQVAsRUFBYSxJQUFiLEVBQW1CLElBQW5CLEVBQXlCLEtBQXpCLEVBQWdDQyxHQUFoQyxDQUFvQyxVQUFBQSxHQUFHO0FBQUEsNEJBQ3ZDLHVEQUFDLHVEQUFEO0FBQ0MsZ0JBQU0sRUFBRUgsU0FBUyxLQUFLRyxHQUR2QjtBQUdDLGlCQUFPLEVBQUU7QUFBQSxtQkFBTUYsWUFBWSxDQUFDRSxHQUFELENBQW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x0XHRcdFx0PEZvcm0uQ2hlY2tcblx0XHRcdFx0XHRjaGVja2VkPXt1d092ZXJsYXl9XG5cdFx0XHRcdFx0aWQ9XCJ0b2dnbGUtdXctb3ZlcmxheVwiXG5cdFx0XHRcdFx0aW5saW5lXG5cdFx0XHRcdFx0b25DaGFuZ2U9e2UgPT4gc2V0VVdPdmVybGF5KGUudGFyZ2V0LmNoZWNrZWQpfVxuXHRcdFx0XHRcdHR5cGU9XCJjaGVja2JveFwiXG5cdFx0XHRcdC8+XG5cdFx0XHRcdDxGb3JtLkxhYmVsIGNsYXNzTmFtZT1cIm10LTBcIiBodG1sRm9yPVwidG9nZ2xlLXV3LW92ZXJsYXlcIj5cblx0XHRcdFx0XHR7dCgnbWFwLnV3T3ZlcmxheScpfVxuXHRcdFx0XHQ8L0Zvcm0uTGFiZWw+XG5cdFx0XHQ8L2Rpdj5cblx0XHQ6IG51bGx9XG5cdDwvZGl2Pjtcbn07XG5cbkJ1dHRvbnMucHJvcFR5cGVzID0ge1xuXHRzZXRVV092ZXJsYXk6IFByb3BUeXBlcy5mdW5jLFxuXHR1d092ZXJsYXk6IFByb3BUeXBlcy5ib29sLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQnV0dG9ucztcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkJ1dHRvbiIsIkZvcm0iLCJ1c2VUcmFuc2xhdGlvbiIsInVzZU9wZW5TZWFkcmFnb24iLCJCdXR0b25zIiwic2V0VVdPdmVybGF5IiwidXdPdmVybGF5IiwiYWN0aXZlTWFwIiwic2V0QWN0aXZlTWFwIiwidCIsIm1hcCIsImUiLCJ0YXJnZXQiLCJjaGVja2VkIiwicHJvcFR5cGVzIiwiZnVuYyIsImJvb2wiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/map/Buttons.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Item.js": -/*!*********************************************!*\ - !*** ./resources/js/components/map/Item.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 prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _techniques_Rulesets__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../techniques/Rulesets */ \"./resources/js/components/techniques/Rulesets.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Item = function Item(_ref) {\n var pin = _ref.pin;\n\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__.useOpenSeadragon)(),\n viewer = _useOpenSeadragon.viewer;\n\n var _useSearchParams = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useSearchParams)(),\n _useSearchParams2 = _slicedToArray(_useSearchParams, 2),\n setSearchParams = _useSearchParams2[1];\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.useTranslation)(),\n t = _useTranslation.t;\n\n var goToLocation = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (pin) {\n setSearchParams({\n x: pin.x,\n y: pin.y,\n z: 4\n });\n\n if (viewer && viewer.element) {\n viewer.element.scrollIntoView();\n }\n }, [viewer]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"li\", {\n className: \"d-flex align-items-start justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"div\", {\n className: \"flex-grow-1\",\n children: pin.technique.type === 'location' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"h2\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(pin.technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"p\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(pin.technique, 'short', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n }), (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.hasRelations)(pin.technique, 'related') ? (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.sorted)((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getRelations)(pin.technique, 'related')).map(function (r) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"d-flex align-items-start justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"me-auto\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"h3\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.Link, {\n to: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getLink)(r),\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(r, 'title', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"p\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(r, 'short', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n })]\n }), r.rulesets ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_techniques_Rulesets__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n technique: r\n }) : null]\n }, r.id);\n }) : null]\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"d-flex align-items-start justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(\"div\", {\n className: \"flex-grow-1\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"h2\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.Link, {\n to: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getLink)(pin.technique),\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(pin.technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"p\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(pin.technique, 'short', _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].language)\n })]\n }), pin.technique.rulesets ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_techniques_Rulesets__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n technique: pin.technique\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n className: \"m-2\",\n onClick: function onClick() {\n return goToLocation(pin);\n },\n title: t('map.goToLocation'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].CROSSHAIRS, {\n title: \"\"\n })\n })]\n });\n};\n\nItem.propTypes = {\n pin: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n technique: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n rulesets: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)\n }),\n x: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number),\n y: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Item);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset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eXBlcy5zdHJpbmcsXG5cdFx0fSksXG5cdFx0eDogUHJvcFR5cGVzLm51bWJlcixcblx0XHR5OiBQcm9wVHlwZXMubnVtYmVyLFxuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEl0ZW07XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJ1c2VUcmFuc2xhdGlvbiIsIkxpbmsiLCJ1c2VTZWFyY2hQYXJhbXMiLCJ1c2VPcGVuU2VhZHJhZ29uIiwiSWNvbiIsIlJ1bGVzZXRzIiwiZ2V0TGluayIsImdldFJlbGF0aW9ucyIsImdldFRyYW5zbGF0aW9uIiwiaGFzUmVsYXRpb25zIiwic29ydGVkIiwiaTE4biIsIkl0ZW0iLCJwaW4iLCJ2aWV3ZXIiLCJzZXRTZWFyY2hQYXJhbXMiLCJ0IiwiZ29Ub0xvY2F0aW9uIiwidXNlQ2FsbGJhY2siLCJ4IiwieSIsInoiLCJlbGVtZW50Iiwic2Nyb2xsSW50b1ZpZXciLCJ0ZWNobmlxdWUiLCJ0eXBlIiwibGFuZ3VhZ2UiLCJtYXAiLCJyIiwicnVsZXNldHMiLCJpZCIsInByb3BUeXBlcyIsInNoYXBlIiwic3RyaW5nIiwibnVtYmVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/map/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/List.js": -/*!*********************************************!*\ - !*** ./resources/js/components/map/List.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/map/Item.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\nvar List = function List() {\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_2__.useOpenSeadragon)(),\n pins = _useOpenSeadragon.pins;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.useTranslation)(),\n t = _useTranslation.t;\n\n var sortedPins = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n var compare = (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_3__.compareTranslation)('title', _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language);\n return pins.sort(function (a, b) {\n return compare(a.technique, b.technique);\n });\n }, [pins, _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].language]);\n if (!pins || !pins.length) return null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"mt-3\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"h2\", {\n children: t('map.onThisMap')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"ul\", {\n className: \"pin-list\",\n children: sortedPins.map(function (pin) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n pin: pin\n }, pin.id);\n })\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvTGlzdC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7OztBQUVBLElBQU1PLElBQUksR0FBRyxTQUFQQSxJQUFPLEdBQU07QUFDbEIsMEJBQWlCSCxnRUFBZ0IsRUFBakM7QUFBQSxNQUFRSSxJQUFSLHFCQUFRQSxJQUFSOztBQUNBLHdCQUFjTiw2REFBYyxFQUE1QjtBQUFBLE1BQVFPLENBQVIsbUJBQVFBLENBQVI7O0FBRUEsTUFBTUMsVUFBVSxHQUFHViwwQ0FBQSxDQUFjLFlBQU07QUFDdEMsUUFBTVksT0FBTyxHQUFHUCxzRUFBa0IsQ0FBQyxPQUFELEVBQVVDLHNEQUFWLENBQWxDO0FBQ0EsV0FBT0UsSUFBSSxDQUFDTSxJQUFMLENBQVUsVUFBQ0MsQ0FBRCxFQUFJQyxDQUFKO0FBQUEsYUFBVUosT0FBTyxDQUFDRyxDQUFDLENBQUNFLFNBQUgsRUFBY0QsQ0FBQ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ndWFnZSIsInNvcnQiLCJhIiwiYiIsInRlY2huaXF1ZSIsImxlbmd0aCIsIm1hcCIsInBpbiIsImlkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/map/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/OpenSeadragon.js": -/*!******************************************************!*\ - !*** ./resources/js/components/map/OpenSeadragon.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 */ \"Context\": () => (/* binding */ Context),\n/* harmony export */ \"Provider\": () => (/* binding */ Provider),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"useOpenSeadragon\": () => (/* binding */ useOpenSeadragon)\n/* harmony export */ });\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var openseadragon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! openseadragon */ \"./node_modules/openseadragon/build/openseadragon/openseadragon.js\");\n/* harmony import */ var openseadragon__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(openseadragon__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\nvar Context = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createContext({});\nvar useOpenSeadragon = function useOpenSeadragon() {\n return react__WEBPACK_IMPORTED_MODULE_2__.useContext(Context);\n};\nvar Provider = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function (_ref, ref) {\n var children = _ref.children;\n\n var _useParams = (0,react_router__WEBPACK_IMPORTED_MODULE_4__.useParams)(),\n activeMap = _useParams.activeMap;\n\n var navigate = (0,react_router__WEBPACK_IMPORTED_MODULE_4__.useNavigate)();\n\n var _useSearchParams = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useSearchParams)(),\n _useSearchParams2 = _slicedToArray(_useSearchParams, 2),\n searchParams = _useSearchParams2[0],\n setSearchParams = _useSearchParams2[1];\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState([]),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n pins = _React$useState2[0],\n setPins = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_2__.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n viewer = _React$useState4[0],\n setViewer = _React$useState4[1];\n\n var storePosition = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () {\n if (!viewer || !viewer.viewport) return;\n var center = viewer.viewport.getCenter();\n var zoom = viewer.viewport.getZoom();\n setSearchParams({\n x: center.x,\n y: center.y,\n z: zoom\n }, {\n replace: true\n });\n }, [setSearchParams, viewer]);\n var setActiveMap = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (map) {\n if (viewer && viewer.viewport) {\n var center = viewer.viewport.getCenter();\n var zoom = viewer.viewport.getZoom();\n var params = {\n x: center.x,\n y: center.y,\n z: zoom\n };\n navigate({\n pathname: \"../\".concat(map),\n search: \"?\".concat((0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.createSearchParams)(params))\n }, {\n replace: true\n });\n } else {\n navigate(\"../\".concat(map), {\n replace: true\n });\n }\n }, [navigate, viewer]);\n react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () {\n if (!viewer || !viewer.viewport) return;\n\n if (searchParams.has('x') && searchParams.has('y')) {\n viewer.viewport.panTo(new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().Point)(parseFloat(searchParams.get('x')), parseFloat(searchParams.get('y'))));\n }\n\n if (searchParams.has('z')) {\n viewer.viewport.zoomTo(parseFloat(searchParams.get('z')));\n }\n }, [searchParams, viewer]);\n react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () {\n if (!ref.current) return;\n var v = openseadragon__WEBPACK_IMPORTED_MODULE_1___default()({\n element: ref.current,\n preserveViewport: true,\n sequenceMode: true,\n showNavigator: true,\n showNavigationControl: false,\n showSequenceControl: false,\n tileSources: [new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().DziTileSource)({\n width: 8192,\n height: 8192,\n tileSize: 256,\n tileOverlap: 0,\n minLevel: 8,\n maxLevel: 13,\n tilesUrl: '/media/alttp/map/lw_files/',\n fileFormat: 'png'\n }), new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().DziTileSource)({\n width: 8192,\n height: 8192,\n tileSize: 256,\n tileOverlap: 0,\n minLevel: 8,\n maxLevel: 13,\n tilesUrl: '/media/alttp/map/dw_files/',\n fileFormat: 'png'\n }), new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().DziTileSource)({\n width: 8192,\n height: 4096,\n tileSize: 256,\n tileOverlap: 0,\n minLevel: 8,\n maxLevel: 13,\n tilesUrl: '/media/alttp/map/sp_files/',\n fileFormat: 'png'\n }), new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().DziTileSource)({\n width: 16384,\n height: 16384,\n tileSize: 256,\n tileOverlap: 0,\n minLevel: 8,\n maxLevel: 14,\n tilesUrl: '/media/alttp/map/uw_files/',\n fileFormat: 'png'\n }), new (openseadragon__WEBPACK_IMPORTED_MODULE_1___default().DziTileSource)({\n width: 16384,\n height: 3072,\n tileSize: 256,\n tileOverlap: 0,\n minLevel: 8,\n maxLevel: 14,\n tilesUrl: '/media/alttp/map/uw2_files/',\n fileFormat: 'png'\n })]\n });\n v.addHandler('canvas-nonprimary-press', function (e) {\n if (e.button === 3) {\n navigate(-1);\n } else if (e.button === 4) {\n navigate(1);\n }\n });\n setViewer(v);\n return function () {\n v.destroy();\n };\n }, [ref.current]);\n react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () {\n if (!viewer) return;\n\n switch (activeMap) {\n case 'lw':\n viewer.goToPage(0);\n break;\n\n case 'dw':\n viewer.goToPage(1);\n break;\n\n case 'sp':\n viewer.goToPage(2);\n break;\n\n case 'uw':\n viewer.goToPage(3);\n break;\n\n case 'uw2':\n viewer.goToPage(4);\n break;\n }\n\n var controller = new AbortController();\n axios__WEBPACK_IMPORTED_MODULE_0___default().get(\"/api/markers/\".concat(activeMap), {\n signal: controller.signal\n }).then(function (response) {\n setPins(response.data || []);\n })[\"catch\"](function (e) {\n if (!axios__WEBPACK_IMPORTED_MODULE_0___default().isCancel(e)) {\n console.error(e);\n }\n });\n return function () {\n controller.abort();\n };\n }, [activeMap, viewer]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(Context.Provider, {\n value: {\n activeMap: activeMap,\n pins: pins,\n setActiveMap: setActiveMap,\n storePosition: storePosition,\n viewer: viewer\n },\n children: children\n });\n});\nProvider.displayName = 'OpenSeadragonProvider';\nProvider.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvT3BlblNlYWRyYWdvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FB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pbnQiLCJwYXJzZUZsb2F0IiwiZ2V0Iiwiem9vbVRvIiwiY3VycmVudCIsInYiLCJlbGVtZW50IiwicHJlc2VydmVWaWV3cG9ydCIsInNlcXVlbmNlTW9kZSIsInNob3dOYXZpZ2F0b3IiLCJzaG93TmF2aWdhdGlvbkNvbnRyb2wiLCJzaG93U2VxdWVuY2VDb250cm9sIiwidGlsZVNvdXJjZXMiLCJEemlUaWxlU291cmNlIiwid2lkdGgiLCJoZWlnaHQiLCJ0aWxlU2l6ZSIsInRpbGVPdmVybGFwIiwibWluTGV2ZWwiLCJtYXhMZXZlbCIsInRpbGVzVXJsIiwiZmlsZUZvcm1hdCIsImFkZEhhbmRsZXIiLCJlIiwiYnV0dG9uIiwiZGVzdHJveSIsImdvVG9QYWdlIiwiY29udHJvbGxlciIsIkFib3J0Q29udHJvbGxlciIsInNpZ25hbCIsInRoZW4iLCJyZXNwb25zZSIsImRhdGEiLCJpc0NhbmNlbCIsImNvbnNvbGUiLCJlcnJvciIsImFib3J0IiwiZGlzcGxheU5hbWUiLCJwcm9wVHlwZXMiLCJub2RlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/map/OpenSeadragon.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Overlay.js": -/*!************************************************!*\ - !*** ./resources/js/components/map/Overlay.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 openseadragon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! openseadragon */ \"./node_modules/openseadragon/build/openseadragon/openseadragon.js\");\n/* harmony import */ var openseadragon__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(openseadragon__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ \"./node_modules/react-dom/index.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\nvar Overlay = function Overlay(_ref) {\n var children = _ref.children,\n height = _ref.height,\n onClick = _ref.onClick,\n page = _ref.page,\n width = _ref.width,\n x = _ref.x,\n y = _ref.y;\n\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_3__.useOpenSeadragon)(),\n viewer = _useOpenSeadragon.viewer;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__.useState(document.createElement('div')),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n element = _React$useState2[0];\n\n react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () {\n if (!viewer) return;\n\n var add = function add() {\n if (width && height) {\n viewer.addOverlay(element, new (openseadragon__WEBPACK_IMPORTED_MODULE_0___default().Rect)(x, y, width, height));\n } else {\n viewer.addOverlay(element, new (openseadragon__WEBPACK_IMPORTED_MODULE_0___default().Point)(x, y), (openseadragon__WEBPACK_IMPORTED_MODULE_0___default().Placement.CENTER));\n }\n\n if (onClick) {\n new (openseadragon__WEBPACK_IMPORTED_MODULE_0___default().MouseTracker)({\n element: element,\n clickHandler: onClick\n });\n }\n };\n\n var addPage = function addPage() {\n if (viewer.currentPage() === page) {\n add();\n }\n };\n\n if (typeof page !== 'undefined') {\n viewer.addHandler('page', addPage);\n return function () {\n viewer.removeHandler('page', addPage);\n\n try {\n viewer.removeOverlay(element);\n } catch (e) {\n // bug in OSD?\n console.error(e);\n }\n };\n }\n\n if (viewer.isOpen()) {\n add();\n } else {\n viewer.addHandler('open', add);\n return function () {\n viewer.removeHandler('open', add);\n\n try {\n viewer.removeOverlay(element);\n } catch (e) {\n // bug in OSD?\n console.error(e);\n }\n };\n }\n }, [onClick, height, page, viewer, width, x, y]);\n return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)(children, element);\n};\n\nOverlay.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),\n height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),\n onClick: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n page: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),\n width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),\n x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),\n y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overlay);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvT3ZlcmxheS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7O0FBRUEsSUFBTUssT0FBTyxHQUFHLFNBQVZBLE9BQVUsT0FBc0Q7QUFBQSxNQUFuREMsUUFBbUQsUUFBbkRBLFFBQW1EO0FBQUEsTUFBekNDLE1BQXlDLFFBQXpDQSxNQUF5QztBQUFBLE1BQWpDQyxPQUFpQyxRQUFqQ0EsT0FBaUM7QUFBQSxNQUF4QkMsSUFBd0IsUUFBeEJBLElBQXdCO0FBQUEsTUFBbEJDLEtBQWtCLFFBQWxCQSxLQUFrQjtBQUFBLE1BQVhDLENBQVcsUUFBWEEsQ0FBVztBQUFBLE1BQVJDLENBQVEsUUFBUkEsQ0FBUTs7QUFDckUsMEJBQW1CUixnRUFBZ0IsRUFBbkM7QUFBQSxNQUFRUyxNQUFSLHFCQUFRQSxNQUFSOztBQUNBLHdCQUFrQlgsMkNBQUEsQ0FBZWEsUUFBUSxDQUFDQ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NlT3BlblNlYWRyYWdvbiIsIk92ZXJsYXkiLCJjaGlsZHJlbiIsImhlaWdodCIsIm9uQ2xpY2siLCJwYWdlIiwid2lkdGgiLCJ4IiwieSIsInZpZXdlciIsInVzZVN0YXRlIiwiZG9jdW1lbnQiLCJjcmVhdGVFbGVtZW50IiwiZWxlbWVudCIsInVzZUVmZmVjdCIsImFkZCIsImFkZE92ZXJsYXkiLCJSZWN0IiwiUG9pbnQiLCJQbGFjZW1lbnQiLCJDRU5URVIiLCJNb3VzZVRyYWNrZXIiLCJjbGlja0hhbmRsZXIiLCJhZGRQYWdlIiwiY3VycmVudFBhZ2UiLCJhZGRIYW5kbGVyIiwicmVtb3ZlSGFuZGxlciIsInJlbW92ZU92ZXJsYXkiLCJlIiwiY29uc29sZSIsImVycm9yIiwiaXNPcGVuIiwicHJvcFR5cGVzIiwibm9kZSIsIm51bWJlciIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/map/Overlay.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Pin.js": -/*!********************************************!*\ - !*** ./resources/js/components/map/Pin.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 prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Overlay */ \"./resources/js/components/map/Overlay.js\");\n/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Popover */ \"./resources/js/components/map/Popover.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/ZeldaIcon */ \"./resources/js/components/common/ZeldaIcon.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Pin = function Pin(_ref) {\n var pin = _ref.pin;\n\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__.useOpenSeadragon)(),\n storePosition = _useOpenSeadragon.storePosition;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n showPopover = _React$useState2[0],\n setShowPopover = _React$useState2[1];\n\n var ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_9__.useNavigate)();\n var onClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (e) {\n if (ref.current && ref.current.contains(e.originalTarget)) {\n if (e.originalTarget.tagName === 'A') {\n storePosition();\n navigate(new URL(e.originalTarget.href).pathname);\n }\n } else {\n if (pin.technique.type === 'location') {\n setShowPopover(function (s) {\n return !s;\n });\n } else {\n storePosition();\n navigate((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_6__.getLink)(pin.technique));\n }\n }\n }, [pin]);\n var title = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {\n return (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_6__.getTranslation)(pin.technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].language);\n }, [pin, _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].language]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Overlay__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n onClick: onClick,\n x: pin.x,\n y: pin.y,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"div\", {\n className: \"map-pin\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_10__.Link, {\n to: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_6__.getLink)(pin.technique),\n children: pin.marker ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n title: title,\n name: pin.marker\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].PIN, {\n title: title\n })\n }), pin.technique.type === 'location' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n ref: ref,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Popover__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n show: showPopover,\n technique: pin.technique\n })\n }) : null]\n })\n });\n};\n\nPin.propTypes = {\n pin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n marker: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),\n technique: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({\n type: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)\n }),\n x: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),\n y: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Pin);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvUGluLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNWSxHQUFHLEdBQUcsU0FBTkEsR0FBTSxPQUFhO0FBQUEsTUFBVkMsR0FBVSxRQUFWQSxHQUFVOztBQUN4QiwwQkFBMEJULGdFQUFnQixFQUExQztBQUFBLE1BQVFVLGFBQVIscUJBQVFBLGFBQVI7O0FBQ0Esd0JBQXNDYiwyQ0FBQSxDQUFlLEtBQWYsQ0FBdEM7QUFBQTtBQUFBLE1BQU9lLFdBQVA7QUFBQSxNQUFvQkMsY0FBcEI7O0FBQ0EsTUFBTUMsR0FBRyxHQUFHakIseUNBQUEsRUFBWjtBQUVBLE1BQU1tQixRQUFRLEdBQUdqQiw2REFBVyxFQUE1QjtBQUVBLE1BQU1rQixPQUFPLEdBQUdwQiw4Q0FBQSxDQUFrQixVQUFDc0IsQ0FBRCxFQUFPO0FBQ3hDLFFBQUlMLEdBQUcsQ0FBQ00sT0FBSixJQUFlTixHQUFHLENBQUNNLE9BQUosQ0FBWUMsUUFBWixDQUFxQkYsQ0FBQyxDQUFDRyxjQUF2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cFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJudW1iZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/map/Pin.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Pins.js": -/*!*********************************************!*\ - !*** ./resources/js/components/map/Pins.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var _Pin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Pin */ \"./resources/js/components/map/Pin.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar Pins = function Pins() {\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_1__.useOpenSeadragon)(),\n pins = _useOpenSeadragon.pins;\n\n return pins.map(function (pin) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Pin__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n pin: pin\n }, pin.id);\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Pins);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvUGlucy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBO0FBRUE7QUFDQTs7O0FBRUEsSUFBTUcsSUFBSSxHQUFHLFNBQVBBLElBQU8sR0FBTTtBQUNsQiwwQkFBaUJGLGdFQUFnQixFQUFqQztBQUFBLE1BQVFHLElBQVIscUJBQVFBLElBQVI7O0FBRUEsU0FBT0EsSUFBSSxDQUFDQyxHQUFMLENBQVMsVUFBQUMsR0FBRztBQUFBLHdCQUNsQix1REFBQyw0Q0FBRDtBQUFrQixTQUFHLEVBQUVBO0FBQXZCLE9BQVVBLEdBQUcsQ0FBQ0MsRUFBZCxDQURrQjtBQUFBLEdBQVosQ0FBUDtBQUdBLENBTkQ7O0FBUUEsaUVBQWVKLElBQWYiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvUGlucy5qcz9hZDNjIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IHVzZU9wZW5TZWFkcmFnb24gfSBmcm9tICcuL09wZW5TZWFkcmFnb24nO1xuaW1wb3J0IFBpbiBmcm9tICcuL1Bpbic7XG5cbmNvbnN0IFBpbnMgPSAoKSA9PiB7XG5cdGNvbnN0IHsgcGlucyB9ID0gdXNlT3BlblNlYWRyYWdvbigpO1xuXG5cdHJldHVybiBwaW5zLm1hcChwaW4gPT5cblx0XHQ8UGluIGtleT17cGluLmlkfSBwaW49e3Bpbn0gLz5cblx0KTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFBpbnM7XG4iXSwibmFtZXMiOlsiUmVhY3QiLCJ1c2VPcGVuU2VhZHJhZ29uIiwiUGluIiwiUGlucyIsInBpbnMiLCJtYXAiLCJwaW4iLCJpZCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/map/Pins.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/Popover.js": -/*!************************************************!*\ - !*** ./resources/js/components/map/Popover.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Card.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/ZeldaIcon */ \"./resources/js/components/common/ZeldaIcon.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\nvar Popover = function Popover(_ref) {\n var show = _ref.show,\n technique = _ref.technique;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n className: \"map-popover \".concat(show ? 'shown' : 'hidden'),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n bg: \"dark\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Header, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Title, {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language)\n })\n }), technique[\"short\"] ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Text, {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(technique, 'short', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language)\n })\n }) : null, (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.hasRelations)(technique, 'related') ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n variant: \"flush\",\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.sorted)((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getRelations)(technique, 'related')).map(function (r) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Item, {\n title: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(r, 'short', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.Link, {\n to: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getLink)(r),\n children: [r.title_icons ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"span\", {\n className: \"tech-title-icons\",\n children: r.title_icons.map(function (icon) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: icon\n }, icon);\n })\n }) : null, (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(r, 'title', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language)]\n })\n }, r.id);\n })\n }) : null]\n })\n });\n};\n\nPopover.propTypes = {\n show: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),\n technique: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n \"short\": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Popover);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvUG9wb3Zlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O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QgZGVmYXVsdCBQb3BvdmVyO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiQ2FyZCIsIkxpc3RHcm91cCIsIkxpbmsiLCJaZWxkYUljb24iLCJnZXRMaW5rIiwiZ2V0UmVsYXRpb25zIiwiZ2V0VHJhbnNsYXRpb24iLCJoYXNSZWxhdGlvbnMiLCJzb3J0ZWQiLCJpMThuIiwiUG9wb3ZlciIsInNob3ciLCJ0ZWNobmlxdWUiLCJsYW5ndWFnZSIsIm1hcCIsInIiLCJ0aXRsZV9pY29ucyIsImljb24iLCJpZCIsInByb3BUeXBlcyIsImJvb2wiLCJzaGFwZSIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/map/Popover.js\n"); - -/***/ }), - -/***/ "./resources/js/components/map/UWSuperTiles.js": -/*!*****************************************************!*\ - !*** ./resources/js/components/map/UWSuperTiles.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Overlay */ \"./resources/js/components/map/Overlay.js\");\n/* harmony import */ var _OpenSeadragon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\nvar dropMap = {\n '00': '10',\n '03': '02',\n '05': '05',\n '06': '05',\n '07': '17',\n '08': '07',\n '09': '4B',\n '0A': '09',\n '0B': '6A',\n '0D': '0B',\n '0F': '01',\n '10': '01',\n '12': '0D',\n '13': '0D',\n '14': '0D',\n '17': '27',\n '18': '12',\n '19': '07',\n '1E': '3E',\n '20': '01',\n '21': '0D',\n '22': '0D',\n '23': '0D',\n '24': '08',\n '27': '31',\n '29': '07',\n '2A': '07',\n '2C': '12',\n '2D': '06',\n '2E': '06',\n '2F': '02',\n '31': '77',\n '33': '08',\n '35': '08',\n '36': '08',\n '37': '08',\n '39': '29',\n '3A': '0A',\n '3C': '0E',\n '3D': '96',\n '43': '0A',\n '44': '0A',\n '46': '09',\n '47': '07',\n '48': '07',\n '49': '07',\n '4B': '09',\n '4D': 'A6',\n '4F': 'BE',\n '54': '34',\n '55': '09',\n '56': '09',\n '57': '09',\n '58': '09',\n '59': '07',\n '5A': '0E',\n '5B': '0E',\n '5E': '7E',\n '65': 'AC',\n '67': '09',\n '68': '07',\n '6D': '0B',\n '73': '05',\n '74': '05',\n '75': '08',\n '77': 'A7',\n '78': '9D',\n '79': '9D',\n '7A': '9D',\n '7B': '9D',\n '7C': '0E',\n '7D': '9B',\n '7E': '9E',\n '81': '05',\n '82': '05',\n '83': '05',\n '84': '05',\n '85': '05',\n '88': 'A9',\n '89': 'A9',\n '8A': '0E',\n '8B': '0E',\n '8C': '1C',\n '8D': '0B',\n '8F': '0C',\n '90': '0C',\n '92': '0C',\n '94': '0E',\n '95': '0E',\n '97': 'D1',\n '9A': '7D',\n '9B': '7D',\n '9C': '0E',\n '9D': '7B',\n '9E': 'BE',\n '9F': '0C',\n 'A1': '0C',\n 'A3': '0C',\n 'A4': '0E',\n 'A7': '17',\n 'A8': '05',\n 'A9': '89',\n 'AA': '0A',\n 'AC': '0B',\n 'AF': '02',\n 'B1': 'B2',\n 'B2': '0C',\n 'B3': '0D',\n 'B7': '0D',\n 'B8': '05',\n 'B9': '05',\n 'BA': '0A',\n 'BB': '0A',\n 'BD': '4F',\n 'BE': '4F',\n 'BF': '02',\n 'C1': '0C',\n 'C2': '0C',\n 'C3': '0D',\n 'C5': '0D',\n 'C6': '0D',\n 'C7': '05',\n 'C8': '05',\n 'C9': '0A',\n 'CA': '0B',\n 'CB': '0B',\n 'CC': '0B',\n 'CD': 'DE',\n 'CE': 'DE',\n 'D1': 'B1',\n 'D3': '05',\n 'D4': '05',\n 'D5': '0D',\n 'D6': '0D',\n 'D7': '05',\n 'D8': '05',\n 'D9': '05',\n 'DB': '0B',\n 'DC': '0B',\n 'DD': '06',\n 'DE': '06',\n 'E1': '06',\n 'E2': '06',\n 'E3': '14',\n 'E4': '06',\n 'E5': '06',\n 'E6': '06',\n 'E7': '06',\n 'E8': 'F8',\n 'E9': 'FA',\n 'EA': 'FA',\n 'EB': 'FB',\n 'EC': 'FD',\n 'ED': 'FD',\n 'EE': 'FE',\n 'EF': 'FF',\n 'F0': '06',\n 'F1': '06',\n 'F4': '06',\n 'F5': '06',\n 'F9': '06',\n 'FE': '06'\n};\nvar strongEG = ['08', '0C', '15', '2F', '40', '51', '52', '59', '5B', '60', '62', '66', '71', '72', '81', 'A2', 'A8', 'A9', 'AA', 'B2', 'B3', 'B9', 'C2', 'C3', 'CB', 'CC', 'DB', 'DC', 'DF', 'E1', 'E3', 'FA'];\nvar weakEG = ['07', '0A', '16', '28', '2A', '2B', '34', '35', '36', '37', '3A', '4D', '55', '61', '76', '99', 'A0', 'C9', 'E2', 'E4', 'F0', 'FD', 'FE'];\nvar kick = ['1B', '29', '3E', '43', '97'];\nvar dark = ['0B', '19', '21', '22', '32', '41', '42', '69', '6A', '92', '93', 'B5', 'BA', 'C0', 'D0', 'E5', 'E6', 'E7', 'F0', 'F1'];\nvar camera = {\n '00': ['x', 'y'],\n '01': ['y'],\n '02': ['y'],\n '07': ['x', 'y'],\n '0A': ['x', 'y'],\n '0C': ['x', 'y'],\n '0D': ['x', 'y'],\n '0E': ['yu'],\n '10': ['x'],\n '11': ['x'],\n '12': ['x', 'y'],\n '13': ['x'],\n '14': ['x', 'y'],\n '15': ['x', 'y'],\n '16': ['y'],\n '17': ['x', 'y'],\n '18': ['x'],\n '19': ['xr'],\n '1A': ['xl'],\n '1B': ['yu'],\n '1D': ['y'],\n '1F': ['yu'],\n '20': ['x', 'y'],\n '21': ['y'],\n '22': ['y'],\n '26': ['yd'],\n '27': ['x', 'y'],\n '28': ['x', 'y'],\n '2A': ['x', 'y'],\n '2B': ['xl'],\n '2F': ['yd'],\n '31': ['yu'],\n '32': ['x', 'y'],\n '34': ['x', 'y'],\n '35': ['y'],\n '36': ['x', 'y'],\n '37': ['y'],\n '38': ['x'],\n '39': ['yu'],\n '3A': ['x', 'y'],\n '3B': ['x'],\n '3C': ['x', 'y'],\n '3E': ['yd'],\n '3F': ['yu'],\n '40': ['xl'],\n '41': ['x', 'y'],\n '42': ['y'],\n '43': ['yu'],\n '44': ['xr'],\n '45': ['xr'],\n '46': ['y'],\n '49': ['xr'],\n '4A': ['y'],\n '4B': ['yd'],\n '4C': ['x'],\n '4D': ['x', 'y'],\n '4E': ['yd'],\n '50': ['x'],\n '51': ['x', 'y'],\n '52': ['xl', 'yd'],\n '53': ['xr'],\n '54': ['x', 'y'],\n '55': ['y'],\n '56': ['xr'],\n '58': ['xr'],\n '59': ['x'],\n '5B': ['x'],\n '5C': ['yu'],\n '60': ['x'],\n '61': ['x', 'y'],\n '62': ['x', 'y'],\n '63': ['xr'],\n '64': ['yu'],\n '65': ['yu'],\n '66': ['yd'],\n '67': ['x'],\n '68': ['x', 'y'],\n '6A': ['x'],\n '6B': ['yu'],\n '6D': ['xr'],\n '72': ['y'],\n '74': ['y'],\n '75': ['xr'],\n '76': ['xl'],\n '77': ['x', 'y'],\n '7B': ['yu'],\n '7C': ['x'],\n '7D': ['yu'],\n '7E': ['xr'],\n '7F': ['xr'],\n '80': ['y'],\n '81': ['x', 'y'],\n '82': ['x', 'y'],\n '83': ['xr'],\n '84': ['x', 'y'],\n '85': ['xl'],\n '89': ['y'],\n '8B': ['xl'],\n '8D': ['xr'],\n '91': ['x'],\n '92': ['xr'],\n '93': ['yu'],\n '95': ['x'],\n '96': ['xl'],\n '97': ['xr'],\n '98': ['yd'],\n '99': ['yd'],\n '9B': ['yd'],\n '9C': ['x', 'y'],\n '9D': ['yd'],\n 'A0': ['y'],\n 'A1': ['xr', 'yu'],\n 'A2': ['x', 'y'],\n 'A3': ['x'],\n 'A5': ['yd'],\n 'A6': ['x', 'y'],\n 'A7': ['yd'],\n 'A8': ['xr'],\n 'A9': ['x', 'y'],\n 'AA': ['xl'],\n 'B1': ['xr'],\n 'B2': ['yu'],\n 'B3': ['x'],\n 'B4': ['x', 'y'],\n 'B5': ['x', 'y'],\n 'B7': ['x'],\n 'B8': ['x'],\n 'B9': ['x', 'y'],\n 'BB': ['xl'],\n 'BC': ['xr'],\n 'BE': ['xl'],\n 'C0': ['xl'],\n 'C2': ['x', 'y'],\n 'C3': ['x'],\n 'C4': ['x', 'y'],\n 'C5': ['x'],\n 'C6': ['x', 'y'],\n 'C7': ['x', 'y'],\n 'C9': ['y'],\n 'CB': ['x', 'y'],\n 'CC': ['x', 'y'],\n 'D0': ['xl'],\n 'D2': ['xr'],\n 'D5': ['x'],\n 'D6': ['x'],\n 'D8': ['xl'],\n 'D9': ['yu'],\n 'DA': ['yu'],\n 'DB': ['x', 'y'],\n 'DC': ['x', 'y'],\n 'DF': ['yd'],\n 'E1': ['x'],\n 'E2': ['x'],\n 'E4': ['x'],\n 'E5': ['x', 'y'],\n 'E6': ['xr', 'yd'],\n 'E7': ['xr', 'yu'],\n 'E8': ['x', 'yu'],\n 'EA': ['xl', 'yu'],\n 'EB': ['x'],\n 'ED': ['x', 'yu'],\n 'EE': ['x', 'y'],\n 'EF': ['yd'],\n 'F0': ['x', 'y'],\n 'F1': ['x', 'y'],\n 'F8': ['x', 'y'],\n 'F9': ['xr', 'yd'],\n 'FA': ['x', 'y'],\n 'FB': ['xr', 'yd'],\n 'FD': ['x', 'y'],\n 'FE': ['xr'],\n 'FF': ['yd']\n};\n\nvar getClassName = function getClassName(key) {\n var classNames = [];\n\n if (strongEG.includes(key)) {\n classNames.push('strong-eg');\n }\n\n if (weakEG.includes(key)) {\n classNames.push('weak-eg');\n }\n\n if (kick.includes(key)) {\n classNames.push('kick');\n }\n\n if (dark.includes(key)) {\n classNames.push('dark');\n }\n\n if (camera[key]) {\n camera[key].forEach(function (c) {\n classNames.push(\"cam-\".concat(c));\n });\n }\n\n return classNames.join(' ');\n};\n\nvar UWSuperTiles = function UWSuperTiles(_ref) {\n var show = _ref.show;\n\n var _useOpenSeadragon = (0,_OpenSeadragon__WEBPACK_IMPORTED_MODULE_2__.useOpenSeadragon)(),\n storePosition = _useOpenSeadragon.storePosition,\n viewer = _useOpenSeadragon.viewer;\n\n var _useSearchParams = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_4__.useSearchParams)(),\n _useSearchParams2 = _slicedToArray(_useSearchParams, 2),\n setSearchParams = _useSearchParams2[1];\n\n var onClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (e) {\n if (e.originalTarget.tagName !== 'A') return;\n if (e.originalTarget.className !== 'cell-link') return;\n var key = e.originalTarget.dataset.key;\n var x = (parseInt(key[1], 16) + 0.5) / 16;\n var y = (parseInt(key[0], 16) + 0.5) / 16;\n\n if (viewer && viewer.viewport) {\n storePosition();\n setSearchParams({\n x: x,\n y: y,\n z: 4\n });\n viewer.element.scrollIntoView();\n }\n }, [storePosition, viewer]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Overlay__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onClick: onClick,\n page: 3,\n x: 0,\n y: 0,\n width: 1,\n height: 1,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"uw-super-tiles \".concat(show ? '' : 'd-none'),\n children: _toConsumableArray(Array(16).keys()).map(function (x) {\n return _toConsumableArray(Array(16).keys()).map(function (y) {\n var key = \"\".concat(x.toString(16).toUpperCase()).concat(y.toString(16).toUpperCase());\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(\"div\", {\n className: getClassName(key),\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"p\", {\n className: \"cell-id\",\n children: key\n }), dropMap[key] ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"p\", {\n className: \"cell-drop\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"a\", {\n className: \"cell-link\",\n \"data-key\": dropMap[key],\n children: \"\\u25B6 \".concat(dropMap[key])\n })\n }) : null]\n }, key);\n });\n })\n })\n });\n};\n\nUWSuperTiles.propTypes = {\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UWSuperTiles);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9tYXAvVVdTdXBlclRpbGVzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ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Um9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/map/UWSuperTiles.js\n"); - -/***/ }), - -/***/ "./resources/js/components/protocol/Dialog.js": -/*!****************************************************!*\ - !*** ./resources/js/components/protocol/Dialog.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 prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ \"./resources/js/components/protocol/List.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\n\n\nvar Dialog = /*#__PURE__*/function (_React$Component) {\n _inherits(Dialog, _React$Component);\n\n var _super = _createSuper(Dialog);\n\n function Dialog() {\n _classCallCheck(this, Dialog);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Dialog, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this = this;\n\n this.timer = setInterval(function () {\n _this.forceUpdate();\n }, 30000);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n clearInterval(this.timer);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n onHide = _this$props.onHide,\n protocol = _this$props.protocol,\n show = _this$props.show;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"protocol-dialog\",\n onHide: onHide,\n show: show,\n size: \"lg\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('protocol.heading')\n })\n }), protocol && protocol.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_List__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n protocol: protocol\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n variant: \"info\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('protocol.empty')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('button.close')\n })\n })]\n });\n }\n }]);\n\n return Dialog;\n}(react__WEBPACK_IMPORTED_MODULE_0__.Component);\n\nDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),\n protocol: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({\n type: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)\n })),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)\n};\nDialog.defaultProps = {\n onHide: null,\n protocol: null,\n show: false\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0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BkYXRlIiwiY2xlYXJJbnRlcnZhbCIsInByb3BzIiwib25IaWRlIiwicHJvdG9jb2wiLCJzaG93IiwidCIsImxlbmd0aCIsIkNvbXBvbmVudCIsInByb3BUeXBlcyIsImZ1bmMiLCJhcnJheU9mIiwic2hhcGUiLCJ0eXBlIiwic3RyaW5nIiwiYm9vbCIsImRlZmF1bHRQcm9wcyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/protocol/Dialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/protocol/Item.js": -/*!**************************************************!*\ - !*** ./resources/js/components/protocol/Item.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 moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/Trans.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_Spoiler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/Spoiler */ \"./resources/js/components/common/Spoiler.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Result */ \"./resources/js/helpers/Result.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getEntryDate = function getEntryDate(entry) {\n var dateStr = moment__WEBPACK_IMPORTED_MODULE_0___default()(entry.created_at).fromNow();\n return entry.user ? \"\".concat(entry.user.username, \" \").concat(dateStr) : dateStr;\n};\n\nvar getEntryDetailsUsername = function getEntryDetailsUsername(entry) {\n if (!entry || !entry.details || !entry.details.user) return 'Anonymous';\n return (0,_helpers_User__WEBPACK_IMPORTED_MODULE_5__.getUserName)(entry.details.user);\n};\n\nvar getEntryRoundNumber = function getEntryRoundNumber(entry) {\n return entry && entry.details && entry.details.round && entry.details.round.number || '?';\n};\n\nvar getEntryResultComment = function getEntryResultComment(entry) {\n if (!entry || !entry.details || !entry.details.result || !entry.details.result.comment) {\n return '';\n }\n\n return entry.details.result.comment;\n};\n\nvar getEntryResultTime = function getEntryResultTime(entry) {\n if (!entry || !entry.details || !entry.details.result) return 'ERROR';\n var result = entry.details.result;\n if (result.forfeit) return 'DNF XX';\n return (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_4__.formatTime)(result);\n};\n\nvar getEntryDescription = function getEntryDescription(entry) {\n switch (entry.type) {\n case 'application.accepted':\n case 'application.received':\n case 'application.rejected':\n return _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"protocol.description.\".concat(entry.type), _objectSpread(_objectSpread({}, entry), {}, {\n username: getEntryDetailsUsername(entry)\n }));\n\n case 'result.comment':\n {\n var comment = getEntryResultComment(entry);\n var number = getEntryRoundNumber(entry);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_i18next__WEBPACK_IMPORTED_MODULE_8__.Trans, {\n i18nKey: \"protocol.description.\".concat(entry.type),\n children: [{\n number: number\n }, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Spoiler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n children: {\n comment: comment\n }\n }), \",\"]\n });\n }\n\n case 'result.report':\n {\n var _number = getEntryRoundNumber(entry);\n\n var time = getEntryResultTime(entry);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_i18next__WEBPACK_IMPORTED_MODULE_8__.Trans, {\n i18nKey: \"protocol.description.\".concat(entry.type),\n children: [{\n number: _number\n }, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Spoiler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n children: {\n time: time\n }\n }), \",\"]\n });\n }\n\n case 'round.create':\n case 'round.edit':\n case 'round.lock':\n case 'round.seed':\n case 'round.unlock':\n return _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"protocol.description.\".concat(entry.type), _objectSpread(_objectSpread({}, entry), {}, {\n number: getEntryRoundNumber(entry)\n }));\n\n case 'tournament.close':\n case 'tournament.discord':\n case 'tournament.lock':\n case 'tournament.open':\n case 'tournament.unlock':\n return _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(\"protocol.description.\".concat(entry.type), entry);\n\n default:\n return _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('protocol.description.unknown', entry);\n }\n};\n\nvar getEntryIcon = function getEntryIcon(entry) {\n switch (entry.type) {\n case 'result.report':\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].RESULT, {});\n\n case 'round.create':\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ADD, {});\n\n case 'round.lock':\n case 'tournament.close':\n case 'tournament.lock':\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].LOCKED, {});\n\n case 'round.unlock':\n case 'tournament.open':\n case 'tournament.unlock':\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].UNLOCKED, {});\n\n case 'tournament.discord':\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DISCORD, {});\n\n default:\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].PROTOCOL, {});\n }\n};\n\nvar Item = function Item(_ref) {\n var entry = _ref.entry;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Item, {\n className: \"d-flex align-items-center\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"pe-3 text-muted\",\n children: getEntryIcon(entry)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n children: getEntryDescription(entry)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"text-muted\",\n title: moment__WEBPACK_IMPORTED_MODULE_0___default()(entry.created_at).format('LLLL'),\n children: getEntryDate(entry)\n })]\n })]\n });\n};\n\nItem.propTypes = {\n entry: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n created_at: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)\n })\n};\nItem.defaultProps = {\n entry: {}\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__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TcG9pbGVyIiwiZm9ybWF0VGltZSIsImdldFVzZXJOYW1lIiwiaTE4biIsImdldEVudHJ5RGF0ZSIsImVudHJ5IiwiZGF0ZVN0ciIsImNyZWF0ZWRfYXQiLCJmcm9tTm93IiwidXNlciIsInVzZXJuYW1lIiwiZ2V0RW50cnlEZXRhaWxzVXNlcm5hbWUiLCJkZXRhaWxzIiwiZ2V0RW50cnlSb3VuZE51bWJlciIsInJvdW5kIiwibnVtYmVyIiwiZ2V0RW50cnlSZXN1bHRDb21tZW50IiwicmVzdWx0IiwiY29tbWVudCIsImdldEVudHJ5UmVzdWx0VGltZSIsImZvcmZlaXQiLCJnZXRFbnRyeURlc2NyaXB0aW9uIiwidHlwZSIsInQiLCJ0aW1lIiwiZ2V0RW50cnlJY29uIiwiSXRlbSIsImZvcm1hdCIsInByb3BUeXBlcyIsInNoYXBlIiwic3RyaW5nIiwiZGVmYXVsdFByb3BzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/protocol/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/protocol/List.js": -/*!**************************************************!*\ - !*** ./resources/js/components/protocol/List.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/protocol/Item.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\nvar List = function List(_ref) {\n var protocol = _ref.protocol;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n variant: \"flush\",\n children: protocol ? protocol.map(function (entry) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n entry: entry\n }, entry.id);\n }) : null\n });\n};\n\nList.propTypes = {\n protocol: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({}))\n};\nList.defaultProps = {\n protocol: []\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9wcm90b2NvbC9MaXN0LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTs7O0FBRUEsSUFBTUksSUFBSSxHQUFHLFNBQVBBLElBQU87QUFBQSxNQUFHQyxRQUFILFFBQUdBLFFBQUg7QUFBQSxzQkFDWix1REFBQyx1REFBRDtBQUFXLFdBQU8sRUFBQyxPQUFuQjtBQUFBLGNBQ0VBLFFBQVEsR0FBR0EsUUFBUSxDQUFDQyxHQUFULENBQWEsVUFBQUMs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tcblxuTGlzdC5kZWZhdWx0UHJvcHMgPSB7XG5cdHByb3RvY29sOiBbXSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IExpc3Q7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJMaXN0R3JvdXAiLCJJdGVtIiwiTGlzdCIsInByb3RvY29sIiwibWFwIiwiZW50cnkiLCJpZCIsInByb3BUeXBlcyIsImFycmF5T2YiLCJzaGFwZSIsImRlZmF1bHRQcm9wcyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/protocol/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/protocol/Protocol.js": -/*!******************************************************!*\ - !*** ./resources/js/components/protocol/Protocol.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 axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog */ \"./resources/js/components/protocol/Dialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Protocol = function Protocol(_ref) {\n var id = _ref.id;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),\n _useState4 = _slicedToArray(_useState3, 2),\n protocol = _useState4[0],\n setProtocol = _useState4[1];\n\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n var ctrl = new AbortController();\n axios__WEBPACK_IMPORTED_MODULE_0___default().get(\"/api/protocol/\".concat(id), {\n signal: ctrl.signal\n }).then(function (response) {\n setProtocol(response.data);\n });\n return function () {\n ctrl.abort();\n };\n }, [id]);\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n window.Echo[\"private\"](\"Protocol.\".concat(id)).listen('ProtocolAdded', function (e) {\n if (e.protocol) {\n setProtocol(function (protocol) {\n return [e.protocol].concat(_toConsumableArray(protocol));\n });\n }\n });\n return function () {\n window.Echo.leave(\"Protocol.\".concat(id));\n };\n }, [id]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('button.protocol'),\n variant: \"outline-info\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"].PROTOCOL, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Dialog__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n protocol: protocol,\n show: showDialog\n })]\n });\n};\n\nProtocol.propTypes = {\n id: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()(Protocol));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9wcm90b2NvbC9Qcm90b2NvbC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7O0FBRUEsSUFBTVUsUUFBUSxHQUFHLFNBQVhBLFFBQVcsT0FBWTtBQUFBLE1BQVRDLEVBQVMsUUFBVEEsRUFBUzs7QUFDNUIsa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ZSIsImxlYXZlIiwidCIsInByb3BUeXBlcyIsIm51bWJlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/protocol/Protocol.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/DetailDialog.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/results/DetailDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Result */ \"./resources/js/helpers/Result.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getPlacement = function getPlacement(result) {\n return \"\".concat(result.placement, \". (\").concat(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.points', {\n count: result.score\n }), \")\");\n};\n\nvar DetailDialog = function DetailDialog(_ref) {\n var authUser = _ref.authUser,\n onHide = _ref.onHide,\n round = _ref.round,\n show = _ref.show,\n tournament = _ref.tournament,\n user = _ref.user;\n var result = (0,_helpers_User__WEBPACK_IMPORTED_MODULE_4__.findResult)(user, round);\n var maySee = (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.maySeeResults)(authUser, tournament, round);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n className: \"result-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.details')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n sm: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.round')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n children: [\"#\", round.number || '?', ' ', _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('rounds.date', {\n date: new Date(round.created_at)\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n sm: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.runner')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n user: user\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n sm: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.result')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n children: maySee && result && result.has_finished ? (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_2__.getTime)(result, maySee) : _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.pending')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n sm: 6,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.placement')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n children: maySee && result && result.placement ? getPlacement(result) : _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.pending')\n })]\n }), maySee && result && result.comment ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n sm: 12,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('results.comment')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n children: result.comment\n })]\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.close')\n })\n })]\n });\n};\n\nDetailDialog.propTypes = {\n authUser: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({}),\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n created_at: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n number: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)\n }),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_14__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_5__.withUser)(DetailDialog, 'authUser')));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL0RldGFpbERpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTWMsWUFBWSxHQUFHLFNBQWZBLFlBQWUsQ0FBQUMsTUFBTTtBQUFBLG1CQUN2QkEsTUFBTSxDQUFDQyxTQURnQixnQkFDREgsK0NBQUEsQ0FBTyxnQkFBUCxFQUF5QjtBQUFFSyxJQUFBQSxLQUFLLEVBQUVILE1BQU0sQ0FBQ0k7QUFBaEIsR0FBekIsQ0FEQztBQUFBLENBQTNCOztBQUdBLElBQU1DLFlBQVksR0FBRyxTQUFmQSxZQUFlLE9BT2Y7QUFBQSxNQU5MQyxRQU1LLFFBTkxBLFFBTUs7QUFBQSxNQUxMQyxNQUtLLFFBTExBLE1BS0s7QUFBQSxNQUpMQyxLQUlLLFFBSkxBLEtBSUs7QUFBQSxNQUhMQyxJQUdLLFFBSExBLElBR0s7QUFBQSxNQUZMQyxVQUVLLFFBRkxBLFVBRUs7QUFBQSxNQURMQyxJQUNLLFFBRExBLElBQ0s7QUFDTCxNQUFNWCxNQUFNLEdBQUdKLHlEQUFVLENBQUNlLElBQUQsRUFBT0g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IsInN0cmluZyIsImJvb2wiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/results/DetailDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/Item.js": -/*!*************************************************!*\ - !*** ./resources/js/components/results/Item.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 prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _DetailDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailDialog */ \"./resources/js/components/results/DetailDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Result */ \"./resources/js/helpers/Result.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getClassName = function getClassName(result) {\n var classNames = ['status'];\n\n if (result && result.has_finished) {\n classNames.push('finished');\n\n if (result.comment) {\n classNames.push('has-comment');\n }\n } else {\n classNames.push('pending');\n }\n\n return classNames.join(' ');\n};\n\nvar twitchReg = /^https?:\\/\\/(www\\.)?twitch\\.tv/;\nvar youtubeReg = /^https?:\\/\\/(www\\.)?youtu(\\.be|be\\.)/;\n\nvar getVoDVariant = function getVoDVariant(result) {\n if (!result || !result.vod) return 'outline-secondary';\n\n if (twitchReg.test(result.vod)) {\n return 'twitch';\n }\n\n if (youtubeReg.test(result.vod)) {\n return 'outline-youtube';\n }\n\n return 'outline-secondary';\n};\n\nvar getVoDIcon = function getVoDIcon(result) {\n var variant = getVoDVariant(result);\n\n if (variant === 'twitch') {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TWITCH, {\n title: \"\"\n });\n }\n\n if (variant === 'outline-youtube') {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].YOUTUBE, {\n title: \"\"\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].VIDEO, {\n title: \"\"\n });\n};\n\nvar Item = function Item(_ref) {\n var authUser = _ref.authUser,\n round = _ref.round,\n tournament = _ref.tournament,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n var result = (0,_helpers_User__WEBPACK_IMPORTED_MODULE_6__.findResult)(user, round);\n var maySee = (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.maySeeResults)(authUser, tournament, round);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"result\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n user: user\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n className: getClassName(result),\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: maySee && result && result.comment ? result.comment : null,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"span\", {\n className: \"time\",\n children: (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_4__.getTime)(result, maySee)\n }), (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_4__.getIcon)(result, maySee)]\n }), maySee && result && result.vod ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n className: \"vod-link\",\n href: result.vod,\n size: \"sm\",\n target: \"_blank\",\n title: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('results.vod'),\n variant: getVoDVariant(result),\n children: getVoDIcon(result)\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_DetailDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n round: round,\n show: showDialog,\n tournament: tournament,\n user: user\n })]\n });\n};\n\nItem.propTypes = {\n authUser: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({}),\n round: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({}),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_12__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_7__.withUser)(Item, 'authUser')));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL0l0ZW0uanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTWMsWUFBWSxHQUFHLFNBQWZBLFlBQWUsQ0FBQUMsTUFBTSxFQUFJO0FBQzlCLE1BQU1DLFVBQVUsR0FBRyxDQUFDLFFBQUQsQ0FBbkI7O0FBQ0EsTUFBSUQsTUFBTSxJQUFJQSxNQUFNLENBQUNFLFlBQXJCLEVBQW1DO0FBQ2xDRCxJQUFBQSxVQUFVLENBQUNFLElBQVgsQ0FBZ0IsVUFBaEI7O0FBQ0EsUUFBSUgsTUFBTSxDQUFDSSxPQUFYLEVBQW9CO0FBQ25CSCxNQUFBQSxVQUFVLENBQUNFLElBQVgsQ0FBZ0IsYUFBaEI7QUFDQT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JCb3giLCJnZXRJY29uIiwiZ2V0VGltZSIsIm1heVNlZVJlc3VsdHMiLCJmaW5kUmVzdWx0Iiwid2l0aFVzZXIiLCJpMThuIiwiZ2V0Q2xhc3NOYW1lIiwicmVzdWx0IiwiY2xhc3NOYW1lcyIsImhhc19maW5pc2hlZCIsInB1c2giLCJjb21tZW50Iiwiam9pbiIsInR3aXRjaFJlZyIsInlvdXR1YmVSZWciLCJnZXRWb0RWYXJpYW50Iiwidm9kIiwidGVzdCIsImdldFZvREljb24iLCJ2YXJpYW50IiwiSXRlbSIsImF1dGhVc2VyIiwicm91bmQiLCJ0b3VybmFtZW50IiwidXNlciIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwibWF5U2VlIiwidCIsInByb3BUeXBlcyIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/results/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/List.js": -/*!*************************************************!*\ - !*** ./resources/js/components/results/List.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/results/Item.js\");\n/* harmony import */ var _helpers_Participant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/Result */ \"./resources/js/helpers/Result.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\nvar List = function List(_ref) {\n var round = _ref.round,\n tournament = _ref.tournament,\n user = _ref.user;\n\n if (tournament.type === 'open-async') {\n var results = (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.maySeeResults)(user, tournament, round) ? (round.results || []).sort(_helpers_Result__WEBPACK_IMPORTED_MODULE_5__.compareResult) : round.results || [];\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"results d-flex flex-wrap\",\n children: results.map(function (result) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n round: round,\n tournament: tournament,\n user: result.user\n }, result.id);\n })\n });\n }\n\n var runners = (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.maySeeResults)(user, tournament, round) ? (0,_helpers_Participant__WEBPACK_IMPORTED_MODULE_2__.sortByResult)((0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__.getRunners)(tournament), round) : (0,_helpers_Participant__WEBPACK_IMPORTED_MODULE_2__.sortByFinished)((0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__.getRunners)(tournament), round);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"div\", {\n className: \"results d-flex flex-wrap\",\n children: runners.map(function (participant) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n round: round,\n tournament: tournament,\n user: participant.user\n }, participant.id);\n })\n });\n};\n\nList.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n results: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}))\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n participants: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({})),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),\n users: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}))\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__.withUser)(List));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL0xpc3QuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQSxJQUFNUyxJQ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Wx0IHdpdGhVc2VyKExpc3QpO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiSXRlbSIsInNvcnRCeUZpbmlzaGVkIiwic29ydEJ5UmVzdWx0IiwibWF5U2VlUmVzdWx0cyIsImdldFJ1bm5lcnMiLCJjb21wYXJlUmVzdWx0Iiwid2l0aFVzZXIiLCJMaXN0Iiwicm91bmQiLCJ0b3VybmFtZW50IiwidXNlciIsInR5cGUiLCJyZXN1bHRzIiwic29ydCIsIm1hcCIsInJlc3VsdCIsImlkIiwicnVubmVycyIsInBhcnRpY2lwYW50IiwicHJvcFR5cGVzIiwic2hhcGUiLCJhcnJheU9mIiwicGFydGljaXBhbnRzIiwic3RyaW5nIiwidXNlcnMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/results/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/ReportButton.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/results/ReportButton.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 prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _ReportDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReportDialog */ \"./resources/js/components/results/ReportDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getButtonLabel = function getButtonLabel(user, round) {\n var result = (0,_helpers_User__WEBPACK_IMPORTED_MODULE_3__.findResult)(user, round);\n\n if (round.locked) {\n if (result && result.comment) {\n return _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('results.editComment');\n } else {\n return _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('results.addComment');\n }\n } else {\n if (result && (result.time || result.forfeit)) {\n return _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('results.edit');\n } else {\n return _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('results.report');\n }\n }\n};\n\nvar ReportButton = function ReportButton(_ref) {\n var round = _ref.round,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if (round.locked && !(0,_helpers_User__WEBPACK_IMPORTED_MODULE_3__.findResult)(user, round)) {\n return null;\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n variant: \"secondary\",\n children: [getButtonLabel(user, round), ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].EDIT, {\n title: \"\"\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ReportDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n round: round,\n show: showDialog,\n user: user\n })]\n });\n};\n\nReportButton.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()(ReportButton));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL1JlcG9ydEJ1dHRvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBRUEsSUFBTVMsY0FBYyxHQUFHLFNBQWpCQSxjQUFpQixDQUFDQyxJQUFELEVBQU9DLEtBQVAsRUFBaUI7QUFDdkMsTUFBTUMsTUFBTSxHQUFHTCx5REFBVSxDQUFDRyxJQUFELEVBQU9DLEtBQVAsQ0FBekI7O0FBQ0EsTUFBSUEsS0FBSyxDQUFDRSxNQUFWLEVBQWtCO0FBQ2pCLFFBQUlELE1BQU0sSUFBSUEsTUFBTSxDQUFDRSxPQUFyQixFQUE4QjtBQUM3QixhQUFPTiwrQ0FBQSxDQUFPLHFCQUFQLENBQV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ElUIHRpdGxlPVwiXCIgLz5cblx0XHQ8L0J1dHRvbj5cblx0XHQ8UmVwb3J0RGlhbG9nXG5cdFx0XHRvbkhpZGU9eygpID0+IHNldFNob3dEaWFsb2coZmFsc2UpfVxuXHRcdFx0cm91bmQ9e3JvdW5kfVxuXHRcdFx0c2hvdz17c2hvd0RpYWxvZ31cblx0XHRcdHVzZXI9e3VzZXJ9XG5cdFx0Lz5cblx0PC8+O1xufTtcblxuUmVwb3J0QnV0dG9uLnByb3BUeXBlcyA9IHtcblx0cm91bmQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0bG9ja2VkOiBQcm9wVHlwZXMuYm9vbCxcblx0fSksXG5cdHRvdXJuYW1lbnQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxuXHR1c2VyOiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKFJlcG9ydEJ1dHRvbik7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJ1c2VTdGF0ZSIsIkJ1dHRvbiIsIndpdGhUcmFuc2xhdGlvbiIsIlJlcG9ydERpYWxvZyIsIkljb24iLCJmaW5kUmVzdWx0IiwiaTE4biIsImdldEJ1dHRvbkxhYmVsIiwidXNlciIsInJvdW5kIiwicmVzdWx0IiwibG9ja2VkIiwiY29tbWVudCIsInQiLCJ0aW1lIiwiZm9yZmVpdCIsIlJlcG9ydEJ1dHRvbiIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwicHJvcFR5cGVzIiwic2hhcGUiLCJib29sIiwidG91cm5hbWVudCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/results/ReportButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/ReportDialog.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/results/ReportDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _ReportForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReportForm */ \"./resources/js/components/results/ReportForm.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar ReportDialog = function ReportDialog(_ref) {\n var onHide = _ref.onHide,\n round = _ref.round,\n show = _ref.show,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"report-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('results.report')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ReportForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onCancel: onHide,\n round: round,\n user: user\n })]\n });\n};\n\nReportDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(ReportDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL1JlcG9ydERpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Ozs7QUFFQSxJQUFNTSxZQUFZLEdBQUcsU0FBZkEsWUFBZTtBQUFBLE1BQ3BCQyxNQURvQixRQUNwQkEsTUFEb0I7QUFBQSxNQUVwQkMsS0FGb0IsUUFFcEJBLEtBRm9CO0FBQUEsTUFHcEJDLElBSG9CLFFBR3BCQSxJQUhvQjtBQUFBLE1BSXBCQyxJQUpv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vbiIsIlJlcG9ydEZvcm0iLCJpMThuIiwiUmVwb3J0RGlhbG9nIiwib25IaWRlIiwicm91bmQiLCJzaG93IiwidXNlciIsInQiLCJwcm9wVHlwZXMiLCJmdW5jIiwic2hhcGUiLCJib29sIiwidG91cm5hbWVudCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/results/ReportDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/results/ReportForm.js": -/*!*******************************************************!*\ - !*** ./resources/js/components/results/ReportForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _common_LargeCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/LargeCheck */ \"./resources/js/components/common/LargeCheck.js\");\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/Result */ \"./resources/js/helpers/Result.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar ReportForm = function ReportForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n round = _ref.round,\n touched = _ref.touched,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"].Body, {\n children: [!round.locked ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n sm: 9,\n controlId: \"report.time\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.reportTime')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control, {\n isInvalid: !!(touched.time && errors.time),\n name: \"time\",\n onBlur: handleBlur,\n onChange: handleChange,\n placeholder: values.forfeit ? 'DNF' : '1:22:59',\n type: \"text\",\n value: values.time || ''\n }), touched.time && errors.time ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t(errors.time)\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Text, {\n muted: true,\n children: (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_8__.parseTime)(values.time) ? _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.reportPreview', {\n time: (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_8__.formatTime)({\n time: (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_8__.parseTime)(values.time)\n })\n }) : null\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n sm: 3,\n controlId: \"report.forfeit\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.forfeit')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control, {\n as: _common_LargeCheck__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n isInvalid: !!(touched.forfeit && errors.forfeit),\n name: \"forfeit\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: !!values.forfeit\n })]\n })]\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Group, {\n controlId: \"report.vod\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.vod')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control, {\n isInvalid: !!(touched.vod && errors.vod),\n name: \"vod\",\n onBlur: handleBlur,\n onChange: handleChange,\n placeholder: \"https://twitch.tv/youtube\",\n type: \"text\",\n value: values.vod || ''\n }), touched.vod && errors.vod ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t(errors.vod)\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Text, {\n muted: true,\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.vodNote')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Group, {\n controlId: \"report.comment\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.comment')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Control, {\n as: \"textarea\",\n isInvalid: !!(touched.comment && errors.comment),\n name: \"comment\",\n onBlur: handleBlur,\n onChange: handleChange,\n rows: \"6\",\n value: values.comment || ''\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('button.save')\n })]\n })]\n });\n};\n\nReportForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({\n comment: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),\n forfeit: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),\n time: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),\n vod: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool)\n }),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({\n comment: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool),\n forfeit: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool),\n time: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool),\n vod: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({\n comment: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),\n forfeit: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool),\n time: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),\n vod: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'ReportForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var comment, forfeit, round_id, time, user_id, vod, setErrors, onCancel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n comment = values.comment, forfeit = values.forfeit, round_id = values.round_id, time = values.time, user_id = values.user_id, vod = values.vod;\n setErrors = actions.setErrors;\n onCancel = actions.props.onCancel;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post('/api/results', {\n comment: comment,\n forfeit: forfeit,\n round_id: round_id,\n time: (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_8__.parseTime)(time) || 0,\n user_id: user_id,\n vod: vod\n });\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.reportSuccess'));\n\n if (onCancel) {\n onCancel();\n }\n\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('results.reportError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 10]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var round = _ref2.round,\n user = _ref2.user;\n var result = (0,_helpers_User__WEBPACK_IMPORTED_MODULE_7__.findResult)(user, round);\n return {\n comment: result && result.comment ? result.comment : '',\n forfeit: result ? !!result.forfeit : false,\n round_id: round.id,\n time: result && result.time ? (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_8__.formatTime)(result) : '',\n user_id: user.id,\n vod: result && result.vod ? result.vod : ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].object().shape({\n comment: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].string(),\n forfeit: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].boolean().required(),\n time: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].string().time().when('forfeit', {\n is: false,\n then: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].string().required().time()\n }),\n vod: _schema_yup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].string().url()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_18__.withTranslation)()(ReportForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yZXN1bHRzL1JlcG9ydEZvcm0uanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNa0IsVUFBVSxHQUFHLFNBQWJBLFVBQWE7QUFBQSxNQUNsQkMsTUFEa0IsUUFDbEJBLE1BRGtCO0FBQUEsTUFFbEJDLFVBRmtCLFFBRWxCQSxVQUZrQjtBQUFBLE1BR2xCQyxZQUhrQixRQUdsQkEsWUFIa0I7QUFBQSxNQUlsQkMsWUFKa0IsUUFJbEJBLFlBSmtCO0FBQUEsTUFLbEJDLFFBTGtCLFFBS2xCQSxRQUxrQjtBQUFBLE1BTWxCQyxLQU5r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oZWQiLCJ2YWx1ZXMiLCJsb2NrZWQiLCJ0IiwidGltZSIsImZvcmZlaXQiLCJ2b2QiLCJjb21tZW50IiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJmdW5jIiwiYm9vbCIsImRpc3BsYXlOYW1lIiwiZW5hYmxlUmVpbml0aWFsaXplIiwiYWN0aW9ucyIsInJvdW5kX2lkIiwidXNlcl9pZCIsInNldEVycm9ycyIsInByb3BzIiwicG9zdCIsInN1Y2Nlc3MiLCJlcnJvciIsInJlc3BvbnNlIiwiZGF0YSIsIm1hcFByb3BzVG9WYWx1ZXMiLCJ1c2VyIiwicmVzdWx0IiwiaWQiLCJ2YWxpZGF0aW9uU2NoZW1hIiwib2JqZWN0IiwicmVxdWlyZWQiLCJ3aGVuIiwiaXMiLCJ0aGVuIiwidXJsIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/results/ReportForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/EditButton.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/EditButton.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditDialog */ \"./resources/js/components/rounds/EditDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditButton = function EditButton(_ref) {\n var round = _ref.round,\n tournament = _ref.tournament;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_EditDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n round: round,\n show: showDialog,\n tournament: tournament\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n size: \"sm\",\n title: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('rounds.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].EDIT, {\n title: \"\"\n })\n })]\n });\n};\n\nEditButton.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DE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VxuXHRcdFx0c2hvdz17c2hvd0RpYWxvZ31cblx0XHRcdHRvdXJuYW1lbnQ9e3RvdXJuYW1lbnR9XG5cdFx0Lz5cblx0XHQ8QnV0dG9uXG5cdFx0XHRvbkNsaWNrPXsoKSA9PiBzZXRTaG93RGlhbG9nKHRydWUpfVxuXHRcdFx0c2l6ZT1cInNtXCJcblx0XHRcdHRpdGxlPXtpMThuLnQoJ3JvdW5kcy5lZGl0Jyl9XG5cdFx0XHR2YXJpYW50PVwib3V0bGluZS1zZWNvbmRhcnlcIlxuXHRcdD5cblx0XHRcdDxJY29uLkVESVQgdGl0bGU9XCJcIiAvPlxuXHRcdDwvQnV0dG9uPlxuXHQ8Lz47XG59O1xuXG5FZGl0QnV0dG9uLnByb3BUeXBlcyA9IHtcblx0cm91bmQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0bG9ja2VkOiBQcm9wVHlwZXMuYm9vbCxcblx0fSksXG5cdHRvdXJuYW1lbnQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFRyYW5zbGF0aW9uKCkoRWRpdEJ1dHRvbik7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJ1c2VTdGF0ZSIsIkJ1dHRvbiIsIndpdGhUcmFuc2xhdGlvbiIsIkVkaXREaWFsb2ciLCJJY29uIiwiaTE4biIsIkVkaXRCdXR0b24iLCJyb3VuZCIsInRvdXJuYW1lbnQiLCJzaG93RGlhbG9nIiwic2V0U2hvd0RpYWxvZyIsInQiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImxvY2tlZCIsImJvb2wiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/EditButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/EditDialog.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/EditDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditForm */ \"./resources/js/components/rounds/EditForm.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar EditDialog = function EditDialog(_ref) {\n var onHide = _ref.onHide,\n round = _ref.round,\n show = _ref.show;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"edit-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('rounds.edit')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_EditForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onCancel: onHide,\n round: round\n })]\n });\n};\n\nEditDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(EditDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvRWRpdERpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Ozs7QUFFQSxJQUFNTSxVQUFVLEdBQUcsU0FBYkEsVUFBYTtBQUFBLE1BQ2xCQyxNQURrQixRQUNsQkEsTUFEa0I7QUFBQSxNQUVsQkMsS0FGa0IsUUFFbEJBLEtBRmtCO0FBQUEsTUFHbEJDLElBSGtCLFFBR2xCQSxJQUhrQjtBQUFBLHNCQUtuQix3REFBQyx1REFBRDtBQUFPLGFBQVMsRUFBQyxhQUFqQjtBQUErQixVQUFNLEVBQUVGLE1BQXZDO0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G9uSGlkZSxcblx0cm91bmQsXG5cdHNob3csXG59KSA9PlxuPE1vZGFsIGNsYXNzTmFtZT1cImVkaXQtZGlhbG9nXCIgb25IaWRlPXtvbkhpZGV9IHNob3c9e3Nob3d9PlxuXHQ8TW9kYWwuSGVhZGVyIGNsb3NlQnV0dG9uPlxuXHRcdDxNb2RhbC5UaXRsZT5cblx0XHRcdHtpMThuLnQoJ3JvdW5kcy5lZGl0Jyl9XG5cdFx0PC9Nb2RhbC5UaXRsZT5cblx0PC9Nb2RhbC5IZWFkZXI+XG5cdDxFZGl0Rm9ybVxuXHRcdG9uQ2FuY2VsPXtvbkhpZGV9XG5cdFx0cm91bmQ9e3JvdW5kfVxuXHQvPlxuPC9Nb2RhbD47XG5cbkVkaXREaWFsb2cucHJvcFR5cGVzID0ge1xuXHRvbkhpZGU6IFByb3BUeXBlcy5mdW5jLFxuXHRyb3VuZDogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG5cdHNob3c6IFByb3BUeXBlcy5ib29sLFxuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKEVkaXREaWFsb2cpO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTW9kYWwiLCJ3aXRoVHJhbnNsYXRpb24iLCJFZGl0Rm9ybSIsImkxOG4iLCJFZGl0RGlhbG9nIiwib25IaWRlIiwicm91bmQiLCJzaG93IiwidCIsInByb3BUeXBlcyIsImZ1bmMiLCJzaGFwZSIsImJvb2wiLCJ0b3VybmFtZW50Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/EditDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/EditForm.js": -/*!****************************************************!*\ - !*** ./resources/js/components/rounds/EditForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _SeedCodeInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SeedCodeInput */ \"./resources/js/components/rounds/SeedCodeInput.js\");\n/* harmony import */ var _common_UserSelect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/UserSelect */ \"./resources/js/components/common/UserSelect.js\");\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditForm = function EditForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n controlId: \"round.title\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.title')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control, {\n isInvalid: !!(touched.title && errors.title),\n name: \"title\",\n onBlur: handleBlur,\n onChange: handleChange,\n type: \"text\",\n value: values.title || ''\n }), touched.title && errors.title ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t(errors.title)\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n controlId: \"round.seed\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.seed')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control, {\n isInvalid: !!(touched.seed && errors.seed),\n name: \"seed\",\n onBlur: handleBlur,\n onChange: handleChange,\n type: \"text\",\n value: values.seed || ''\n }), touched.seed && errors.seed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t(errors.seed)\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n controlId: \"round.spoiler\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.spoiler')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control, {\n isInvalid: !!(touched.spoiler && errors.spoiler),\n name: \"spoiler\",\n onBlur: handleBlur,\n onChange: handleChange,\n type: \"text\",\n value: values.spoiler || ''\n }), touched.spoiler && errors.spoiler ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t(errors.spoiler)\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.code')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control, {\n as: _SeedCodeInput__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n game: values.game || 'mixed',\n isInvalid: !!(touched.code && errors.code),\n name: \"code\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: values.code || []\n }), touched.code && errors.code ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t(errors.code)\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.rolled_by')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control, {\n as: _common_UserSelect__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n isInvalid: !!(touched.rolled_by && errors.rolled_by),\n name: \"rolled_by\",\n onBlur: handleBlur,\n onChange: handleChange,\n value: values.rolled_by || null\n }), touched.rolled_by && errors.rolled_by ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t(errors.rolled_by)\n }) : null]\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('button.save')\n })]\n })]\n });\n};\n\nEditForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_16___default().shape({\n code: prop_types__WEBPACK_IMPORTED_MODULE_16___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)),\n rolled_by: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n spoiler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_16___default().shape({\n code: prop_types__WEBPACK_IMPORTED_MODULE_16___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool)),\n rolled_by: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n spoiler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_16___default().shape({\n code: prop_types__WEBPACK_IMPORTED_MODULE_16___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)),\n game: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n rolled_by: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n spoiler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'EditForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var round_id, setErrors, onCancel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n round_id = values.round_id;\n setErrors = actions.setErrors;\n onCancel = actions.props.onCancel;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().put(\"/api/rounds/\".concat(round_id), values);\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.editSuccess'));\n\n if (onCancel) {\n onCancel();\n }\n\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"].t('rounds.editError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 10]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var round = _ref2.round;\n return {\n code: round.code || [],\n game: round.game || 'mixed',\n rolled_by: round.rolled_by || null,\n round_id: round.id,\n seed: round.seed || '',\n spoiler: round.spoiler || '',\n title: round.title || ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].object().shape({\n code: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].array().of(_schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].string()),\n rolled_by: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].string().nullable(),\n seed: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].string().url(),\n spoiler: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].string().url(),\n title: _schema_yup__WEBPACK_IMPORTED_MODULE_9__[\"default\"].string()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_17__.withTranslation)()(EditForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZX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F5Iiwib2YiLCJudWxsYWJsZSIsInVybCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/EditForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/Item.js": -/*!************************************************!*\ - !*** ./resources/js/components/rounds/Item.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 prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditButton */ \"./resources/js/components/rounds/EditButton.js\");\n/* harmony import */ var _LockButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LockButton */ \"./resources/js/components/rounds/LockButton.js\");\n/* harmony import */ var _SeedButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SeedButton */ \"./resources/js/components/rounds/SeedButton.js\");\n/* harmony import */ var _SeedCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SeedCode */ \"./resources/js/components/rounds/SeedCode.js\");\n/* harmony import */ var _SeedRolledBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SeedRolledBy */ \"./resources/js/components/rounds/SeedRolledBy.js\");\n/* harmony import */ var _results_List__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../results/List */ \"./resources/js/components/results/List.js\");\n/* harmony import */ var _results_ReportButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../results/ReportButton */ \"./resources/js/components/results/ReportButton.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_Round__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../helpers/Round */ \"./resources/js/helpers/Round.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getClassName = function getClassName(round, tournament, user) {\n var classNames = ['round'];\n\n if (round.locked) {\n classNames.push('is-locked');\n } else {\n classNames.push('is-unlocked');\n }\n\n if ((0,_helpers_Round__WEBPACK_IMPORTED_MODULE_9__.isComplete)(tournament, round)) {\n classNames.push('is-complete');\n } else {\n classNames.push('is-incomplete');\n }\n\n if ((0,_helpers_User__WEBPACK_IMPORTED_MODULE_10__.hasFinishedRound)(user, round)) {\n classNames.push('has-finished');\n } else if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_8__.isRunner)(user, tournament)) {\n classNames.push('has-not-finished');\n }\n\n return classNames.join(' ');\n};\n\nvar Item = function Item(_ref) {\n var round = _ref.round,\n tournament = _ref.tournament,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"li\", {\n className: getClassName(round, tournament, user),\n children: [round.title ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h3\", {\n children: round.title\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"d-flex\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"info\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"p\", {\n className: \"date\",\n children: [round.number ? \"#\".concat(round.number, \" \") : '#?', _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('rounds.date', {\n date: new Date(round.created_at)\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"p\", {\n className: \"seed\",\n children: [round.code && round.code.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_SeedCode__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n code: round.code,\n game: round.game || 'alttpr'\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"br\", {})]\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_SeedButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n round: round,\n tournament: tournament\n }), ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_SeedRolledBy__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n round: round\n })]\n }), (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_8__.mayReportResult)(user, tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"p\", {\n className: \"report\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_results_ReportButton__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n round: round,\n tournament: tournament,\n user: user\n })\n }) : null, tournament.type === 'open-async' && round.results && round.results.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('rounds.numberOfResults', {\n count: round.results.length\n })\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"button-bar\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_LockButton__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n round: round,\n tournament: tournament\n }), (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_8__.mayEditRound)(user, tournament, round) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_EditButton__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n round: round,\n tournament: tournament\n }) : null]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_results_List__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n round: round,\n tournament: tournament\n })]\n })]\n });\n};\n\nItem.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n code: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)),\n created_at: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n game: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),\n number: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n results: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({})),\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n participants: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({})),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_15__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_11__.withUser)(Item)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvSXRlbS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBRUEsSUFBTWlCLFlBQVksR0FBRyxTQUFmQSxZQUFlLENBQUNDLEtBQUQsRUFBUUMsVUFBUixFQUFvQkMsSUFBcEIsRUFBNkI7QUFDakQsTUFBTUMsVUFBVS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V0dG9uIiwiU2VlZEJ1dHRvbiIsIlNlZWRDb2RlIiwiU2VlZFJvbGxlZEJ5IiwiTGlzdCIsIlJlcG9ydEJ1dHRvbiIsIm1heUVkaXRSb3VuZCIsIm1heVJlcG9ydFJlc3VsdCIsImlzUnVubmVyIiwiaXNDb21wbGV0ZSIsImhhc0ZpbmlzaGVkUm91bmQiLCJ3aXRoVXNlciIsImkxOG4iLCJnZXRDbGFzc05hbWUiLCJyb3VuZCIsInRvdXJuYW1lbnQiLCJ1c2VyIiwiY2xhc3NOYW1lcyIsImxvY2tlZCIsInB1c2giLCJqb2luIiwiSXRlbSIsInRpdGxlIiwibnVtYmVyIiwidCIsImRhdGUiLCJEYXRlIiwiY3JlYXRlZF9hdCIsImNvZGUiLCJsZW5ndGgiLCJnYW1lIiwidHlwZSIsInJlc3VsdHMiLCJjb3VudCIsInByb3BUeXBlcyIsInNoYXBlIiwiYXJyYXlPZiIsInN0cmluZyIsImJvb2wiLCJzZWVkIiwicGFydGljaXBhbnRzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/Item.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/List.js": -/*!************************************************!*\ - !*** ./resources/js/components/rounds/List.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./resources/js/components/rounds/Item.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar List = function List(_ref) {\n var rounds = _ref.rounds,\n tournament = _ref.tournament;\n return rounds && rounds.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"ol\", {\n className: \"rounds\",\n children: rounds.map(function (round) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n round: round,\n tournament: tournament\n }, round.id);\n })\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n variant: \"info\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('rounds.empty')\n });\n};\n\nList.propTypes = {\n rounds: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)\n })),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_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1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShMaXN0KTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkFsZXJ0Iiwid2l0aFRyYW5zbGF0aW9uIiwiSXRlbSIsImkxOG4iLCJMaXN0Iiwicm91bmRzIiwidG91cm5hbWVudCIsImxlbmd0aCIsIm1hcCIsInJvdW5kIiwiaWQiLCJ0IiwicHJvcFR5cGVzIiwiYXJyYXlPZiIsInNoYXBlIiwibnVtYmVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/LockButton.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/LockButton.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _LockDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LockDialog */ \"./resources/js/components/rounds/LockDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar LockButton = function LockButton(_ref) {\n var round = _ref.round,\n tournament = _ref.tournament,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if (!(0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.mayLockRound)(user, tournament, round)) {\n if (round.locked) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].LOCKED, {\n title: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.locked')\n });\n } else {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].UNLOCKED, {\n title: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.unlocked')\n });\n }\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_LockDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n round: round,\n show: showDialog,\n tournament: tournament\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n size: \"sm\",\n title: round.locked ? _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.locked') : _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.unlocked'),\n variant: \"outline-secondary\",\n children: round.locked ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].LOCKED, {\n title: \"\"\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].UNLOCKED, {\n title: \"\"\n })\n })]\n });\n};\n\nLockButton.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_9__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__.withUser)(LockButton)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvTG9ja0J1dHRvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBRUEsSUFBTVUsVUFBVSxHQUFHLFNBQWJBLFVBQWEsT0FJYjtBQUFBL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5lLXNlY29uZGFyeVwiXG5cdFx0PlxuXHRcdFx0e3JvdW5kLmxvY2tlZCA/XG5cdFx0XHRcdDxJY29uLkxPQ0tFRCB0aXRsZT1cIlwiIC8+XG5cdFx0XHQ6XG5cdFx0XHRcdDxJY29uLlVOTE9DS0VEIHRpdGxlPVwiXCIgLz5cblx0XHRcdH1cblx0XHQ8L0J1dHRvbj5cblx0PC8+O1xufTtcblxuTG9ja0J1dHRvbi5wcm9wVHlwZXMgPSB7XG5cdHJvdW5kOiBQcm9wVHlwZXMuc2hhcGUoe1xuXHRcdGxvY2tlZDogUHJvcFR5cGVzLmJvb2wsXG5cdH0pLFxuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcblx0dXNlcjogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKSh3aXRoVXNlcihMb2NrQnV0dG9uKSk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJ1c2VTdGF0ZSIsIkJ1dHRvbiIsIndpdGhUcmFuc2xhdGlvbiIsIkxvY2tEaWFsb2ciLCJJY29uIiwibWF5TG9ja1JvdW5kIiwid2l0aFVzZXIiLCJpMThuIiwiTG9ja0J1dHRvbiIsInJvdW5kIiwidG91cm5hbWVudCIsInVzZXIiLCJzaG93RGlhbG9nIiwic2V0U2hvd0RpYWxvZyIsImxvY2tlZCIsInQiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImJvb2wiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/LockButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/LockDialog.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/LockDialog.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _helpers_Round__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Round */ \"./resources/js/helpers/Round.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar LockDialog = function LockDialog(_ref) {\n var onHide = _ref.onHide,\n round = _ref.round,\n show = _ref.show,\n tournament = _ref.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"lock-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t(round.locked ? 'rounds.unlock' : 'rounds.lock')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t(round.locked ? 'rounds.unlockDescription' : 'rounds.lockDescription')\n }), !round.locked && tournament.type === 'signup-async' && !(0,_helpers_Round__WEBPACK_IMPORTED_MODULE_4__.isComplete)(tournament, round) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n variant: \"warning\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.lockIncompleteWarning')\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Footer, {\n children: [onHide ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!round.locked) {\n _context.next = 13;\n break;\n }\n\n _context.prev = 1;\n _context.next = 4;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/rounds/\".concat(round.id, \"/unlock\"));\n\n case 4:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.unlockSuccess'));\n onHide();\n _context.next = 11;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](1);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.unlockError'));\n\n case 11:\n _context.next = 23;\n break;\n\n case 13:\n _context.prev = 13;\n _context.next = 16;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/rounds/\".concat(round.id, \"/lock\"));\n\n case 16:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.lockSuccess'));\n onHide();\n _context.next = 23;\n break;\n\n case 20:\n _context.prev = 20;\n _context.t1 = _context[\"catch\"](13);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('rounds.lockError'));\n\n case 23:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 8], [13, 20]]);\n })),\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t(round.locked ? 'rounds.unlock' : 'rounds.lock')\n })]\n })]\n });\n};\n\nLockDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number),\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool)\n }),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n type: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_11__.withTranslation)()(LockDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvTG9ja0RpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Ozs7QUFFQSxJQUFNVSxVQUFVLEdBQUcsU0FBYkEsVUFBYTtBQUFBLE1BQ2xCQyxNQURrQixRQUNsQkEsTUFEa0I7QUFBQSxNQUVsQkMsS0FGa0IsUUFFbEJBLEtBRmtCO0FBQUEsTUFHbEJDLElBSGtCLFFBR2xCQSxJQUhrQjtBQUFBLE1BSWxCQyxVQUprQixRQUlsQkEsVUFKa0I7QUFBQSxzQkFNbkIsd0RBQUMsdURBQUQ7QUFBTyxhQUFTLEVBQUMsYUFBakI7QUFBK0IsVUFBTSxFQUFFSCxNQUF2QztBQUErQyxRQUFJLEVBQUVFLElBQXJEO0FBQUEsNEJBQ0MsdURBQUMsOERBQUQ7QUFBYyxpQkFBVyxNQUF6QjtBQUFBLDZCQUNDLHVEQUFDLDZEQUFEO0FBQUEsa0JBQ0VKLCtDQUFBLENBQU9HLEtBQUssQ0FBQ0ksTUFBTixHQUFlLGVBQWYsR0FBaUMsYUFBeEM7QUFERjtBQURELE1BREQsZUFNQyx3REFBQyw0REFBRDtBQUFBLDhCQUNDO0FBQUEsa0JBQUlQLCtD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m9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/LockDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedButton.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/SeedButton.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 prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _SeedDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SeedDialog */ \"./resources/js/components/rounds/SeedDialog.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar SeedButton = function SeedButton(_ref) {\n var round = _ref.round,\n tournament = _ref.tournament,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if (round.seed) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n href: round.seed,\n target: \"_blank\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('rounds.seed')\n }), round.spoiler ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n className: \"ms-2\",\n href: round.spoiler,\n target: \"_blank\",\n variant: \"outline-primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('rounds.spoiler')\n }) : null]\n });\n }\n\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_2__.maySetSeed)(user, tournament, round)) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_SeedDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n round: round,\n show: showDialog\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n variant: \"outline-primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('rounds.setSeed')\n })]\n });\n }\n\n return _i18n__WEBPACK_IMPORTED_MODULE_4__[\"default\"].t('rounds.noSeed');\n};\n\nSeedButton.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),\n spoiler: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_3__.withUser)(SeedButton)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvU2VlZEJ1dHRvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBRUEsSUFBTVMsVUFBVSxHQUFHLFNBQWJBLFVBQWEsT0FBaUM7QUFBQSxNQUE5QkMsS0FBOEIsUUFBOUJBLEtBQThCO0FBQUEsTUFBdkJDLFVBQXVCLFFBQXZCQSxVQUF1QjtBQUFBLE1BQVhDLElBQVcsUUFBWEEsSUFBVzs7QUFDbkQsa0JBQW9DViwrQ0FBUSxDQUFDLEtBQUQsQ0FBNUM7QUFBQTtBQUFBLE1BQU9XLFVBQVA7QUFBQSxNQUFtQkMsYUFBbkI7O0FBRUEsTUFBSUosS0FBSyxDQUFDSyxJQUFWLEVBQWdCO0FBQ2Ysd0JBQU87QUFBQSw4QkFDTix1REFBQyx1REFBRDtBQUFRLFlBQUksRUFBRUwsS0FBSyxDQUFDSyxJQUFwQjtBQUEwQixjQUFNLEVBQUMsUUFBakM7QUFBMEMsZUFBTyxFQUFDLFNBQWxEO0FBQ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eXBlcy5zdHJpbmcsXG5cdFx0c3BvaWxlcjogUHJvcFR5cGVzLnN0cmluZyxcblx0fSksXG5cdHRvdXJuYW1lbnQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxuXHR1c2VyOiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKHdpdGhVc2VyKFNlZWRCdXR0b24pKTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsInVzZVN0YXRlIiwiQnV0dG9uIiwid2l0aFRyYW5zbGF0aW9uIiwiU2VlZERpYWxvZyIsIm1heVNldFNlZWQiLCJ3aXRoVXNlciIsImkxOG4iLCJTZWVkQnV0dG9uIiwicm91bmQiLCJ0b3VybmFtZW50IiwidXNlciIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwic2VlZCIsInQiLCJzcG9pbGVyIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedCode.js": -/*!****************************************************!*\ - !*** ./resources/js/components/rounds/SeedCode.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/ZeldaIcon */ \"./resources/js/components/common/ZeldaIcon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar SeedCode = function SeedCode(_ref) {\n var code = _ref.code,\n game = _ref.game;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"seed-code game-\".concat(game),\n children: code.map(game === 'smr' ? function (symbol, index) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n children: symbol\n }, \"\".concat(symbol, \".\").concat(index));\n } : function (symbol, index) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: symbol\n }, \"\".concat(symbol, \".\").concat(index));\n })\n });\n};\n\nSeedCode.propTypes = {\n code: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)),\n game: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SeedCode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvU2VlZENvZGUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUVBOzs7QUFFQSxJQUFNRyxRQUFRLEdBQUcsU0FBWEEsUUFBVztBQUFBLE1BQUdDLElBQUgsUUFB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blx0e2NvZGUubWFwKGdhbWUgPT09ICdzbXInXG5cdFx0PyAoc3ltYm9sLCBpbmRleCkgPT4gPHNwYW4ga2V5PXtgJHtzeW1ib2x9LiR7aW5kZXh9YH0+e3N5bWJvbH08L3NwYW4+XG5cdFx0OiAoc3ltYm9sLCBpbmRleCkgPT4gPFplbGRhSWNvbiBrZXk9e2Ake3N5bWJvbH0uJHtpbmRleH1gfSBuYW1lPXtzeW1ib2x9IC8+XG5cdCl9XG48L3NwYW4+O1xuXG5TZWVkQ29kZS5wcm9wVHlwZXMgPSB7XG5cdGNvZGU6IFByb3BUeXBlcy5hcnJheU9mKFByb3BUeXBlcy5zdHJpbmcpLFxuXHRnYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgU2VlZENvZGU7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJaZWxkYUljb24iLCJTZWVkQ29kZSIsImNvZGUiLCJnYW1lIiwibWFwIiwic3ltYm9sIiwiaW5kZXgiLCJwcm9wVHlwZXMiLCJhcnJheU9mIiwic3RyaW5nIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedCode.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedCodeInput.js": -/*!*********************************************************!*\ - !*** ./resources/js/components/rounds/SeedCodeInput.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar ALTTPR_CODES = ['big-key', 'blue-boomerang', 'bomb', 'bombos', 'book', 'boots', 'bottle', 'bow', 'bugnet', 'cape', 'compass', 'ether', 'flippers', 'flute', 'glove', 'green-mail', 'green-pendant', 'green-potion', 'hammer', 'heart-container', 'hookshot', 'ice-rod', 'lamp', 'map', 'mirror', 'mirror-shield', 'moonpearl', 'mushroom', 'powder', 'quake', 'shovel', 'somaria'];\nvar SMR_CODES = ['ALCOON', 'ATOMIC', 'BEETOM', 'BOYON', 'BULL', 'CHOOT', 'COVERN', 'EVIR', 'FUNE', 'GAMET', 'GEEMER', 'GERUTA', 'HOLTZ', 'KAGO', 'NAMIHE', 'OUM', 'OWTCH', 'POWAMP', 'PUROMI', 'PUYO', 'RINKA', 'RIPPER', 'SCISER', 'SKREE', 'SOVA', 'TATORI', 'VIOLA', 'WAVER', 'YARD', 'ZEBBO', 'ZEELA', 'ZOA'];\n\nvar SeedCodeInput = function SeedCodeInput(_ref) {\n var className = _ref.className,\n game = _ref.game,\n name = _ref.name,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n value = _ref.value;\n\n if (game === 'alttpr') {\n var code_trans = ALTTPR_CODES.map(function (code) {\n return {\n code: code,\n label: _i18n__WEBPACK_IMPORTED_MODULE_1__[\"default\"].t(\"icon.zelda.\".concat(code))\n };\n }).sort(function (a, b) {\n return a.label.localeCompare(b.label);\n });\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"\".concat(className, \" seed-code-input game-alttpr\"),\n children: [0, 1, 2, 3, 4].map(function (num) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Select, {\n onBlur: onBlur,\n onChange: onChange,\n name: \"\".concat(name, \"[\").concat(num, \"]\"),\n value: value && value[num] || '',\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"option\", {\n value: \"\"\n }), code_trans.map(function (_ref2) {\n var code = _ref2.code,\n label = _ref2.label;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"option\", {\n value: code,\n children: label\n }, code);\n })]\n }, num);\n })\n });\n }\n\n if (game === 'smr') {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"\".concat(className, \" seed-code-input game-smr\"),\n children: [0, 1, 2, 3].map(function (num) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Select, {\n onBlur: onBlur,\n onChange: onChange,\n name: \"\".concat(name, \"[\").concat(num, \"]\"),\n value: value && value[num] || '',\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"option\", {\n value: \"\"\n }), SMR_CODES.sort(function (a, b) {\n return a.localeCompare(b);\n }).map(function (code) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"option\", {\n value: code,\n children: code\n }, code);\n })]\n }, num);\n })\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"\".concat(className, \" seed-code-input\"),\n children: [0, 1, 2, 3, 4].map(function (num) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Control, {\n onBlur: onBlur,\n onChange: onChange,\n name: \"\".concat(name, \"[\").concat(num, \"]\"),\n value: value && value[num] || ''\n }, num);\n })\n });\n};\n\nSeedCodeInput.propTypes = {\n className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n game: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n onChange: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n value: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().string))\n};\nSeedCodeInput.defaultProps = {\n className: '',\n game: '',\n name: '',\n onBlur: null,\n onChange: null,\n value: []\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_5__.withTranslation)()(SeedCodeInput));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvU2VlZENvZGVJbnB1dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7OztBQUVBLElBQU1LLFlBQVksR0FBRyxDQUNwQixTQURvQixFQUVwQixnQ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cmluZyxcblx0b25CbHVyOiBQcm9wVHlwZXMuZnVuYyxcblx0b25DaGFuZ2U6IFByb3BUeXBlcy5mdW5jLFxuXHR2YWx1ZTogUHJvcFR5cGVzLmFycmF5T2YoUHJvcFR5cGVzLnN0cmluZyksXG59O1xuXG5TZWVkQ29kZUlucHV0LmRlZmF1bHRQcm9wcyA9IHtcblx0Y2xhc3NOYW1lOiAnJyxcblx0Z2FtZTogJycsXG5cdG5hbWU6ICcnLFxuXHRvbkJsdXI6IG51bGwsXG5cdG9uQ2hhbmdlOiBudWxsLFxuXHR2YWx1ZTogW10sXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShTZWVkQ29kZUlucHV0KTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkZvcm0iLCJ3aXRoVHJhbnNsYXRpb24iLCJpMThuIiwiQUxUVFBSX0NPREVTIiwiU01SX0NPREVTIiwiU2VlZENvZGVJbnB1dCIsImNsYXNzTmFtZSIsImdhbWUiLCJuYW1lIiwib25CbHVyIiwib25DaGFuZ2UiLCJ2YWx1ZSIsImNvZGVfdHJhbnMiLCJtYXAiLCJjb2RlIiwibGFiZWwiLCJ0Iiwic29ydCIsImEiLCJiIiwibG9jYWxlQ29tcGFyZSIsIm51bSIsInByb3BUeXBlcyIsInN0cmluZyIsImZ1bmMiLCJhcnJheU9mIiwiZGVmYXVsdFByb3BzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedCodeInput.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedDialog.js": -/*!******************************************************!*\ - !*** ./resources/js/components/rounds/SeedDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _SeedForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SeedForm */ \"./resources/js/components/rounds/SeedForm.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar SeedDialog = function SeedDialog(_ref) {\n var onHide = _ref.onHide,\n round = _ref.round,\n show = _ref.show;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"seed-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('rounds.setSeed')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_SeedForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onCancel: onHide,\n round: round\n })]\n });\n};\n\nSeedDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n round: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(SeedDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvU2VlZERpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Ozs7QUFFQSxJQUFNTSxVQUFVLEdBQUcsU0FBYkEsVUFBYTtBQUFBLE1BQ2xCQyxNQURrQixRQUNsQkEsTUFEa0I7QUFBQSxNQUVsQkMsS0FGa0IsUUFFbEJBLEtBRmtCO0FBQUEsTUFHbEJDLElBSGtCLFFBR2xCQSxJQUhrQjtBQUFBLHNCQUtuQix3REFBQyx1REFBRDtBQUFPLGFBQVMsRUFBQyxhQUFqQjtBQUErQixVQUFNLEVBQUVGLE1BQXZDO0FBQStDLFFBQUksRUFBRUUsSUFBckQ7QUFBQSw0QkFDQyx1REFBQyw4REFBRDtBQUFjLGlCQUFXLE1BQXpCO0FBQUEsNkJBQ0MsdURBQUM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zaG93PXtzaG93fT5cblx0PE1vZGFsLkhlYWRlciBjbG9zZUJ1dHRvbj5cblx0XHQ8TW9kYWwuVGl0bGU+XG5cdFx0XHR7aTE4bi50KCdyb3VuZHMuc2V0U2VlZCcpfVxuXHRcdDwvTW9kYWwuVGl0bGU+XG5cdDwvTW9kYWwuSGVhZGVyPlxuXHQ8U2VlZEZvcm1cblx0XHRvbkNhbmNlbD17b25IaWRlfVxuXHRcdHJvdW5kPXtyb3VuZH1cblx0Lz5cbjwvTW9kYWw+O1xuXG5TZWVkRGlhbG9nLnByb3BUeXBlcyA9IHtcblx0b25IaWRlOiBQcm9wVHlwZXMuZnVuYyxcblx0cm91bmQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxuXHRzaG93OiBQcm9wVHlwZXMuYm9vbCxcblx0dG91cm5hbWVudDogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShTZWVkRGlhbG9nKTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIk1vZGFsIiwid2l0aFRyYW5zbGF0aW9uIiwiU2VlZEZvcm0iLCJpMThuIiwiU2VlZERpYWxvZyIsIm9uSGlkZSIsInJvdW5kIiwic2hvdyIsInQiLCJwcm9wVHlwZXMiLCJmdW5jIiwic2hhcGUiLCJib29sIiwidG91cm5hbWVudCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedForm.js": -/*!****************************************************!*\ - !*** ./resources/js/components/rounds/SeedForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar SeedForm = function SeedForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n controlId: \"round.seed\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('rounds.seed')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n isInvalid: !!(touched.seed && errors.seed),\n name: \"seed\",\n onBlur: handleBlur,\n onChange: handleChange,\n placeholder: \"https://alttprpatch.synack.live/patcher.html?patch=https://sahasrahbot.s3.amazonaws.com/patch/DR_XXXXXXXXXXX.bps\",\n type: \"text\",\n value: values.seed || ''\n }), touched.seed && errors.seed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(errors.seed)\n }) : null]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.save')\n })]\n })]\n });\n};\n\nSeedForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n seed: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'SeedForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var round_id, seed, setErrors, onCancel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n round_id = values.round_id, seed = values.seed;\n setErrors = actions.setErrors;\n onCancel = actions.props.onCancel;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/rounds/\".concat(round_id, \"/setSeed\"), {\n seed: seed\n });\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('rounds.setSeedSuccess'));\n\n if (onCancel) {\n onCancel();\n }\n\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('rounds.setSeedError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 10]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var round = _ref2.round;\n return {\n round_id: round.id,\n seed: round.seed || ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].object().shape({\n seed: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].string().required().url()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_15__.withTranslation)()(SeedForm)));//# sourceURL=[module]\n//# sourceMappingURL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XlOYW1lIiwiZW5hYmxlUmVpbml0aWFsaXplIiwiYWN0aW9ucyIsInJvdW5kX2lkIiwic2V0RXJyb3JzIiwicHJvcHMiLCJwb3N0Iiwic3VjY2VzcyIsImVycm9yIiwicmVzcG9uc2UiLCJkYXRhIiwibWFwUHJvcHNUb1ZhbHVlcyIsInJvdW5kIiwiaWQiLCJ2YWxpZGF0aW9uU2NoZW1hIiwib2JqZWN0IiwicmVxdWlyZWQiLCJ1cmwiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/rounds/SeedRolledBy.js": -/*!********************************************************!*\ - !*** ./resources/js/components/rounds/SeedRolledBy.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\nvar SeedRolledBy = function SeedRolledBy(_ref) {\n var round = _ref.round;\n return round.rolled_by_user ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n className: \"rolled-by\",\n title: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('rounds.rolledBy', {\n name: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_1__.getUserName)(round.rolled_by_user)\n }),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"img\", {\n alt: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_1__.getUserName)(round.rolled_by_user),\n src: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_1__.getAvatarUrl)(round.rolled_by_user)\n })\n }) : null;\n};\n\nSeedRolledBy.propTypes = {\n round: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n rolled_by_user: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({})\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SeedRolledBy);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9yb3VuZHMvU2VlZFJvbGxlZEJ5LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBRUE7QUFDQTs7O0FBRUEsSUFBTUssWUFBWSxHQUFHLFNBQWZBLFlBQWU7QUFBQSxNQUFHQyxLQUFILFFBQUdBLEtBQUg7QUFBQSxTQUFlQSxLQUFLLENBQUNDLGNBQU4sZ0JBQ25DO0FBQ0MsYUFBUyxFQUFDLFdBRFg7QUFFQyxTQUFLLEVBQUVILCtDQUFBLENBQU8saUJBQVAsRUFBMEI7QUFBRUssTUFBQUEsSUFBSSxFQUFFTiwwREFBVyxDQUFDRyxLQUFLLENBQUNDLGNBQVA7QUFBbkI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fdXNlcil9IHNyYz17Z2V0QXZhdGFyVXJsKHJvdW5kLnJvbGxlZF9ieV91c2VyKX0gLz5cblx0PC9zcGFuPlxuOiBudWxsO1xuXG5TZWVkUm9sbGVkQnkucHJvcFR5cGVzID0ge1xuXHRyb3VuZDogUHJvcFR5cGVzLnNoYXBlKHtcblx0XHRyb2xsZWRfYnlfdXNlcjogUHJvcFR5cGVzLnNoYXBlKHtcblx0XHR9KSxcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTZWVkUm9sbGVkQnk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJnZXRBdmF0YXJVcmwiLCJnZXRVc2VyTmFtZSIsImkxOG4iLCJTZWVkUm9sbGVkQnkiLCJyb3VuZCIsInJvbGxlZF9ieV91c2VyIiwidCIsIm5hbWUiLCJwcm9wVHlwZXMiLCJzaGFwZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/rounds/SeedRolledBy.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Detail.js": -/*!******************************************************!*\ - !*** ./resources/js/components/techniques/Detail.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 prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ \"./resources/js/components/techniques/List.js\");\n/* harmony import */ var _Outline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Outline */ \"./resources/js/components/techniques/Outline.js\");\n/* harmony import */ var _Requirements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Requirements */ \"./resources/js/components/techniques/Requirements.js\");\n/* harmony import */ var _Rulesets__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Rulesets */ \"./resources/js/components/techniques/Rulesets.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_RawHTML__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/RawHTML */ \"./resources/js/components/common/RawHTML.js\");\n/* harmony import */ var _helpers_nl2br__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/nl2br */ \"./resources/js/helpers/nl2br.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Detail = function Detail(_ref) {\n var actions = _ref.actions,\n technique = _ref.technique;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_11__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n as: \"article\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"h1\", {\n children: [(0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language), actions.editContent ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n className: \"ms-3\",\n onClick: function onClick() {\n return actions.editContent(technique);\n },\n size: \"sm\",\n title: t('button.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_5__[\"default\"].EDIT, {\n title: \"\"\n })\n }) : null]\n }), technique && technique.rulesets ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_Rulesets__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n technique: technique\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_Outline__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n technique: technique\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_Requirements__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n technique: technique\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_RawHTML__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n html: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(technique, 'description', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language)\n }), technique.chapters ? technique.chapters.map(function (chapter) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"section\", {\n id: \"c\".concat(chapter.id),\n children: [chapter.pivot.level ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"h\".concat(chapter.pivot.level), {}, (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(chapter, 'title', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language), actions.editContent ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n className: \"ms-3\",\n onClick: function onClick() {\n return actions.editContent(chapter);\n },\n size: \"sm\",\n title: t('button.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_5__[\"default\"].EDIT, {\n title: \"\"\n })\n }) : null) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_RawHTML__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n html: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(chapter, 'description', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language)\n })]\n }, \"c\".concat(chapter.id));\n }) : null, (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.hasRelations)(technique, 'related') ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(\"h2\", {\n className: \"mt-5\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('techniques.seeAlso')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_List__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n techniques: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.sorted)((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getRelations)(technique, 'related'))\n })]\n }) : null, (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(technique, 'attribution', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n variant: \"dark\",\n children: (0,_helpers_nl2br__WEBPACK_IMPORTED_MODULE_7__[\"default\"])((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_8__.getTranslation)(technique, 'attribution', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].language))\n }) : null]\n });\n};\n\nDetail.propTypes = {\n actions: prop_types__WEBPACK_IMPORTED_MODULE_15___default().shape({\n editContent: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)\n }),\n technique: prop_types__WEBPACK_IMPORTED_MODULE_15___default().shape({\n chapters: prop_types__WEBPACK_IMPORTED_MODULE_15___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_15___default().shape({})),\n description: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),\n rulesets: prop_types__WEBPACK_IMPORTED_MODULE_15___default().shape({}),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Detail);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL0RldGFpbC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFNQTs7Ozs7QUFFQSxJQUFNa0IsTUFBTSxHQUFHLFNBQVRBLE1BQVMsT0FBNEI7QUFBQSxNQUF6QkMsT0FBeUIsUUFBekJBLE9BQXlCO0FBQUEsTUFBaEJDLFNBQWdCLFFBQWhCQSxTQUFnQjs7QUFDMUMsd0JBQWNmLDhEQUFjLEVBQTVCO0FBQUEsTUFBUWdCLENBQVIsbUJBQVFBLENBQVI7O0FBRUEsc0JBQU8seURBQUMsd0RBQUQ7QUFBVyxNQUFFLEVBQUMsU0FBZDtBQUFBLDRCQUNOO0FBQUssZUFBUyxFQUFDLG1EQUFmO0FBQUEsOEJBQ0M7QUFBQSxtQkFDRVAsa0VBQWMsQ0FBQ00sU0FBRCxFQUFZLE9BQVosRUFBcUJILHNEQUFyQixDQURoQixFQUVFRSxPQUFPLENBQUNJLFdBQVIsZ0JBQ0Esd0RBQUMsd0RBQUQ7QUFDQyxtQkFBUyxFQUFDLE1BRFg7QUFFQyxpQkFBTyxFQUFFO0FBQUEsbUJBQU1KLE9BQU8sQ0FBQ0ksV0FBUixDQUFvQkgsU0FBcEIsQ0FBTjtBQUFBLFdBRlY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9uIiwic3RyaW5nIiwidGl0bGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Detail.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Dialog.js": -/*!******************************************************!*\ - !*** ./resources/js/components/techniques/Dialog.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ \"./resources/js/components/techniques/Form.js\");\n/* harmony import */ var _app_LanguageSwitcher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../app/LanguageSwitcher */ \"./resources/js/app/LanguageSwitcher.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar Dialog = function Dialog(_ref) {\n var content = _ref.content,\n language = _ref.language,\n onHide = _ref.onHide,\n onSubmit = _ref.onSubmit,\n show = _ref.show;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onHide: onHide,\n show: show,\n size: \"lg\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Header, {\n closeButton: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Title, {\n children: t('content.edit')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"mx-3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_app_LanguageSwitcher__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {})\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Form__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n content: content,\n language: language,\n onCancel: onHide,\n onSubmit: onSubmit\n })]\n });\n};\n\nDialog.propTypes = {\n content: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({}),\n language: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset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VkaXQnKX1cblx0XHRcdDwvTW9kYWwuVGl0bGU+XG5cdFx0XHQ8ZGl2IGNsYXNzTmFtZT1cIm14LTNcIj5cblx0XHRcdFx0PExhbmd1YWdlU3dpdGNoZXIgLz5cblx0XHRcdDwvZGl2PlxuXHRcdDwvTW9kYWwuSGVhZGVyPlxuXHRcdDxGb3JtXG5cdFx0XHRjb250ZW50PXtjb250ZW50fVxuXHRcdFx0bGFuZ3VhZ2U9e2xhbmd1YWdlfVxuXHRcdFx0b25DYW5jZWw9e29uSGlkZX1cblx0XHRcdG9uU3VibWl0PXtvblN1Ym1pdH1cblx0XHQvPlxuXHQ8L01vZGFsPjtcbn07XG5cbkRpYWxvZy5wcm9wVHlwZXMgPSB7XG5cdGNvbnRlbnQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxuXHRsYW5ndWFnZTogUHJvcFR5cGVzLnN0cmluZyxcblx0b25IaWRlOiBQcm9wVHlwZXMuZnVuYyxcblx0b25TdWJtaXQ6IFByb3BUeXBlcy5mdW5jLFxuXHRzaG93OiBQcm9wVHlwZXMuYm9vbCxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IERpYWxvZztcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIk1vZGFsIiwidXNlVHJhbnNsYXRpb24iLCJGb3JtIiwiTGFuZ3VhZ2VTd2l0Y2hlciIsIkRpYWxvZyIsImNvbnRlbnQiLCJsYW5ndWFnZSIsIm9uSGlkZSIsIm9uU3VibWl0Iiwic2hvdyIsInQiLCJwcm9wVHlwZXMiLCJzaGFwZSIsInN0cmluZyIsImZ1bmMiLCJib29sIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Dialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Form.js": -/*!****************************************************!*\ - !*** ./resources/js/components/techniques/Form.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _common_HTMLInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/HTMLInput */ \"./resources/js/components/common/HTMLInput.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar ContentForm = function ContentForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n values = _ref.values;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Body, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n md: 6,\n controlId: \"content.title\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n children: t('content.title')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n isInvalid: !!(touched.title && errors.title),\n name: \"title\",\n onBlur: handleBlur,\n onChange: handleChange,\n type: \"text\",\n value: values.title || ''\n })]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n controlId: \"content.short\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n children: t('content.short')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n as: \"textarea\",\n isInvalid: !!(touched[\"short\"] && errors[\"short\"]),\n name: \"short\",\n onBlur: handleBlur,\n onChange: handleChange,\n rows: 3,\n value: values[\"short\"] || ''\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n controlId: \"content.description\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n children: t('content.description')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n as: _common_HTMLInput__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n isInvalid: !!(touched.description && errors.description),\n name: \"description\",\n onBlur: handleBlur,\n onChange: handleChange,\n rows: 10,\n value: values.description || ''\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Group, {\n controlId: \"content.attribution\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Label, {\n children: t('content.attribution')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"].Control, {\n as: \"textarea\",\n isInvalid: !!(touched.attribution && errors.attribution),\n name: \"attribution\",\n onBlur: handleBlur,\n onChange: handleChange,\n rows: 3,\n value: values.attribution || ''\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: t('button.save')\n })]\n })]\n });\n};\n\nContentForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n attribution: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n description: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n \"short\": (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n attribution: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),\n description: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),\n \"short\": (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({\n attribution: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n description: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n \"short\": (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_1__.withFormik)({\n displayName: 'ContentForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var onSubmit;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n onSubmit = actions.props.onSubmit;\n _context.next = 3;\n return onSubmit(values);\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var content = _ref2.content,\n language = _ref2.language;\n return {\n attribution: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(content, 'attribution', language),\n description: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(content, 'description', language),\n id: content && content.id || null,\n language: language,\n \"short\": (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(content, 'short', language),\n title: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_4__.getTranslation)(content, 'title', language)\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].object().shape({\n attribution: _schema_yup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].string(),\n description: _schema_yup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].string(),\n \"short\": _schema_yup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].string(),\n title: _schema_yup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].string()\n })\n})(ContentForm));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL0Zvcm0uanMuanMiLCJtYXBw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V0aW9uOiB5dXAuc3RyaW5nKCksXG5cdFx0ZGVzY3JpcHRpb246IHl1cC5zdHJpbmcoKSxcblx0XHRzaG9ydDogeXVwLnN0cmluZygpLFxuXHRcdHRpdGxlOiB5dXAuc3RyaW5nKCksXG5cdH0pLFxufSkoQ29udGVudEZvcm0pO1xuIl0sIm5hbWVzIjpbIndpdGhGb3JtaWsiLCJQcm9wVHlwZXMiLCJSZWFjdCIsIkJ1dHRvbiIsIkNvbCIsIkZvcm0iLCJNb2RhbCIsIlJvdyIsInVzZVRyYW5zbGF0aW9uIiwiSFRNTElucHV0IiwiZ2V0VHJhbnNsYXRpb24iLCJ5dXAiLCJDb250ZW50Rm9ybSIsImVycm9ycyIsImhhbmRsZUJsdXIiLCJoYW5kbGVDaGFuZ2UiLCJoYW5kbGVTdWJtaXQiLCJvbkNhbmNlbCIsInRvdWNoZWQiLCJ2YWx1ZXMiLCJ0IiwidGl0bGUiLCJkZXNjcmlwdGlvbiIsImF0dHJpYnV0aW9uIiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJmdW5jIiwiYm9vbCIsImRpc3BsYXlOYW1lIiwiZW5hYmxlUmVpbml0aWFsaXplIiwiYWN0aW9ucyIsIm9uU3VibWl0IiwicHJvcHMiLCJtYXBQcm9wc1RvVmFsdWVzIiwiY29udGVudCIsImxhbmd1YWdlIiwiaWQiLCJ2YWxpZGF0aW9uU2NoZW1hIiwib2JqZWN0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Form.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/List.js": -/*!****************************************************!*\ - !*** ./resources/js/components/techniques/List.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/index.js\");\n/* harmony import */ var _Rulesets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Rulesets */ \"./resources/js/components/techniques/Rulesets.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar List = function List(_ref) {\n var techniques = _ref.techniques;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"ul\", {\n className: \"tech-list\",\n children: techniques.map(function (tech) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"li\", {\n className: \"d-flex align-items-start justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"h2\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Link, {\n to: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getLink)(tech),\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(tech, 'title', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"p\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_2__.getTranslation)(tech, 'short', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].language)\n })]\n }), tech.rulesets ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Rulesets__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n technique: tech\n }) : null]\n }, tech.id);\n })\n });\n};\n\nList.propTypes = {\n techniques: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),\n name: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)\n }))\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL0xpc3QuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUlBOzs7O0FBRUEsSUFBTU8sSUFBSSxHQUFHLFNBQVBBLElBQU87QUFBQSxNQUFHQyxVQUFILFFBQUdBLFVBQUg7QUFBQSxzQkFBb0I7QUFBSSxhQUFTLEVBQUMsV0FBZDtBQUFBLGNBQy9CQSxVQUFVLENBQUNDLEdB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RuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuXHR9KSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCBMaXN0O1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTGluayIsIlJ1bGVzZXRzIiwiZ2V0TGluayIsImdldFRyYW5zbGF0aW9uIiwiaTE4biIsIkxpc3QiLCJ0ZWNobmlxdWVzIiwibWFwIiwidGVjaCIsImxhbmd1YWdlIiwicnVsZXNldHMiLCJpZCIsInByb3BUeXBlcyIsImFycmF5T2YiLCJzaGFwZSIsIm51bWJlciIsIm5hbWUiLCJzdHJpbmciXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/List.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Outline.js": -/*!*******************************************************!*\ - !*** ./resources/js/components/techniques/Outline.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/ListGroup.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\nvar Outline = function Outline(_ref) {\n var technique = _ref.technique;\n return technique.chapters && technique.chapters.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"aside\", {\n className: \"tech-outline mb-3 ms-3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n children: technique.chapters.map(function (chapter) {\n return chapter.pivot.level ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Item, {\n action: true,\n href: \"#c\".concat(chapter.id),\n title: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_1__.getTranslation)(chapter, 'short', _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].language) || null,\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_1__.getTranslation)(chapter, 'title', _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].language)\n }, \"c\".concat(chapter.id)) : null;\n })\n })\n }) : null;\n};\n\nOutline.propTypes = {\n technique: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({\n chapters: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({}))\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_I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G5cdFx0XHRcdFx0a2V5PXtgYyR7Y2hhcHRlci5pZH1gfVxuXHRcdFx0XHRcdHRpdGxlPXtnZXRUcmFuc2xhdGlvbihjaGFwdGVyLCAnc2hvcnQnLCBpMThuLmxhbmd1YWdlKSB8fCBudWxsfVxuXHRcdFx0XHQ+XG5cdFx0XHRcdFx0e2dldFRyYW5zbGF0aW9uKGNoYXB0ZXIsICd0aXRsZScsIGkxOG4ubGFuZ3VhZ2UpfVxuXHRcdFx0XHQ8L0xpc3RHcm91cC5JdGVtPlxuXHRcdFx0OiBudWxsKX1cblx0XHQ8L0xpc3RHcm91cD5cblx0PC9hc2lkZT5cbjogbnVsbDtcblxuT3V0bGluZS5wcm9wVHlwZXMgPSB7XG5cdHRlY2huaXF1ZTogUHJvcFR5cGVzLnNoYXBlKHtcblx0XHRjaGFwdGVyczogUHJvcFR5cGVzLmFycmF5T2YoUHJvcFR5cGVzLnNoYXBlKHtcblx0XHR9KSksXG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFRyYW5zbGF0aW9uKCkoT3V0bGluZSk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJMaXN0R3JvdXAiLCJ3aXRoVHJhbnNsYXRpb24iLCJnZXRUcmFuc2xhdGlvbiIsImkxOG4iLCJPdXRsaW5lIiwidGVjaG5pcXVlIiwiY2hhcHRlcnMiLCJsZW5ndGgiLCJtYXAiLCJjaGFwdGVyIiwicGl2b3QiLCJsZXZlbCIsImlkIiwibGFuZ3VhZ2UiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImFycmF5T2YiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Outline.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Overview.js": -/*!********************************************************!*\ - !*** ./resources/js/components/techniques/Overview.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ \"./resources/js/components/techniques/List.js\");\n/* harmony import */ var _TechFilter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TechFilter */ \"./resources/js/components/techniques/TechFilter.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\nvar Overview = function Overview(_ref) {\n var filter = _ref.filter,\n namespace = _ref.namespace,\n setFilter = _ref.setFilter,\n techniques = _ref.techniques,\n type = _ref.type;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"h1\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t(\"\".concat(namespace, \".heading\"))\n }), type === 'tech' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_TechFilter__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n filter: filter,\n setFilter: setFilter\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_List__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n techniques: techniques\n })]\n });\n};\n\nOverview.propTypes = {\n filter: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({}),\n namespace: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n setFilter: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n techniques: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.withTranslation)()(Overview));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL092ZXJ2aWV3LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7OztBQUVBLElBQU1PLFFBQVEsR0FBRyxTQUFYQSxRQUFXO0FBQUEsTUFDaEJDLE1B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9wVHlwZXMuYXJyYXlPZihQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSksXG5cdHR5cGU6IFByb3BUeXBlcy5zdHJpbmcsXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShPdmVydmlldyk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJDb250YWluZXIiLCJ3aXRoVHJhbnNsYXRpb24iLCJMaXN0IiwiVGVjaEZpbHRlciIsImkxOG4iLCJPdmVydmlldyIsImZpbHRlciIsIm5hbWVzcGFjZSIsInNldEZpbHRlciIsInRlY2huaXF1ZXMiLCJ0eXBlIiwidCIsInByb3BUeXBlcyIsInNoYXBlIiwic3RyaW5nIiwiZnVuYyIsImFycmF5T2YiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Overview.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Requirement.js": -/*!***********************************************************!*\ - !*** ./resources/js/components/techniques/Requirement.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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/ZeldaIcon */ \"./resources/js/components/common/ZeldaIcon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar Requirement = function Requirement(_ref) {\n var requirement = _ref.requirement;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"requirement\",\n children: requirement.map(function (r) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n name: r\n }, r);\n })\n });\n};\n\nRequirement.propTypes = {\n requirement: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Requirement);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL1JlcXVpcmVtZW50LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFQTs7O0FBRUEsSUFBTUcsV0FBVyxHQUFHLFNBQWRBLFdBQWM7QUFBQSxNQUFHQyxXQUFILFFBQUdBLFdBQUg7QUFBQSxzQkFDbkI7QUFBSyxhQUFTLEVBQUMsYUFBZjtBQUFBLGNBQ0VBLFdBQVcsQ0FBQ0MsR0FBWixDQUFnQixVQUFBQyxDQUFDO0FBQUEsMEJBQ2pCLHVEQUFDLHlEQUFEO0FBQW1CLFlBQUksRUFBRUE7QUFBekIsU0FBZ0JBLENBQWhCLENBRGlCO0FBQUEsS0FBakI7QUFERixJQURtQjtBQUFBLENBQXBCOztBQU9BSCxXQUFXLENBQUNJLFNBQVosR0FBd0I7QUFDdkJILEVBQUFBLFdBQVcsRUFBRUoseURBQUEsQ0FBa0JBLDBEQUFsQjtBQURVLENBQXhCO0FBSUEsaUVBQWVHLFdBQWYiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL1JlcXVpcmVtZW50LmpzP2Q0NzgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCBaZWxkYUljb24gZnJvbSAnLi4vY29tbW9uL1plbGRhSWNvbic7XG5cbmNvbnN0IFJlcXVpcmVtZW50ID0gKHsgcmVxdWlyZW1lbnQgfSkgPT5cblx0PGRpdiBjbGFzc05hbWU9XCJyZXF1aXJlbWVudFwiPlxuXHRcdHtyZXF1aXJlbWVudC5tYXAociA9PlxuXHRcdFx0PFplbGRhSWNvbiBrZXk9e3J9IG5hbWU9e3J9IC8+XG5cdFx0KX1cblx0PC9kaXY+O1xuXG5SZXF1aXJlbWVudC5wcm9wVHlwZXMgPSB7XG5cdHJlcXVpcmVtZW50OiBQcm9wVHlwZXMuYXJyYXlPZihQcm9wVHlwZXMuc3RyaW5nKSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVtZW50O1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiWmVsZGFJY29uIiwiUmVxdWlyZW1lbnQiLCJyZXF1aXJlbWVudCIsIm1hcCIsInIiLCJwcm9wVHlwZXMiLCJhcnJheU9mIiwic3RyaW5nIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Requirement.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Requirements.js": -/*!************************************************************!*\ - !*** ./resources/js/components/techniques/Requirements.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _Requirement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Requirement */ \"./resources/js/components/techniques/Requirement.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar Requirements = function Requirements(_ref) {\n var technique = _ref.technique;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n if (!technique.requirements || !technique.requirements.length) {\n return null;\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"tech-requirements mb-3\",\n children: [t('techniques.requirements'), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"ul\", {\n children: technique.requirements.map(function (r, i) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"li\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Requirement__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n requirement: r\n })\n }, i);\n })\n })]\n });\n};\n\nRequirements.propTypes = {\n technique: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n requirements: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)))\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Requirements);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL1JlcXVpcmVtZW50cy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7Ozs7QUFFQSxJQUFNSSxZQUFZLEdBQUcsU0FBZkEsWUFBZSxPQUFtQjtBQUFBLE1BQWhCQyxTQUFnQixRQUFoQkEsU0FBZ0I7O0FBQ3ZDLHdCQUFjSCw2REFBYyxFQUE1QjtBQUFBLE1BQVFJLENBQVIsbUJBQVFBLENBQVI7O0FBRUEsTUFBSSxDQUFDRCxTQUFTLENBQUNFLFlBQVgsSUFBMkIsQ0FBQ0YsU0FBUyxDQUFDRSxZQUFWLENBQXVCQyxNQUF2RCxFQUErRDtBQUM5RCxXQUFPLElBQVA7QUFDQTs7QUFFRCxzQkFBTztBQUFLLGFBQVMsRUFBQyx3QkFBZjtBQUFBLGVBQ0xGLENBQUMsQ0FBQyx5QkFBRCxDQURJLGVBRU47QUFBQSxnQkFDRUQsU0FBUyxDQUFDRSxZQUFWLENBQXVCRSxHQUF2QixDQUEyQixVQUFDQyxDQUFELEVBQUlDLENBQUo7QUFBQSw0QkFDM0I7QUFBQSxpQ0FDQyx1REFBQyxvREFBRDtBQUFhLHVCQUFXLEVBQUVEO0FBQTFCO0FBREQsV0FBU0MsQ0FBVCxDQUQ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17aX0+XG5cdFx0XHRcdFx0PFJlcXVpcmVtZW50IHJlcXVpcmVtZW50PXtyfSAvPlxuXHRcdFx0XHQ8L2xpPlxuXHRcdFx0KX1cblx0XHQ8L3VsPlxuXHQ8L2Rpdj47XG59O1xuXG5SZXF1aXJlbWVudHMucHJvcFR5cGVzID0ge1xuXHR0ZWNobmlxdWU6IFByb3BUeXBlcy5zaGFwZSh7XG5cdFx0cmVxdWlyZW1lbnRzOiBQcm9wVHlwZXMuYXJyYXlPZihcblx0XHRcdFByb3BUeXBlcy5hcnJheU9mKFByb3BUeXBlcy5zdHJpbmcpLFxuXHRcdCksXG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgUmVxdWlyZW1lbnRzO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwidXNlVHJhbnNsYXRpb24iLCJSZXF1aXJlbWVudCIsIlJlcXVpcmVtZW50cyIsInRlY2huaXF1ZSIsInQiLCJyZXF1aXJlbWVudHMiLCJsZW5ndGgiLCJtYXAiLCJyIiwiaSIsInByb3BUeXBlcyIsInNoYXBlIiwiYXJyYXlPZiIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Requirements.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/Rulesets.js": -/*!********************************************************!*\ - !*** ./resources/js/components/techniques/Rulesets.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar Rulesets = function Rulesets(_ref) {\n var technique = _ref.technique;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_3__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"ruleset-box\",\n children: ['competitive', 'owg', 'mg', 'nl'].map(function (r) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"span\", {\n title: t(\"techniques.rulesetDescriptions.\".concat(r)),\n children: [technique && technique.rulesets && technique.rulesets[r] ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ALLOWED, {\n className: \"text-success\"\n }) : null, technique && technique.rulesets && !technique.rulesets[r] ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FORBIDDEN, {\n className: \"text-danger\"\n }) : null, !technique || !technique.rulesets ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].UNKNOWN, {}) : null, ' ', t(\"techniques.rulesetCodes.\".concat(r))]\n }, r);\n })\n });\n};\n\nRulesets.propTypes = {\n technique: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n rulesets: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({})\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rulesets);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL1J1bGVzZXRzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTs7OztBQUVBLElBQU1JLFFBQVEsR0FBRyxTQUFYQSxRQUFXLE9BQW1CO0FBQUEsTUFBaEJDLFNBQWdCLFFBQWhCQSxTQUFnQjs7QUFDbkMsd0JBQWNILDZEQUFjLEVBQTVCO0FBQUEsTUFBUUksQ0FBUixtQkFBUUEsQ0FBUjs7QUFFQSxzQkFBTztBQUFLLGFBQVMsRUFBQyxhQUFmO0FBQUEsY0FDTCxDQUFDLGFBQUQsRUFBZ0IsS0FBaEIsRUFBdUIsSUFBdkIsRUFBNkIsSUFBN0IsRUFBbUNDLEdBQW5DLENBQXVDLFVBQUFDLENBQUM7QUFBQSwwQkFDeEM7QUFBYyxhQUFLLEVBQUVGLENBQUMsMENBQW1DRSxDQUFuQyxFQUF0QjtBQUFBLG1CQUNFSCxTQUFTLElBQUlBLFNBQVMsQ0FBQ0ksUUFBdkIsSUFBbUNKLFNBQVMsQ0FBQ0ksUUFBVixDQUFtQkQsQ0FBbkIsQ0FBbkMsZ0JBQ0EsdURBQUMsNERBQUQ7QUFBYyxtQkFBUyxFQUFDO0FBQXhCLFVBREEsR0FFQyxJQUhILEVBSUVILFNBQVMsSUFBSUEsU0FBUyxDQUFDSSxRQUF2QixJQUFtQyxD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huaXF1ZSIsInQiLCJtYXAiLCJyIiwicnVsZXNldHMiLCJwcm9wVHlwZXMiLCJzaGFwZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/Rulesets.js\n"); - -/***/ }), - -/***/ "./resources/js/components/techniques/TechFilter.js": -/*!**********************************************************!*\ - !*** ./resources/js/components/techniques/TechFilter.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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\n\nvar TechFilter = function TechFilter(_ref) {\n var filter = _ref.filter,\n setFilter = _ref.setFilter;\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_2__.useTranslation)(),\n t = _useTranslation.t;\n\n var handleChange = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (e) {\n if (e.target.name.startsWith('ruleset.')) {\n var r = e.target.name.substring(8);\n setFilter(_objectSpread(_objectSpread({}, filter), {}, {\n ruleset: _objectSpread(_objectSpread({}, filter.ruleset || {}), {}, _defineProperty({}, r, e.target.checked ? '1' : '0'))\n }));\n }\n }, [filter]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(\"div\", {\n className: \"tech-filter\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"div\", {\n children: t('techniques.rulesetFilterHeading')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"div\", {\n className: \"ruleset-box\",\n children: ['competitive', 'owg', 'mg', 'nl'].map(function (r) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Check, {\n checked: !!(filter && filter.ruleset && filter.ruleset[r] === '1'),\n id: \"tech.filter.ruleset.\".concat(r),\n name: \"ruleset.\".concat(r),\n label: t(\"techniques.rulesetCodes.\".concat(r)),\n onChange: handleChange,\n title: t(\"techniques.rulesetDescriptions.\".concat(r)),\n type: \"checkbox\"\n }, r);\n })\n })]\n });\n};\n\nTechFilter.propTypes = {\n filter: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({\n ruleset: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({})\n }),\n setFilter: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TechFilter);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90ZWNobmlxdWVzL1RlY2hGaWx0ZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTUksVUFBVSxHQUFHLFNBQWJBLFVBQWEsT0FBMkI7QUFBQSxNQUF4QkMsTUFBd0IsUUFBeEJBLE1BQXdCO0FBQUEsTUFBaEJDLFNBQWdCLFFBQWhCQSxTQUFnQjs7QUFDN0Msd0JBQWNILDZEQUFjLEVBQTVCO0FBQUEsTUFBUUksQ0FBUixtQkFBUUEsQ0FBUjs7QUFFQSxNQUFNQyxZQUFZLEdBQUdQLDhDQUFBLENBQWtCLFVBQUFTLENBQUMsRUFBSTtBQUMzQyxRQUFJQSxDQUFDLENBQUNDLE1BQUYsQ0FBU0MsSUFBVCxDQUFjQyxVQUFkLENBQXlCLFVBQXpCLENBQUosRUFBMEM7QUFDekMsVUFBTUMsQ0FBQyxHQUFHSixDQUFDLENBQUNDLE1BQUYsQ0FBU0MsSUFBVCxDQUFjRyxTQUFkLENBQXdCLENBQXhCLENBQVY7QUFDQVQsTUFBQUEsU0FBUyxpQ0FDTEQsTUFESztBQUVSVyxRQUFBQSxPQU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VHlwZXMiLCJSZWFjdCIsIkZvcm0iLCJ1c2VUcmFuc2xhdGlvbiIsIlRlY2hGaWx0ZXIiLCJmaWx0ZXIiLCJzZXRGaWx0ZXIiLCJ0IiwiaGFuZGxlQ2hhbmdlIiwidXNlQ2FsbGJhY2siLCJlIiwidGFyZ2V0IiwibmFtZSIsInN0YXJ0c1dpdGgiLCJyIiwic3Vic3RyaW5nIiwicnVsZXNldCIsImNoZWNrZWQiLCJtYXAiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImZ1bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/techniques/TechFilter.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/ApplyButton.js": -/*!***********************************************************!*\ - !*** ./resources/js/components/tournament/ApplyButton.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar apply = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(tournament) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/apply\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.applySuccess'));\n _context.next = 9;\n break;\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.applyError'));\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 6]]);\n }));\n\n return function apply(_x) {\n return _ref.apply(this, arguments);\n };\n}();\n\nvar getTitle = function getTitle(user, tournament) {\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.isDeniedApplicant)(user, tournament)) {\n return _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.applicationDenied');\n }\n\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.isApplicant)(user, tournament)) {\n return _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.applicationPending');\n }\n\n return _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.apply');\n};\n\nvar ApplyButton = function ApplyButton(_ref2) {\n var tournament = _ref2.tournament,\n user = _ref2.user;\n if (!user || !tournament.accept_applications || (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.isRunner)(user, tournament)) return null;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"span\", {\n className: \"d-inline-block\",\n title: getTitle(user, tournament),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n disabled: !(0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_5__.mayApply)(user, tournament),\n onClick: function onClick() {\n return apply(tournament);\n },\n variant: \"primary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_4__[\"default\"].APPLY, {\n title: \"\"\n })\n })\n });\n};\n\nApplyButton.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({\n accept_applications: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_11__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_6__.withUser)(ApplyButton)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L0FwcGx5QnV0dG9uLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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VHJhbnNsYXRpb24iLCJ0b2FzdHIiLCJJY29uIiwiaXNBcHBsaWNhbnQiLCJpc0RlbmllZEFwcGxpY2FudCIsImlzUnVubmVyIiwibWF5QXBwbHkiLCJ3aXRoVXNlciIsImkxOG4iLCJhcHBseSIsInRvdXJuYW1lbnQiLCJwb3N0IiwiaWQiLCJzdWNjZXNzIiwidCIsImVycm9yIiwiZ2V0VGl0bGUiLCJ1c2VyIiwiQXBwbHlCdXR0b24iLCJhY2NlcHRfYXBwbGljYXRpb25zIiwicHJvcFR5cGVzIiwic2hhcGUiLCJib29sIiwibnVtYmVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/ApplyButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/Detail.js": -/*!******************************************************!*\ - !*** ./resources/js/components/tournament/Detail.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 prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _ApplyButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApplyButton */ \"./resources/js/components/tournament/ApplyButton.js\");\n/* harmony import */ var _Scoreboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Scoreboard */ \"./resources/js/components/tournament/Scoreboard.js\");\n/* harmony import */ var _ScoreChartButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ScoreChartButton */ \"./resources/js/components/tournament/ScoreChartButton.js\");\n/* harmony import */ var _SettingsButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SettingsButton */ \"./resources/js/components/tournament/SettingsButton.js\");\n/* harmony import */ var _applications_Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../applications/Button */ \"./resources/js/components/applications/Button.js\");\n/* harmony import */ var _protocol_Protocol__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../protocol/Protocol */ \"./resources/js/components/protocol/Protocol.js\");\n/* harmony import */ var _rounds_List__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rounds/List */ \"./resources/js/components/rounds/List.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getClassName = function getClassName(tournament, user) {\n var classNames = ['tournament'];\n\n if (tournament.locked) {\n classNames.push('is-locked');\n } else {\n classNames.push('is-active');\n }\n\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_9__.isRunner)(user, tournament)) {\n classNames.push('is-runner');\n }\n\n return classNames.join(' ');\n};\n\nvar Detail = function Detail(_ref) {\n var addRound = _ref.addRound,\n tournament = _ref.tournament,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n className: getClassName(tournament, user),\n fluid: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n lg: 8,\n xl: 9,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h1\", {\n children: tournament.title\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"button-bar\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_applications_Button__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n tournament: tournament\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_ApplyButton__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n tournament: tournament\n }), (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_9__.mayUpdateTournament)(user, tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_SettingsButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n tournament: tournament\n }) : null, (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_9__.mayViewProtocol)(user, tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_protocol_Protocol__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n id: tournament.id\n }) : null]\n })]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n lg: {\n order: 2,\n span: 4\n },\n xl: {\n order: 2,\n span: 3\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"tournament-sidebar\",\n children: [(0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.hasScoreboard)(tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('tournaments.scoreboard')\n }), (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.hasRunners)(tournament) && tournament.rounds.length > 2 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_ScoreChartButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n tournament: tournament\n }) : null]\n }), (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.hasRunners)(tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_Scoreboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n tournament: tournament\n }) : null]\n }) : null, (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.hasTournamentAdmins)(tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('tournaments.admins')\n })\n }), (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.getTournamentAdmins)(tournament).map(function (p) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"p\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n user: p.user\n })\n }, p.id);\n })]\n }) : null, (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.hasTournamentMonitors)(tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('tournaments.monitors')\n })\n }), (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.getTournamentMonitors)(tournament).map(function (p) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"p\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n user: p.user\n })\n }, p.id);\n })]\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n lg: {\n order: 1,\n span: 8\n },\n xl: {\n order: 1,\n span: 9\n },\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('rounds.heading')\n }), addRound && (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_9__.mayAddRounds)(user, tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n onClick: addRound,\n children: _i18n__WEBPACK_IMPORTED_MODULE_12__[\"default\"].t('rounds.new')\n }) : null]\n }), tournament.rounds ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_rounds_List__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n rounds: tournament.rounds,\n tournament: tournament\n }) : null]\n })]\n })]\n });\n};\n\nDetail.propTypes = {\n addRound: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().func),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_18___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number),\n participants: prop_types__WEBPACK_IMPORTED_MODULE_18___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_18___default().shape({})),\n rounds: prop_types__WEBPACK_IMPORTED_MODULE_18___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_18___default().shape({})),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_18___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_19__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_11__.withUser)(Detail)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L0RldGFpbC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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iwibWF5QWRkUm91bmRzIiwibWF5VXBkYXRlVG91cm5hbWVudCIsIm1heVZpZXdQcm90b2NvbCIsImdldFRvdXJuYW1lbnRBZG1pbnMiLCJnZXRUb3VybmFtZW50TW9uaXRvcnMiLCJoYXNSdW5uZXJzIiwiaGFzU2NvcmVib2FyZCIsImhhc1RvdXJuYW1lbnRBZG1pbnMiLCJoYXNUb3VybmFtZW50TW9uaXRvcnMiLCJ3aXRoVXNlciIsImkxOG4iLCJnZXRDbGFzc05hbWUiLCJ0b3VybmFtZW50IiwidXNlciIsImNsYXNzTmFtZXMiLCJsb2NrZWQiLCJwdXNoIiwiam9pbiIsIkRldGFpbCIsImFkZFJvdW5kIiwidGl0bGUiLCJpZCIsIm9yZGVyIiwic3BhbiIsInQiLCJyb3VuZHMiLCJsZW5ndGgiLCJtYXAiLCJwIiwicHJvcFR5cGVzIiwiZnVuYyIsInNoYXBlIiwibnVtYmVyIiwicGFydGljaXBhbnRzIiwiYXJyYXlPZiIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/Detail.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/DiscordForm.js": -/*!***********************************************************!*\ - !*** ./resources/js/components/tournament/DiscordForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _common_DiscordChannelSelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/DiscordChannelSelect */ \"./resources/js/components/common/DiscordChannelSelect.js\");\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar DiscordForm = function DiscordForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n touched = _ref.touched,\n tournament = _ref.tournament,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(\"fieldset\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"legend\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.discordSettings')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n controlId: \"tournament.discord_round_category\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.discordRoundCategory')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_common_DiscordChannelSelect__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n guild: tournament.discord,\n isInvalid: !!(touched.round_category && errors.round_category),\n name: \"round_category\",\n onBlur: handleBlur,\n onChange: handleChange,\n types: [4],\n value: values.round_category || ''\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Group, {\n controlId: \"tournament.discord_round_template\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.discordRoundTemplate')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Control, {\n isInvalid: !!(touched.round_template && errors.round_template),\n name: \"round_template\",\n onBlur: handleBlur,\n onChange: handleChange,\n type: \"text\",\n value: values.round_template || ''\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n className: \"mt-3\",\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('button.save')\n })]\n })\n });\n};\n\nDiscordForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n round_category: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n round_template: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n round_category: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n round_template: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool)\n }),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n discord: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({\n round_category: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n round_template: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'DiscordForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var round_category, round_template, setErrors, tournament;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n round_category = values.round_category, round_template = values.round_template;\n setErrors = actions.setErrors;\n tournament = actions.props.tournament;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/discord-settings\"), {\n round_category: round_category,\n round_template: round_template\n });\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.discordSettingsSuccess'));\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('tournaments.discordSettingsError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 9]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var tournament = _ref2.tournament;\n return {\n round_category: tournament.discord_round_category || '',\n round_template: tournament.discord_round_template || ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_8__[\"default\"].object().shape({\n round_category: _schema_yup__WEBPACK_IMPORTED_MODULE_8__[\"default\"].string(),\n round_template: _schema_yup__WEBPACK_IMPORTED_MODULE_8__[\"default\"].string()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_13__.withTranslation)()(DiscordForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L0Rpc2NvcmRGb3JtLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFD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iwib2JqZWN0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/DiscordForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/ScoreChart.js": -/*!**********************************************************!*\ - !*** ./resources/js/components/tournament/ScoreChart.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 prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/component/ResponsiveContainer.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/chart/LineChart.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/cartesian/XAxis.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/cartesian/YAxis.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/component/Tooltip.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/component/Legend.js\");\n/* harmony import */ var recharts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! recharts */ \"./node_modules/recharts/es6/cartesian/Line.js\");\n/* harmony import */ var _helpers_Participant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar COLORS = ['#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1'];\n\nvar ScoreChart = function ScoreChart(_ref) {\n var tournament = _ref.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_4__.ResponsiveContainer, {\n height: \"100%\",\n width: \"100%\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(recharts__WEBPACK_IMPORTED_MODULE_5__.LineChart, {\n data: (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_2__.getScoreTable)(tournament),\n height: 720,\n width: 1280,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_6__.XAxis, {\n dataKey: \"number\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_7__.YAxis, {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_9__.Legend, {}), (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_2__.getRunners)(tournament).map(function (runner, index) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(recharts__WEBPACK_IMPORTED_MODULE_10__.Line, {\n dataKey: (0,_helpers_Participant__WEBPACK_IMPORTED_MODULE_1__.getUserName)(runner),\n stroke: COLORS[index % COLORS.length],\n type: \"monotone\"\n }, runner.id);\n })]\n })\n });\n};\n\nScoreChart.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScoreChart);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L1Njb3JlQ2hhcnQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7QUFFQSxJQUFNWSxNQUFNLEdBQUcsQ0FDZCxTQURjLEVBRWQsU0FGYyxFQUdkLFNBSGMsRUFJZCxTQUpjLEVBS2QsU0FMYyxFQU1kLFNBTmMsRUFPZCxTQVBjLEVBUWQsU0FSYyxFQVNkLFNBVGMsRUFVZCxTQVZjLENBQWY7O0FBYUEsSUFBTUMsVUFBVSxHQUFHLFNBQWJBLFVBQWE7QUFBQSxNQUNsQkMsVUFEa0IsUUFDbEJBLFVBRGtCO0FBQUEsc0JBR25CLHVEQUFDLHlEQUFEO0FBQXFCLFVBQU0sRUFBQyxNQUE1QjtBQUFtQyxTQUFLLEVBQUMsTUFBekM7QUFBQSwyQkFDQyx3REFBQywrQ0FBRDtBQUFXLFVBQUksRUFBRUg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Jcblx0XHRcdC8+XG5cdFx0KX1cblx0PC9MaW5lQ2hhcnQ+XG48L1Jlc3BvbnNpdmVDb250YWluZXI+O1xuXG5TY29yZUNoYXJ0LnByb3BUeXBlcyA9IHtcblx0dG91cm5hbWVudDogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTY29yZUNoYXJ0O1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTGVnZW5kIiwiTGluZSIsIkxpbmVDaGFydCIsIlJlc3BvbnNpdmVDb250YWluZXIiLCJUb29sdGlwIiwiWEF4aXMiLCJZQXhpcyIsImdldFVzZXJOYW1lIiwiZ2V0UnVubmVycyIsImdldFNjb3JlVGFibGUiLCJDT0xPUlMiLCJTY29yZUNoYXJ0IiwidG91cm5hbWVudCIsIm1hcCIsInJ1bm5lciIsImluZGV4IiwibGVuZ3RoIiwiaWQiLCJwcm9wVHlwZXMiLCJzaGFwZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/ScoreChart.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/ScoreChartButton.js": -/*!****************************************************************!*\ - !*** ./resources/js/components/tournament/ScoreChartButton.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _ScoreChartDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ScoreChartDialog */ \"./resources/js/components/tournament/ScoreChartDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar ScoreChartButton = function ScoreChartButton(_ref) {\n var tournament = _ref.tournament;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('button.chart'),\n variant: \"info\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].CHART, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ScoreChartDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n tournament: tournament,\n show: showDialog\n })]\n });\n};\n\nScoreChartButton.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})\n};\n/* harmony default export */ const __W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REaWFsb2dcblx0XHRcdG9uSGlkZT17KCkgPT4gc2V0U2hvd0RpYWxvZyhmYWxzZSl9XG5cdFx0XHR0b3VybmFtZW50PXt0b3VybmFtZW50fVxuXHRcdFx0c2hvdz17c2hvd0RpYWxvZ31cblx0XHQvPlxuXHQ8Lz47XG59O1xuXG5TY29yZUNoYXJ0QnV0dG9uLnByb3BUeXBlcyA9IHtcblx0dG91cm5hbWVudDogUHJvcFR5cGVzLnNoYXBlKHtcblx0fSksXG59O1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoVHJhbnNsYXRpb24oKShTY29yZUNoYXJ0QnV0dG9uKTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsInVzZVN0YXRlIiwiQnV0dG9uIiwid2l0aFRyYW5zbGF0aW9uIiwiU2NvcmVDaGFydERpYWxvZyIsIkljb24iLCJpMThuIiwiU2NvcmVDaGFydEJ1dHRvbiIsInRvdXJuYW1lbnQiLCJzaG93RGlhbG9nIiwic2V0U2hvd0RpYWxvZyIsInQiLCJwcm9wVHlwZXMiLCJzaGFwZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/ScoreChartButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/ScoreChartDialog.js": -/*!****************************************************************!*\ - !*** ./resources/js/components/tournament/ScoreChartDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _ScoreChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ScoreChart */ \"./resources/js/components/tournament/ScoreChart.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar ScoreChartDialog = function ScoreChartDialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show,\n tournament = _ref.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"score-chart-dialog\",\n dialogClassName: \"modal-90w\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('tournaments.scoreChart')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Body, {\n style: {\n height: '80vh'\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ScoreChart__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n tournament: tournament\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('button.close')\n })\n })]\n });\n};\n\nScoreChartDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.withTranslation)()(ScoreChartDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L1Njb3JlQ2hhcnREaWFsb2cuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTs7OztBQUVBLElBQU1PLGdCQUFnQixHQUFHLFNBQW5CQSxnQkFBbUI7QUFBQSxNQUN4QkMs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dHRvbi5jbG9zZScpfVxuXHRcdDwvQnV0dG9uPlxuXHQ8L01vZGFsLkZvb3Rlcj5cbjwvTW9kYWw+O1xuXG5TY29yZUNoYXJ0RGlhbG9nLnByb3BUeXBlcyA9IHtcblx0b25IaWRlOiBQcm9wVHlwZXMuZnVuYyxcblx0c2hvdzogUHJvcFR5cGVzLmJvb2wsXG5cdHRvdXJuYW1lbnQ6IFByb3BUeXBlcy5zaGFwZSh7XG5cdH0pLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFRyYW5zbGF0aW9uKCkoU2NvcmVDaGFydERpYWxvZyk7XG4iXSwibmFtZXMiOlsiUHJvcFR5cGVzIiwiUmVhY3QiLCJCdXR0b24iLCJNb2RhbCIsIndpdGhUcmFuc2xhdGlvbiIsIlNjb3JlQ2hhcnQiLCJpMThuIiwiU2NvcmVDaGFydERpYWxvZyIsIm9uSGlkZSIsInNob3ciLCJ0b3VybmFtZW50IiwidCIsImhlaWdodCIsInByb3BUeXBlcyIsImZ1bmMiLCJib29sIiwic2hhcGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/ScoreChartDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/Scoreboard.js": -/*!**********************************************************!*\ - !*** ./resources/js/components/tournament/Scoreboard.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 prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Table.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _users_Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../users/Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _helpers_Participant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar getRowClassName = function getRowClassName(tournament, participant, user) {\n var classNames = ['score'];\n\n if (participant && user && participant.user_id == user.id) {\n classNames.push('is-self');\n }\n\n return classNames.join(' ');\n};\n\nvar getPlacementDisplay = function getPlacementDisplay(participant) {\n if (participant.placement === 1) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FIRST_PLACE, {\n className: \"text-gold\",\n size: \"lg\"\n });\n }\n\n if (participant.placement === 2) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SECOND_PLACE, {\n className: \"text-silver\",\n size: \"lg\"\n });\n }\n\n if (participant.placement === 3) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].THIRD_PLACE, {\n className: \"text-bronze\",\n size: \"lg\"\n });\n }\n\n return participant.placement;\n};\n\nvar twitchReg = /^https?:\\/\\/(www\\.)?twitch\\.tv/;\nvar youtubeReg = /^https?:\\/\\/(www\\.)?youtu(\\.be|be\\.)/;\n\nvar getStreamVariant = function getStreamVariant(participant) {\n if (!participant || !participant.user || !participant.user.stream_link) {\n return 'outline-secondary';\n }\n\n if (twitchReg.test(participant.user.stream_link)) {\n return 'outline-twitch';\n }\n\n if (youtubeReg.test(participant.user.stream_link)) {\n return 'outline-youtube';\n }\n\n return 'outline-secondary';\n};\n\nvar getStreamIcon = function getStreamIcon(participant) {\n var variant = getStreamVariant(participant);\n\n if (variant === 'outline-twitch') {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].TWITCH, {\n title: \"\"\n });\n }\n\n if (variant === 'outline-youtube') {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].YOUTUBE, {\n title: \"\"\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].VIDEO, {\n title: \"\"\n });\n};\n\nvar Scoreboard = function Scoreboard(_ref) {\n var tournament = _ref.tournament,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n striped: true,\n className: \"scoreboard align-middle\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"thead\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"tr\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"th\", {\n className: \"text-center\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('participants.placementShort')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"th\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('participants.participant')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"th\", {\n className: \"text-end\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('participants.scoreShort')\n })]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"tbody\", {\n children: (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_4__.getRunners)(tournament).sort(_helpers_Participant__WEBPACK_IMPORTED_MODULE_3__.comparePlacement).map(function (participant) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"tr\", {\n className: getRowClassName(tournament, participant, user),\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"td\", {\n className: \"text-center\",\n children: getPlacementDisplay(participant)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"td\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_users_Box__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n user: participant.user\n }), participant.user.stream_link ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n href: participant.user.stream_link,\n size: \"sm\",\n target: \"_blank\",\n title: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.stream'),\n variant: getStreamVariant(participant),\n children: getStreamIcon(participant)\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(\"td\", {\n className: \"text-end\",\n children: participant.score\n })]\n }, participant.id);\n })\n })]\n });\n};\n\nScoreboard.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_11__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_5__.withUser)(Scoreboard)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L1Njb3JlYm9hcmQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNB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Qcm9wVHlwZXMiLCJSZWFjdCIsIkJ1dHRvbiIsIlRhYmxlIiwid2l0aFRyYW5zbGF0aW9uIiwiSWNvbiIsIkJveCIsImNvbXBhcmVQbGFjZW1lbnQiLCJnZXRSdW5uZXJzIiwid2l0aFVzZXIiLCJpMThuIiwiZ2V0Um93Q2xhc3NOYW1lIiwidG91cm5hbWVudCIsInBhcnRpY2lwYW50IiwidXNlciIsImNsYXNzTmFtZXMiLCJ1c2VyX2lkIiwiaWQiLCJwdXNoIiwiam9pbiIsImdldFBsYWNlbWVudERpc3BsYXkiLCJwbGFjZW1lbnQiLCJ0d2l0Y2hSZWciLCJ5b3V0dWJlUmVnIiwiZ2V0U3RyZWFtVmFyaWFudCIsInN0cmVhbV9saW5rIiwidGVzdCIsImdldFN0cmVhbUljb24iLCJ2YXJpYW50IiwiU2NvcmVib2FyZCIsInQiLCJzb3J0IiwibWFwIiwic2NvcmUiLCJwcm9wVHlwZXMiLCJzaGFwZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/Scoreboard.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/SettingsButton.js": -/*!**************************************************************!*\ - !*** ./resources/js/components/tournament/SettingsButton.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _SettingsDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SettingsDialog */ \"./resources/js/components/tournament/SettingsDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\nvar SettingsButton = function SettingsButton(_ref) {\n var tournament = _ref.tournament;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('button.settings'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].SETTINGS, {\n title: \"\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_SettingsDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n tournament: tournament,\n show: showDialog\n })]\n });\n};\n\nSettingsButton.propTypes = {\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__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ZGU9eygpID0+IHNldFNob3dEaWFsb2coZmFsc2UpfVxuXHRcdFx0dG91cm5hbWVudD17dG91cm5hbWVudH1cblx0XHRcdHNob3c9e3Nob3dEaWFsb2d9XG5cdFx0Lz5cblx0PC8+O1xufTtcblxuU2V0dGluZ3NCdXR0b24ucHJvcFR5cGVzID0ge1xuXHR0b3VybmFtZW50OiBQcm9wVHlwZXMuc2hhcGUoe1xuXHR9KSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhUcmFuc2xhdGlvbigpKFNldHRpbmdzQnV0dG9uKTtcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsInVzZVN0YXRlIiwiQnV0dG9uIiwid2l0aFRyYW5zbGF0aW9uIiwiU2V0dGluZ3NEaWFsb2ciLCJJY29uIiwiaTE4biIsIlNldHRpbmdzQnV0dG9uIiwidG91cm5hbWVudCIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwidCIsInByb3BUeXBlcyIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/SettingsButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/tournament/SettingsDialog.js": -/*!**************************************************************!*\ - !*** ./resources/js/components/tournament/SettingsDialog.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _DiscordForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DiscordForm */ \"./resources/js/components/tournament/DiscordForm.js\");\n/* harmony import */ var _common_DiscordSelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/DiscordSelect */ \"./resources/js/components/common/DiscordSelect.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ToggleSwitch */ \"./resources/js/components/common/ToggleSwitch.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar open = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(tournament) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/open\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.openSuccess'));\n _context.next = 9;\n break;\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.openError'));\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 6]]);\n }));\n\n return function open(_x) {\n return _ref.apply(this, arguments);\n };\n}();\n\nvar close = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(tournament) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/close\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.closeSuccess'));\n _context2.next = 9;\n break;\n\n case 6:\n _context2.prev = 6;\n _context2.t0 = _context2[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.closeError'));\n\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[0, 6]]);\n }));\n\n return function close(_x2) {\n return _ref2.apply(this, arguments);\n };\n}();\n\nvar lock = /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee3(tournament) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/lock\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.lockSuccess'));\n _context3.next = 9;\n break;\n\n case 6:\n _context3.prev = 6;\n _context3.t0 = _context3[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.lockError'));\n\n case 9:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[0, 6]]);\n }));\n\n return function lock(_x3) {\n return _ref3.apply(this, arguments);\n };\n}();\n\nvar unlock = /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee4(tournament) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.prev = 0;\n _context4.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/unlock\"));\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.unlockSuccess'));\n _context4.next = 9;\n break;\n\n case 6:\n _context4.prev = 6;\n _context4.t0 = _context4[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.unlockError'));\n\n case 9:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[0, 6]]);\n }));\n\n return function unlock(_x4) {\n return _ref4.apply(this, arguments);\n };\n}();\n\nvar setDiscord = /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee5(tournament, guild_id) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.prev = 0;\n _context5.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/tournaments/\".concat(tournament.id, \"/discord\"), {\n guild_id: guild_id\n });\n\n case 3:\n toastr__WEBPACK_IMPORTED_MODULE_3___default().success(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.discordSuccess'));\n _context5.next = 9;\n break;\n\n case 6:\n _context5.prev = 6;\n _context5.t0 = _context5[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_3___default().error(_i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.discordError'));\n\n case 9:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, null, [[0, 6]]);\n }));\n\n return function setDiscord(_x5, _x6) {\n return _ref5.apply(this, arguments);\n };\n}();\n\nvar inviteUrl = 'https://discordapp.com/oauth2/authorize?client_id=951113702839549982&scope=bot';\n\nvar SettingsDialog = function SettingsDialog(_ref6) {\n var onHide = _ref6.onHide,\n show = _ref6.show,\n tournament = _ref6.tournament;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n className: \"settings-dialog\",\n onHide: onHide,\n show: show,\n size: tournament.discord ? 'lg' : 'md',\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.settings')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n sm: tournament.discord ? 6 : 12,\n children: [_helpers_Tournament__WEBPACK_IMPORTED_MODULE_8__[\"default\"].hasSignup(tournament) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between mb-3\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(\"span\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.open')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onChange: function onChange(_ref7) {\n var value = _ref7.target.value;\n return value ? open(tournament) : close(tournament);\n },\n value: tournament.accept_applications\n })]\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between mb-3\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(\"span\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.locked')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_ToggleSwitch__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onChange: function onChange(_ref8) {\n var value = _ref8.target.value;\n return value ? lock(tournament) : unlock(tournament);\n },\n value: tournament.locked\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"div\", {\n className: \"d-flex align-items-center justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(\"div\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(\"p\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.discord')\n }), !tournament.discord ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(\"div\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n href: inviteUrl,\n target: \"_blank\",\n variant: \"discord\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_6__[\"default\"].DISCORD, {}), ' ', _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('tournaments.inviteBot')]\n })\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_common_DiscordSelect__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onChange: function onChange(_ref9) {\n var value = _ref9.target.value;\n return setDiscord(tournament, value);\n },\n value: tournament.discord\n })]\n })]\n }), tournament.discord ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n sm: 6,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_DiscordForm__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n tournament: tournament\n })\n }) : null]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Footer, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n onClick: onHide,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_9__[\"default\"].t('button.close')\n })\n })]\n });\n};\n\nSettingsDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool),\n tournament: prop_types__WEBPACK_IMPORTED_MODULE_15___default().shape({\n accept_applications: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool),\n discord: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),\n locked: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_16__.withTranslation)()(SettingsDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90b3VybmFtZW50L1NldHRpbmdzRGlhbG9nLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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nJvciIsImNsb3NlIiwibG9jayIsInVubG9jayIsInNldERpc2NvcmQiLCJndWlsZF9pZCIsImludml0ZVVybCIsIlNldHRpbmdzRGlhbG9nIiwib25IaWRlIiwic2hvdyIsImRpc2NvcmQiLCJoYXNTaWdudXAiLCJ2YWx1ZSIsInRhcmdldCIsImFjY2VwdF9hcHBsaWNhdGlvbnMiLCJsb2NrZWQiLCJwcm9wVHlwZXMiLCJmdW5jIiwiYm9vbCIsInNoYXBlIiwic3RyaW5nIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/tournament/SettingsDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/Box.js": -/*!**********************************************!*\ - !*** ./resources/js/components/users/Box.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 prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _helpers_User__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/User */ \"./resources/js/helpers/User.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar Box = function Box(_ref) {\n var discriminator = _ref.discriminator,\n noLink = _ref.noLink,\n user = _ref.user;\n var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_4__.useNavigate)();\n\n if (!user) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('general.anonymous')\n });\n }\n\n var content = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"img\", {\n alt: \"\",\n src: (0,_helpers_User__WEBPACK_IMPORTED_MODULE_1__.getAvatarUrl)(user)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n children: discriminator ? user.username : (0,_helpers_User__WEBPACK_IMPORTED_MODULE_1__.getUserName)(user)\n }), discriminator && user.discriminator && user.discriminator !== '0' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(\"span\", {\n className: \"text-muted\",\n children: ['#', user.discriminator]\n }) : null]\n });\n\n if (noLink) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n className: \"user-box\",\n children: content\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: \"user-box\",\n onClick: function onClick() {\n return navigate(\"/users/\".concat(user.id));\n },\n variant: \"link\",\n children: content\n });\n};\n\nBox.propTypes = {\n discriminator: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),\n noLink: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),\n user: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({\n discriminator: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n id: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n nickname: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),\n username: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.withTranslation)()(Box));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9Cb3guanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOzs7OztBQUVBLElBQU1RLEdBQUcsR0FBRyxTQUFOQSxHQUFNLE9BQXFDO0FBQUEsTUFBbENDLGFBQWtDLFFBQWxDQSxhQUFrQztBQUFBLE1BQW5CQyxNQUFtQixRQUFuQkEsTUFBbUI7QUFBQSxNQUFYQyxJQUFXLFFBQVhBLElBQVc7QUFDaEQsTUFBTUMsUUFBUSxHQUFHUiw2REFBVyxFQUE1Qjs7QUFFQSxNQUFJLENBQUNPLElBQUwsRUFBVztBQUNWLHdCQUFPO0FBQUEsZ0JBQU9KLCtDQUFBLENBQU8sbUJBQVA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hY3QiLCJCdXR0b24iLCJ3aXRoVHJhbnNsYXRpb24iLCJ1c2VOYXZpZ2F0ZSIsImdldEF2YXRhclVybCIsImdldFVzZXJOYW1lIiwiaTE4biIsIkJveCIsImRpc2NyaW1pbmF0b3IiLCJub0xpbmsiLCJ1c2VyIiwibmF2aWdhdGUiLCJ0IiwiY29udGVudCIsInVzZXJuYW1lIiwiaWQiLCJwcm9wVHlwZXMiLCJib29sIiwic2hhcGUiLCJzdHJpbmciLCJuaWNrbmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/users/Box.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditNicknameButton.js": -/*!*************************************************************!*\ - !*** ./resources/js/components/users/EditNicknameButton.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditNicknameDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditNicknameDialog */ \"./resources/js/components/users/EditNicknameDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditNicknameButton = function EditNicknameButton(_ref) {\n var authUser = _ref.authUser,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.mayEditNickname)(authUser, user)) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_EditNicknameDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n show: showDialog,\n user: user\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('button.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].EDIT, {\n title: \"\"\n })\n })]\n });\n }\n\n return null;\n};\n\nEditNicknameButton.propTypes = {\n authUser: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_9__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__.withUser)(EditNicknameButton, 'authUser')));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9FZGl0Tmlja25hbWVCdXR0b24uanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUVBLElBQU1VLGtCQUFrQixHQUFHLFNBQXJCQSxrQkFBcUIsT0FBd0I7QUFBQSxNQUFyQkMsUUFBcUIsUUFBckJBLFFBQXFCO0FBQUEsTUFBWEMsSUFBVyxRQUFYQSxJQUFXOztBQUNsRCxrQkFBb0NWLCtDQUFRLENBQUMsS0FBRCxDQUE1QztBQUFBO0FBQUEsTUFBT1csVUFBUDtBQUFBLE1BQW1CQyxhQUFuQjs7QUFFQSxNQUFJUCxxRUFBZSxDQUFDSSxRQUFELEVBQVdDLElBQVgsQ0FBbkIsRUFBcUM7QUFDcEMsd0JBQU87QUFBQSw4QkFDTix1REFBQywyREFBRDtBQUNDLGNBQU0sRUFBRTtBQUFBLGlCQUFNRSxhQUFhLENBQUMsS0FBRCxDQUFuQjtBQUFBLFNBRFQ7QUFFQyxZQUFJLEVBQUVELFVBRlA7QUFHQyxZQUFJLEVBQUVEO0FBSFAsUUFETSxlQU1OLHVEQUFDLHVEQUFEO0FBQ0MsZUFBTyxFQUFFO0FBQUEsaUJBQU1FLGFBQWEsQ0FBQyxJQUFELENBQW5CO0FBQUEsU0FEVjtBQUVDLGFBQUssRUFBRUwsK0NBQUEsQ0FB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cm9wVHlwZXMiLCJSZWFjdCIsInVzZVN0YXRlIiwiQnV0dG9uIiwid2l0aFRyYW5zbGF0aW9uIiwiRWRpdE5pY2tuYW1lRGlhbG9nIiwiSWNvbiIsIm1heUVkaXROaWNrbmFtZSIsIndpdGhVc2VyIiwiaTE4biIsIkVkaXROaWNrbmFtZUJ1dHRvbiIsImF1dGhVc2VyIiwidXNlciIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwidCIsInByb3BUeXBlcyIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditNicknameButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditNicknameDialog.js": -/*!*************************************************************!*\ - !*** ./resources/js/components/users/EditNicknameDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditNicknameForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditNicknameForm */ \"./resources/js/components/users/EditNicknameForm.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar EditNicknameDialog = function EditNicknameDialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"edit-stream-link-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('users.editNickname')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_EditNicknameForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onCancel: onHide,\n user: user\n })]\n });\n};\n\nEditNicknameDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n user: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(EditNicknameDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=ut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24oKShFZGl0Tmlja25hbWVEaWFsb2cpO1xuIl0sIm5hbWVzIjpbIlByb3BUeXBlcyIsIlJlYWN0IiwiTW9kYWwiLCJ3aXRoVHJhbnNsYXRpb24iLCJFZGl0Tmlja25hbWVGb3JtIiwiaTE4biIsIkVkaXROaWNrbmFtZURpYWxvZyIsIm9uSGlkZSIsInNob3ciLCJ1c2VyIiwidCIsInByb3BUeXBlcyIsImZ1bmMiLCJib29sIiwic2hhcGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditNicknameDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditNicknameForm.js": -/*!***********************************************************!*\ - !*** ./resources/js/components/users/EditNicknameForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditStreamLinkForm = function EditStreamLinkForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n user = _ref.user,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n controlId: \"user.nickname\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.nickname')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n isInvalid: !!(touched.nickname && errors.nickname),\n name: \"nickname\",\n onBlur: handleBlur,\n onChange: handleChange,\n placeholder: user.username,\n type: \"text\",\n value: values.nickname || ''\n }), touched.nickname && errors.nickname ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(errors.nickname)\n }) : null]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.save')\n })]\n })]\n });\n};\n\nEditStreamLinkForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n nickname: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n nickname: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)\n }),\n user: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n username: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n nickname: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'NicknameForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var user_id, nickname, setErrors, onCancel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n user_id = values.user_id, nickname = values.nickname;\n setErrors = actions.setErrors;\n onCancel = actions.props.onCancel;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/users/\".concat(user_id, \"/setNickname\"), {\n nickname: nickname\n });\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.setNicknameSuccess'));\n\n if (onCancel) {\n onCancel();\n }\n\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.setNicknameError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 10]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var user = _ref2.user;\n return {\n user_id: user.id,\n nickname: user.nickname || ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].object().shape({\n nickname: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].string()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_15__.withTranslation)()(EditStreamLinkForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9FZGl0Tmlja25hbWVGb3JtLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTWMsa0JBQWtCLEdBQUcsU0FBckJBLGtCQUFxQjtBQUFBLE1BQzFCQyxNQUQwQixRQUMxQkEsTUFEMEI7QUFBQSxNQUUxQkMsVUFGMEIsUUFFMUJBLFVBRjBCO0FBQUEsTUFHMUJDLFlBSDBCLFFBRzFCQSxZQUgwQjtBQUFBLE1BSTFCQyxZQU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2YWxpZGF0aW9uU2NoZW1hIiwib2JqZWN0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditNicknameForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditStreamLinkButton.js": -/*!***************************************************************!*\ - !*** ./resources/js/components/users/EditStreamLinkButton.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 prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditStreamLinkDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditStreamLinkDialog */ \"./resources/js/components/users/EditStreamLinkDialog.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditStreamLinkButton = function EditStreamLinkButton(_ref) {\n var authUser = _ref.authUser,\n user = _ref.user;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n showDialog = _useState2[0],\n setShowDialog = _useState2[1];\n\n if ((0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_3__.mayEditStreamLink)(authUser, user)) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_EditStreamLinkDialog__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onHide: function onHide() {\n return setShowDialog(false);\n },\n show: showDialog,\n user: user\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n onClick: function onClick() {\n return setShowDialog(true);\n },\n title: _i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('button.edit'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_2__[\"default\"].EDIT, {\n title: \"\"\n })\n })]\n });\n }\n\n return null;\n};\n\nEditStreamLinkButton.propTypes = {\n authUser: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({}),\n user: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_9__.withTranslation)()((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_4__.withUser)(EditStreamLinkButton, 'authUser')));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJz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ZWFtTGlua0J1dHRvbiIsImF1dGhVc2VyIiwidXNlciIsInNob3dEaWFsb2ciLCJzZXRTaG93RGlhbG9nIiwidCIsInByb3BUeXBlcyIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditStreamLinkButton.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditStreamLinkDialog.js": -/*!***************************************************************!*\ - !*** ./resources/js/components/users/EditStreamLinkDialog.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _EditStreamLinkForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditStreamLinkForm */ \"./resources/js/components/users/EditStreamLinkForm.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\nvar EditStreamLinkDialog = function EditStreamLinkDialog(_ref) {\n var onHide = _ref.onHide,\n show = _ref.show,\n user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"edit-stream-link-dialog\",\n onHide: onHide,\n show: show,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Header, {\n closeButton: true,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Title, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"].t('users.editStreamLink')\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_EditStreamLinkForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n onCancel: onHide,\n user: user\n })]\n });\n};\n\nEditStreamLinkDialog.propTypes = {\n onHide: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),\n show: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),\n user: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.withTranslation)()(EditStreamLinkDialog));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9FZGl0U3RyZWFtTGlua0RpYWxvZy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Oz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VHJhbnNsYXRpb24iLCJFZGl0U3RyZWFtTGlua0Zvcm0iLCJpMThuIiwiRWRpdFN0cmVhbUxpbmtEaWFsb2ciLCJvbkhpZGUiLCJzaG93IiwidXNlciIsInQiLCJwcm9wVHlwZXMiLCJmdW5jIiwiYm9vbCIsInNoYXBlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditStreamLinkDialog.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/EditStreamLinkForm.js": -/*!*************************************************************!*\ - !*** ./resources/js/components/users/EditStreamLinkForm.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! formik */ \"./node_modules/formik/dist/formik.esm.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Form.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Modal.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/laravelErrorsToFormik */ \"./resources/js/helpers/laravelErrorsToFormik.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var _schema_yup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../schema/yup */ \"./resources/js/schema/yup.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditStreamLinkForm = function EditStreamLinkForm(_ref) {\n var errors = _ref.errors,\n handleBlur = _ref.handleBlur,\n handleChange = _ref.handleChange,\n handleSubmit = _ref.handleSubmit,\n onCancel = _ref.onCancel,\n touched = _ref.touched,\n values = _ref.values;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n noValidate: true,\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Body, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Group, {\n as: react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n controlId: \"user.stream_link\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Label, {\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.streamLink')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control, {\n isInvalid: !!(touched.stream_link && errors.stream_link),\n name: \"stream_link\",\n onBlur: handleBlur,\n onChange: handleChange,\n placeholder: \"https://www.twitch.tv/fgfm\",\n type: \"text\",\n value: values.stream_link || ''\n }), touched.stream_link && errors.stream_link ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"].Control.Feedback, {\n type: \"invalid\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t(errors.stream_link)\n }) : null]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Footer, {\n children: [onCancel ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n onClick: onCancel,\n variant: \"secondary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.cancel')\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n type: \"submit\",\n variant: \"primary\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('button.save')\n })]\n })]\n });\n};\n\nEditStreamLinkForm.propTypes = {\n errors: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n handleBlur: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n handleSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),\n touched: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)\n }),\n values: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,formik__WEBPACK_IMPORTED_MODULE_2__.withFormik)({\n displayName: 'StreamLinkForm',\n enableReinitialize: true,\n handleSubmit: function () {\n var _handleSubmit = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values, actions) {\n var user_id, stream_link, setErrors, onCancel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n user_id = values.user_id, stream_link = values.stream_link;\n setErrors = actions.setErrors;\n onCancel = actions.props.onCancel;\n _context.prev = 3;\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/users/\".concat(user_id, \"/setStreamLink\"), {\n stream_link: stream_link\n });\n\n case 6:\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.setStreamLinkSuccess'));\n\n if (onCancel) {\n onCancel();\n }\n\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](3);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_6__[\"default\"].t('users.setStreamLinkError'));\n\n if (_context.t0.response && _context.t0.response.data && _context.t0.response.data.errors) {\n setErrors((0,_helpers_laravelErrorsToFormik__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_context.t0.response.data.errors));\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 10]]);\n }));\n\n function handleSubmit(_x, _x2) {\n return _handleSubmit.apply(this, arguments);\n }\n\n return handleSubmit;\n }(),\n mapPropsToValues: function mapPropsToValues(_ref2) {\n var user = _ref2.user;\n return {\n user_id: user.id,\n stream_link: user.stream_link || ''\n };\n },\n validationSchema: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].object().shape({\n stream_link: _schema_yup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].string().required().url()\n })\n})((0,react_i18next__WEBPACK_IMPORTED_MODULE_15__.withTranslation)()(EditStreamLinkForm)));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9FZGl0U3RyZWFtTGlua0Zvcm0uanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNYyxrQkFBa0IsR0FBRyxTQUFyQkEsa0JBQXFCO0FBQUEsTUFDMUJDLE1BRDBCLFFBQzFCQSxNQUQwQjtBQUFBLE1BRTFCQyxVQUYwQixRQUUxQkEsVUFGMEI7QUFBQSxNQUcxQkMsWUFIMEIsUUFHMUJBLFlBSDBCO0FBQUEsTUFJMUJDLFlBSjBCLFFBSTFCQSxZQUowQjtBQUFBLE1BSzFCQyxRQUwwQixRQUsxQkEsUUFMMEI7QUFBQSxNQU0xQkMsT0FOMEIsUUFNMUJBLE9BTjBCO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blx0fSksXG5cdHZhbGlkYXRpb25TY2hlbWE6IHl1cC5vYmplY3QoKS5zaGFwZSh7XG5cdFx0c3RyZWFtX2xpbms6IHl1cC5zdHJpbmcoKS5yZXF1aXJlZCgpLnVybCgpLFxuXHR9KSxcbn0pKHdpdGhUcmFuc2xhdGlvbigpKEVkaXRTdHJlYW1MaW5rRm9ybSkpO1xuIl0sIm5hbWVzIjpbImF4aW9zIiwid2l0aEZvcm1payIsIlByb3BUeXBlcyIsIlJlYWN0IiwiQnV0dG9uIiwiQ29sIiwiRm9ybSIsIk1vZGFsIiwiUm93Iiwid2l0aFRyYW5zbGF0aW9uIiwidG9hc3RyIiwibGFyYXZlbEVycm9yc1RvRm9ybWlrIiwiaTE4biIsInl1cCIsIkVkaXRTdHJlYW1MaW5rRm9ybSIsImVycm9ycyIsImhhbmRsZUJsdXIiLCJoYW5kbGVDaGFuZ2UiLCJoYW5kbGVTdWJtaXQiLCJvbkNhbmNlbCIsInRvdWNoZWQiLCJ2YWx1ZXMiLCJ0Iiwic3RyZWFtX2xpbmsiLCJwcm9wVHlwZXMiLCJzaGFwZSIsInN0cmluZyIsImZ1bmMiLCJib29sIiwiZGlzcGxheU5hbWUiLCJlbmFibGVSZWluaXRpYWxpemUiLCJhY3Rpb25zIiwidXNlcl9pZCIsInNldEVycm9ycyIsInByb3BzIiwicG9zdCIsInN1Y2Nlc3MiLCJlcnJvciIsInJlc3BvbnNlIiwiZGF0YSIsIm1hcFByb3BzVG9WYWx1ZXMiLCJ1c2VyIiwiaWQiLCJ2YWxpZGF0aW9uU2NoZW1hIiwib2JqZWN0IiwicmVxdWlyZWQiLCJ1cmwiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/users/EditStreamLinkForm.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/Participation.js": -/*!********************************************************!*\ - !*** ./resources/js/components/users/Participation.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 prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Table.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _helpers_Participant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar getIcon = function getIcon(participant) {\n if (!(0,_helpers_Participant__WEBPACK_IMPORTED_MODULE_2__.isRunner)(participant)) {\n return '—';\n }\n\n if (participant.placement === 1) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FIRST_PLACE, {\n className: \"text-gold\",\n size: \"lg\"\n });\n }\n\n if (participant.placement === 2) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SECOND_PLACE, {\n className: \"text-silver\",\n size: \"lg\"\n });\n }\n\n if (participant.placement === 3) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].THIRD_PLACE, {\n className: \"text-bronze\",\n size: \"lg\"\n });\n }\n\n return participant.placement;\n};\n\nvar Participation = function Participation(_ref) {\n var user = _ref.user;\n var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useNavigate)();\n\n if (!user || !user.participation || !user.participation.length) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n variant: \"info\",\n children: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('users.participationEmpty')\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"participation align-middle\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"thead\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"tr\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"th\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('participants.tournament')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"th\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('participants.placement')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"th\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('participants.roles')\n })]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"tbody\", {\n children: user.participation.map(function (p) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"tr\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"td\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n onClick: function onClick() {\n return navigate(\"/tournaments/\".concat(p.tournament_id));\n },\n variant: \"link\",\n children: p.tournament.title\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"td\", {\n children: [getIcon(p), !p.tournament.locked && (0,_helpers_Participant__WEBPACK_IMPORTED_MODULE_2__.isRunner)(p) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"span\", {\n title: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('participants.placementSubjectToChange'),\n children: \" *\"\n }) : null, p.tournament.no_record ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"span\", {\n title: _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t('tournaments.noRecord'),\n children: \" \\u2020\"\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"td\", {\n children: p.roles ? p.roles.map(function (role, index) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"span\", {\n children: [index === 0 ? '' : ', ', _i18n__WEBPACK_IMPORTED_MODULE_3__[\"default\"].t(\"participants.roleNames.\".concat(role))]\n }, role);\n }) : null\n })]\n }, p.id);\n })\n })]\n });\n};\n\nParticipation.propTypes = {\n user: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({\n participation: prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({\n id: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number)\n }))\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_10__.withTranslation)()(Participation));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9QYXJ0aWNpcGF0aW9uLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTVUsT0FBTyxHQUFHLFNBQVZBLE9BQVUsQ0FBQUMsV0FBVyxFQUFJO0FBQzlCLE1BQUksQ0FBQ0gsOERBQVEsQ0FBQ0csV0FBRCxDQUFiLEVBQTRCO0FBQzNCLFdBQU8sR0FBUDtBQUNBOztBQUNELE1BQUlBLFdB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xvY2tlZCIsIm5vX3JlY29yZCIsInJvbGVzIiwicm9sZSIsImluZGV4IiwiaWQiLCJwcm9wVHlwZXMiLCJzaGFwZSIsImFycmF5T2YiLCJudW1iZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/users/Participation.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/Profile.js": -/*!**************************************************!*\ - !*** ./resources/js/components/users/Profile.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 prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Box */ \"./resources/js/components/users/Box.js\");\n/* harmony import */ var _Records__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Records */ \"./resources/js/components/users/Records.js\");\n/* harmony import */ var _EditNicknameButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditNicknameButton */ \"./resources/js/components/users/EditNicknameButton.js\");\n/* harmony import */ var _EditStreamLinkButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EditStreamLinkButton */ \"./resources/js/components/users/EditStreamLinkButton.js\");\n/* harmony import */ var _Participation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Participation */ \"./resources/js/components/users/Participation.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Profile = function Profile(_ref) {\n var user = _ref.user;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"h1\", {\n children: [user.nickname || user.username, ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_EditNicknameButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n user: user\n })]\n }), user.random_quote && user.random_quote.comment ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n className: \"quote-alert\",\n variant: \"dark\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"blockquote\", {\n className: \"blockquote mb-0\",\n children: user.random_quote.comment\n })\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n md: 6,\n className: \"mb-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.discordTag')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Box__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n discriminator: true,\n user: user\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n md: 6,\n className: \"mb-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.streamLink')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"p\", {\n children: [user.stream_link ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n href: user.stream_link,\n target: \"_blank\",\n variant: \"outline-twitch\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_6__[\"default\"].STREAM, {}), ' ', user.stream_link]\n }) : _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.noStream'), ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_EditStreamLinkButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n user: user\n })]\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n md: 6,\n className: \"mb-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.tournamentRecords')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Records__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n first: user.tournament_first_count,\n second: user.tournament_second_count,\n third: user.tournament_third_count\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n md: 6,\n className: \"mb-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.roundRecords')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Records__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n first: user.round_first_count,\n second: user.round_second_count,\n third: user.round_third_count\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n md: 12,\n className: \"mb-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_7__[\"default\"].t('users.tournaments')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_Participation__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n user: user\n })]\n })]\n })]\n });\n};\n\nProfile.propTypes = {\n user: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n nickname: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n participation: prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({})),\n random_quote: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({\n comment: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n }),\n round_first_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n round_second_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n round_third_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n stream_link: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),\n tournament_first_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n tournament_second_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n tournament_third_count: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number),\n username: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)\n })\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_15__.withTranslation)()(Profile));//# sourceURL=[module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iIsIkljb24iLCJpMThuIiwiUHJvZmlsZSIsInVzZXIiLCJuaWNrbmFtZSIsInVzZXJuYW1lIiwicmFuZG9tX3F1b3RlIiwiY29tbWVudCIsInQiLCJzdHJlYW1fbGluayIsInRvdXJuYW1lbnRfZmlyc3RfY291bnQiLCJ0b3VybmFtZW50X3NlY29uZF9jb3VudCIsInRvdXJuYW1lbnRfdGhpcmRfY291bnQiLCJyb3VuZF9maXJzdF9jb3VudCIsInJvdW5kX3NlY29uZF9jb3VudCIsInJvdW5kX3RoaXJkX2NvdW50IiwicHJvcFR5cGVzIiwic2hhcGUiLCJzdHJpbmciLCJwYXJ0aWNpcGF0aW9uIiwiYXJyYXlPZiIsIm51bWJlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/users/Profile.js\n"); - -/***/ }), - -/***/ "./resources/js/components/users/Records.js": -/*!**************************************************!*\ - !*** ./resources/js/components/users/Records.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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var _common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar Records = function Records(_ref) {\n var first = _ref.first,\n second = _ref.second,\n third = _ref.third;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"record-box\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"icon\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FIRST_PLACE, {\n className: \"text-gold\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"count\",\n children: first\n })]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"record-box\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"icon\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SECOND_PLACE, {\n className: \"text-silver\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"count\",\n children: second\n })]\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n className: \"record-box\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"icon\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].THIRD_PLACE, {\n className: \"text-bronze\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"span\", {\n className: \"count\",\n children: third\n })]\n })\n })]\n });\n};\n\nRecords.propTypes = {\n first: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),\n second: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),\n third: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Records);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy91c2Vycy9SZWNvcmRzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7Ozs7QUFFQSxJQUFNSyxPQUFPLEdBQUcsU0FBVkEsT0FBVTtBQUFBL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HQ8c3BhbiBjbGFzc05hbWU9XCJjb3VudFwiPlxuXHRcdFx0XHR7c2Vjb25kfVxuXHRcdFx0PC9zcGFuPlxuXHRcdDwvZGl2PlxuXHQ8L0NvbD5cblx0PENvbD5cblx0XHQ8ZGl2IGNsYXNzTmFtZT1cInJlY29yZC1ib3hcIj5cblx0XHRcdDxzcGFuIGNsYXNzTmFtZT1cImljb25cIj5cblx0XHRcdFx0PEljb24uVEhJUkRfUExBQ0UgY2xhc3NOYW1lPVwidGV4dC1icm9uemVcIiAvPlxuXHRcdFx0PC9zcGFuPlxuXHRcdFx0PHNwYW4gY2xhc3NOYW1lPVwiY291bnRcIj5cblx0XHRcdFx0e3RoaXJkfVxuXHRcdFx0PC9zcGFuPlxuXHRcdDwvZGl2PlxuXHQ8L0NvbD5cbjwvUm93PjtcblxuUmVjb3Jkcy5wcm9wVHlwZXMgPSB7XG5cdGZpcnN0OiBQcm9wVHlwZXMubnVtYmVyLFxuXHRzZWNvbmQ6IFByb3BUeXBlcy5udW1iZXIsXG5cdHRoaXJkOiBQcm9wVHlwZXMubnVtYmVyLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgUmVjb3JkcztcbiJdLCJuYW1lcyI6WyJQcm9wVHlwZXMiLCJSZWFjdCIsIkNvbCIsIlJvdyIsIkljb24iLCJSZWNvcmRzIiwiZmlyc3QiLCJzZWNvbmQiLCJ0aGlyZCIsInByb3BUeXBlcyIsIm51bWJlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/users/Records.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/AlttpBaseRomContext.js": -/*!*****************************************************!*\ - !*** ./resources/js/helpers/AlttpBaseRomContext.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 */ \"useAlttpBaseRom\": () => (/* binding */ useAlttpBaseRom)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var crc_32__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! crc-32 */ \"./node_modules/crc-32/crc32.js\");\n/* harmony import */ var crc_32__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crc_32__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var localforage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! localforage */ \"./node_modules/localforage/dist/localforage.js\");\n/* harmony import */ var localforage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(localforage__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\nvar AlttpBaseRomContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createContext(null);\n\nvar AlttpBaseRomProvider = function AlttpBaseRomProvider(_ref) {\n var children = _ref.children;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n rom = _React$useState2[0],\n setRom = _React$useState2[1];\n\n var setRomCallback = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (buffer) {\n if (buffer) {\n var crc = crc_32__WEBPACK_IMPORTED_MODULE_1___default().buf(new Uint8Array(buffer));\n\n if (crc === 0x3322EFFC) {\n setRom(buffer);\n localforage__WEBPACK_IMPORTED_MODULE_2___default().setItem('alttpBaseRom', buffer);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('alttp.baseRomSet'));\n } else {\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('alttp.baseRomInvalid'));\n }\n } else {\n setRom(null);\n localforage__WEBPACK_IMPORTED_MODULE_2___default().removeItem('alttpBaseRom');\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_5__[\"default\"].t('alttp.baseRomRemoved'));\n }\n }, [setRom]);\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {\n var stored, crc;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return localforage__WEBPACK_IMPORTED_MODULE_2___default().getItem('alttpBaseRom');\n\n case 2:\n stored = _context.sent;\n\n if (stored) {\n crc = crc_32__WEBPACK_IMPORTED_MODULE_1___default().buf(new Uint8Array(stored));\n\n if (crc == 0x3322EFFC) {\n setRom(stored);\n }\n }\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })), []);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(AlttpBaseRomContext.Provider, {\n value: {\n rom: rom,\n setRom: setRomCallback\n },\n children: children\n });\n};\n\nAlttpBaseRomProvider.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node)\n};\nvar useAlttpBaseRom = function useAlttpBaseRom() {\n return react__WEBPACK_IMPORTED_MODULE_3__.useContext(AlttpBaseRomContext);\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AlttpBaseRomProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9BbHR0cEJhc2VSb21Db250ZXh0LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTs7QUFFQSxJQUFNTSxtQkFBbUIsZ0JBQUdILGdEQUFBLENBQW9CLElBQXBCLENBQTVCOztBQUVBLElBQU1LLG9CQUFvQixHQUFHLFNBQXZCQSxvQkFBdUIsT0FBa0I7QUFBQSxNQUFmQyxRQUFlLFFBQWZBLFFBQWU7O0FBQzlDLHdCQUFzQk4sMkNBQUEsQ0FBZSxJQUFmLENBQXRCO0FBQUE7QUFBQSxNQUFPUSxHQUFQO0FBQUEsTUFBWUMsTUFBWjs7QUF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"./resources/js/helpers/Application.js": -/*!*********************************************!*\ - !*** ./resources/js/helpers/Application.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 */ \"compareUsername\": () => (/* binding */ compareUsername),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"isDenied\": () => (/* binding */ isDenied),\n/* harmony export */ \"isPending\": () => (/* binding */ isPending)\n/* harmony export */ });\n/* harmony import */ var _User__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./User */ \"./resources/js/helpers/User.js\");\n\nvar compareUsername = function compareUsername(a, b) {\n var a_name = a && a.user ? _User__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUserName(a.user) : '';\n var b_name = b && b.user ? _User__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUserName(b.user) : '';\n return a_name.localeCompare(b_name);\n};\nvar isDenied = function isDenied(a) {\n return a && a.denied;\n};\nvar isPending = function isPending(a) {\n return a && !a.denied;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareUsername: compareUsername,\n isDenied: isDenied,\n isPending: isPending\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9BcHBsaWNhdGlvbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBO0FBRU8sSUFBTUMsZUFBZSxHQUFHLFNBQWxCQSxlQUFrQixDQUFDQyxDQUFELEVBQUlDLENBQUosRUFBVTtBQUN4QyxNQUFNQyxNQUFNLEdBQUdGLENBQUMsSUFBSUEsQ0FBQyxDQUFDRyxJQUFQLEdBQWNMLHlEQUFBLENBQWlCRSxDQUFDLENBQUNHLElBQW5CLENBQWQsR0FBe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J0IGNvbnN0IGlzRGVuaWVkID0gYSA9PiBhICYmIGEuZGVuaWVkO1xuXG5leHBvcnQgY29uc3QgaXNQZW5kaW5nID0gYSA9PiBhICYmICFhLmRlbmllZDtcblxuZXhwb3J0IGRlZmF1bHQge1xuXHRjb21wYXJlVXNlcm5hbWUsXG5cdGlzRGVuaWVkLFxuXHRpc1BlbmRpbmcsXG59O1xuIl0sIm5hbWVzIjpbIlVzZXIiLCJjb21wYXJlVXNlcm5hbWUiLCJhIiwiYiIsImFfbmFtZSIsInVzZXIiLCJnZXRVc2VyTmFtZSIsImJfbmFtZSIsImxvY2FsZUNvbXBhcmUiLCJpc0RlbmllZCIsImRlbmllZCIsImlzUGVuZGluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/helpers/Application.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Crew.js": -/*!**************************************!*\ - !*** ./resources/js/helpers/Crew.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 */ \"compareCrew\": () => (/* binding */ compareCrew),\n/* harmony export */ \"getName\": () => (/* binding */ getName),\n/* harmony export */ \"getStreamLink\": () => (/* binding */ getStreamLink)\n/* harmony export */ });\nvar compareCrew = function compareCrew(a, b) {\n var a_confirmed = !!(a && a.confirmed);\n var b_confirmed = !!(b && b.confirmed);\n\n if (a_confirmed === b_confirmed) {\n return getName(a).localeCompare(getName(b));\n }\n\n return a_confirmed ? -1 : 1;\n};\nvar getName = function getName(crew) {\n if (!crew) return '';\n\n if (crew.name_override) {\n return crew.name_override;\n }\n\n if (crew.user) {\n return crew.user.nickname || crew.user.username;\n }\n\n return '';\n};\nvar getStreamLink = function getStreamLink(crew) {\n if (crew.stream_override) {\n return crew.stream_override;\n }\n\n if (crew.user && crew.user.stream_link) {\n return crew.user.stream_link;\n }\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XRTdHJlYW1MaW5rID0gY3JldyA9PiB7XG5cdGlmIChjcmV3LnN0cmVhbV9vdmVycmlkZSkge1xuXHRcdHJldHVybiBjcmV3LnN0cmVhbV9vdmVycmlkZTtcblx0fVxuXHRpZiAoY3Jldy51c2VyICYmIGNyZXcudXNlci5zdHJlYW1fbGluaykge1xuXHRcdHJldHVybiBjcmV3LnVzZXIuc3RyZWFtX2xpbms7XG5cdH1cblx0cmV0dXJuICcnO1xufTtcblxuIl0sIm5hbWVzIjpbImNvbXBhcmVDcmV3IiwiYSIsImIiLCJhX2NvbmZpcm1lZCIsImNvbmZpcm1lZCIsImJfY29uZmlybWVkIiwiZ2V0TmFtZSIsImxvY2FsZUNvbXBhcmUiLCJjcmV3IiwibmFtZV9vdmVycmlkZSIsInVzZXIiLCJuaWNrbmFtZSIsInVzZXJuYW1lIiwiZ2V0U3RyZWFtTGluayIsInN0cmVhbV9vdmVycmlkZSIsInN0cmVhbV9saW5rIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/Crew.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Episode.js": -/*!*****************************************!*\ - !*** ./resources/js/helpers/Episode.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 */ \"acceptsComms\": () => (/* binding */ acceptsComms),\n/* harmony export */ \"acceptsCrew\": () => (/* binding */ acceptsCrew),\n/* harmony export */ \"acceptsTrackers\": () => (/* binding */ acceptsTrackers),\n/* harmony export */ \"getSGLanguages\": () => (/* binding */ getSGLanguages),\n/* harmony export */ \"getSGSignupLink\": () => (/* binding */ getSGSignupLink),\n/* harmony export */ \"hasPassed\": () => (/* binding */ hasPassed),\n/* harmony export */ \"hasSGRestream\": () => (/* binding */ hasSGRestream),\n/* harmony export */ \"isActive\": () => (/* binding */ isActive),\n/* harmony export */ \"isEventSelected\": () => (/* binding */ isEventSelected),\n/* harmony export */ \"toggleEventFilter\": () => (/* binding */ toggleEventFilter)\n/* harmony export */ });\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar acceptsComms = function acceptsComms(episode) {\n if (!episode || !episode.channels) return false;\n return !!episode.channels.find(function (c) {\n return c.pivot && c.pivot.accept_comms;\n });\n};\nvar acceptsTrackers = function acceptsTrackers(episode) {\n if (!episode || !episode.channels) return false;\n return !!episode.channels.find(function (c) {\n return c.pivot && c.pivot.accept_tracker;\n });\n};\nvar acceptsCrew = function acceptsCrew(episode) {\n if (!episode || !episode.channels) return false;\n return !!episode.channels.find(function (c) {\n return c.pivot && (c.pivot.accept_comms || c.pivot.accept_tracker);\n });\n};\nvar getSGLanguages = function getSGLanguages(episode) {\n if (!episode || !episode.channels) return [];\n var sgChannels = episode.channels.filter(function (c) {\n return c.stream_link && c.stream_link.startsWith('https://twitch.tv/speedgaming');\n });\n var langs = [];\n sgChannels.forEach(function (channel) {\n if (!channel.languages) return;\n channel.languages.forEach(function (lang) {\n if (!langs.includes(lang)) {\n langs.push(lang);\n }\n });\n });\n return langs;\n};\nvar getSGSignupLink = function getSGSignupLink(episode, lang, role) {\n return \"https://speedgaming.org/\".concat(lang, \"/\").concat(role, \"/signup/\").concat(episode.ext_id.substr(3), \"/\");\n};\nvar hasPassed = function hasPassed(episode) {\n if (!episode || !episode.start) return false;\n var now = moment__WEBPACK_IMPORTED_MODULE_0___default()();\n var end = moment__WEBPACK_IMPORTED_MODULE_0___default()(episode.start).add(episode.estimate, 'seconds');\n return end.isBefore(now);\n};\nvar hasSGRestream = function hasSGRestream(episode) {\n if (!episode || !episode.channels) return false;\n return !!episode.channels.find(function (c) {\n return c.stream_link && c.stream_link.startsWith('https://twitch.tv/speedgaming');\n });\n};\nvar isActive = function isActive(episode) {\n if (!episode || !episode.start) return false;\n var now = moment__WEBPACK_IMPORTED_MODULE_0___default()();\n var start = moment__WEBPACK_IMPORTED_MODULE_0___default()(episode.start).subtract(10, 'minutes');\n var end = moment__WEBPACK_IMPORTED_MODULE_0___default()(episode.start).add(episode.estimate, 'seconds');\n return start.isBefore(now) && end.isAfter(now);\n};\nvar isEventSelected = function isEventSelected(filter, event) {\n return (filter.event || []).includes(event.id);\n};\nvar toggleEventFilter = function toggleEventFilter(events, filter, event) {\n var eventFilter = filter.event || [];\n\n if (eventFilter.includes(event.id)) {\n return _objectSpread(_objectSpread({}, filter), {}, {\n event: eventFilter.filter(function (id) {\n return id !== event.id && events.find(function (e) {\n return e.id === id;\n });\n })\n });\n }\n\n return _objectSpread(_objectSpread({}, filter), {}, {\n event: [].concat(_toConsumableArray(eventFilter), [event.id])\n });\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9FcGlzb2RlLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBRU8sSUFBTUMsWUFBWSxHQUFHLFNBQWZBLFlBQWUsQ0FBQUMsT0FBTyxFQUFJO0FBQ3RDLE1BQUksQ0FBQ0EsT0FBRCxJQUFZLENBQUNBLE9BQU8sQ0FBQ0MsUUFBekIsRUFBbUMsT0FBTyxLQUFQO0FBQ25DLFNBQU8sQ0FBQyxDQUFDRCxPQUFPLENBQUNDLFFBQVIsQ0FBaUJDLElBQWpCLENBQXNCLFVBQUFDLENBQUM7QUFBQSxXQUFJQSxDQUFDLENBQUNDLEtBQUYsSUFBV0QsQ0FBQyxDQUFDQyxLQ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LFxuXHRcdH07XG5cdH1cblx0cmV0dXJuIHtcblx0XHQuLi5maWx0ZXIsXG5cdFx0ZXZlbnQ6IFsuLi5ldmVudEZpbHRlciwgZXZlbnQuaWRdLFxuXHR9O1xufTtcbiJdLCJuYW1lcyI6WyJtb21lbnQiLCJhY2NlcHRzQ29tbXMiLCJlcGlzb2RlIiwiY2hhbm5lbHMiLCJmaW5kIiwiYyIsInBpdm90IiwiYWNjZXB0X2NvbW1zIiwiYWNjZXB0c1RyYWNrZXJzIiwiYWNjZXB0X3RyYWNrZXIiLCJhY2NlcHRzQ3JldyIsImdldFNHTGFuZ3VhZ2VzIiwic2dDaGFubmVscyIsImZpbHRlciIsInN0cmVhbV9saW5rIiwic3RhcnRzV2l0aCIsImxhbmdzIiwiZm9yRWFjaCIsImNoYW5uZWwiLCJsYW5ndWFnZXMiLCJsYW5nIiwiaW5jbHVkZXMiLCJwdXNoIiwiZ2V0U0dTaWdudXBMaW5rIiwicm9sZSIsImV4dF9pZCIsInN1YnN0ciIsImhhc1Bhc3NlZCIsInN0YXJ0Iiwibm93IiwiZW5kIiwiYWRkIiwiZXN0aW1hdGUiLCJpc0JlZm9yZSIsImhhc1NHUmVzdHJlYW0iLCJpc0FjdGl2ZSIsInN1YnRyYWN0IiwiaXNBZnRlciIsImlzRXZlbnRTZWxlY3RlZCIsImV2ZW50IiwiaWQiLCJ0b2dnbGVFdmVudEZpbHRlciIsImV2ZW50cyIsImV2ZW50RmlsdGVyIiwiZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/helpers/Episode.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Participant.js": -/*!*********************************************!*\ - !*** ./resources/js/helpers/Participant.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 */ \"compareFinished\": () => (/* binding */ compareFinished),\n/* harmony export */ \"comparePlacement\": () => (/* binding */ comparePlacement),\n/* harmony export */ \"compareResult\": () => (/* binding */ compareResult),\n/* harmony export */ \"compareUsername\": () => (/* binding */ compareUsername),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"findResult\": () => (/* binding */ findResult),\n/* harmony export */ \"getUserName\": () => (/* binding */ getUserName),\n/* harmony export */ \"isRunner\": () => (/* binding */ isRunner),\n/* harmony export */ \"isTournamentAdmin\": () => (/* binding */ isTournamentAdmin),\n/* harmony export */ \"isTournamentCrew\": () => (/* binding */ isTournamentCrew),\n/* harmony export */ \"isTournamentMonitor\": () => (/* binding */ isTournamentMonitor),\n/* harmony export */ \"patchUser\": () => (/* binding */ patchUser),\n/* harmony export */ \"sortByFinished\": () => (/* binding */ sortByFinished),\n/* harmony export */ \"sortByResult\": () => (/* binding */ sortByResult),\n/* harmony export */ \"sortByUsername\": () => (/* binding */ sortByUsername)\n/* harmony export */ });\n/* harmony import */ var _User__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./User */ \"./resources/js/helpers/User.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar compareFinished = function compareFinished(round) {\n return function (a, b) {\n var a_result = findResult(a, round);\n var b_result = findResult(b, round);\n var a_finished = a_result && a_result.has_finished;\n var b_finished = b_result && b_result.has_finished;\n\n if (a_finished) {\n if (b_finished) {\n return compareUsername(a, b);\n }\n\n return -1;\n }\n\n if (b_finished) {\n return 1;\n }\n\n return compareUsername(a, b);\n };\n};\nvar comparePlacement = function comparePlacement(a, b) {\n if (a.placement < b.placement) return -1;\n if (b.placement < a.placement) return 1;\n return compareUsername(a, b);\n};\nvar compareResult = function compareResult(round) {\n return function (a, b) {\n var a_result = findResult(a, round);\n var b_result = findResult(b, round);\n var a_placement = a_result && a_result.placement ? a_result.placement : 0;\n var b_placement = b_result && b_result.placement ? b_result.placement : 0;\n\n if (a_placement) {\n if (b_placement) {\n if (a_placement < b_placement) return -1;\n if (b_placement < a_placement) return 1;\n return compareUsername(a, b);\n }\n\n return -1;\n }\n\n if (b_placement) {\n return 1;\n }\n\n return compareUsername(a, b);\n };\n};\nvar compareUsername = function compareUsername(a, b) {\n var a_name = getUserName(a);\n var b_name = getUserName(b);\n return a_name.localeCompare(b_name);\n};\nvar findResult = function findResult(participant, round) {\n if (!participant || !participant.user_id) return null;\n if (!round || !round.results || !round.results.length) return null;\n return round.results.find(function (result) {\n return result.user_id === participant.user_id;\n });\n};\nvar getUserName = function getUserName(participant) {\n return participant.user ? _User__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUserName(participant.user) : '';\n};\nvar isRunner = function isRunner(participant) {\n return participant && participant.roles && participant.roles.includes('runner');\n};\nvar isTournamentAdmin = function isTournamentAdmin(participant) {\n return participant && participant.roles && participant.roles.includes('admin');\n};\nvar isTournamentCrew = function isTournamentCrew(participant) {\n return isTournamentAdmin(participant) || isTournamentMonitor(participant);\n};\nvar isTournamentMonitor = function isTournamentMonitor(participant) {\n return participant && participant.roles && participant.roles.includes('monitor');\n};\nvar patchUser = function patchUser(participant, user) {\n if (!participant || !user) return participant;\n if (participant.user_id != user.id) return participant;\n return _objectSpread(_objectSpread({}, participant), {}, {\n user: _objectSpread(_objectSpread({}, participant.user), user)\n });\n};\nvar sortByFinished = function sortByFinished(participants, round) {\n if (!participants || !participants.length) return participants;\n if (!round || !round.results || !round.results.length) return participants;\n return participants.sort(compareFinished(round));\n};\nvar sortByResult = function sortByResult(participants, round) {\n if (!participants || !participants.length) return participants;\n if (!round || !round.results || !round.results.length) return participants;\n return participants.sort(compareResult(round));\n};\nvar sortByUsername = function sortByUsername(participants, round) {\n if (!participants || !participants.length) return participants;\n if (!round || !round.results || !round.results.length) return participants;\n return participants.sort(compareUsername);\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareFinished: compareFinished,\n compareResult: compareResult,\n compareUsername: compareUsername,\n findResult: findResult,\n getUserName: getUserName,\n isRunner: isRunner,\n isTournamentAdmin: isTournamentAdmin,\n isTournamentCrew: isTournamentCrew,\n isTournamentMonitor: isTournamentMonitor,\n patchUser: patchUser,\n sortByFinished: sortByFinished,\n sortByResult: sortByResult,\n sortByUsername: sortByUsername\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9QYXJ0aWNpcGFudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFFTyxJQUFNQyxlQUFlLEdBQUcsU0FBbEJBLGVBQWtCLENBQUFDLEtBQUs7QUFBQSxTQUFJLFVBQUNDLENBQUQsRUFBSUMsQ0FBSixFQUFVO0FBQ2pELFFBQU1DLFFBQVEsR0FBR0MsVUFBVSxDQUFDSCxDQUFELEVBQUlELEtBQUosQ0FBM0I7QUFDQSxRQUFNSyxRQUFRLEdBQUdELFVBQVUsQ0FBQ0YsQ0FBRCxFQUFJRixLQUFKLENBQTNCO0FBQ0EsUU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29tcGFyZVVzZXJuYW1lIiwiY29tcGFyZVBsYWNlbWVudCIsInBsYWNlbWVudCIsImNvbXBhcmVSZXN1bHQiLCJhX3BsYWNlbWVudCIsImJfcGxhY2VtZW50IiwiYV9uYW1lIiwiZ2V0VXNlck5hbWUiLCJiX25hbWUiLCJsb2NhbGVDb21wYXJlIiwicGFydGljaXBhbnQiLCJ1c2VyX2lkIiwicmVzdWx0cyIsImxlbmd0aCIsImZpbmQiLCJyZXN1bHQiLCJ1c2VyIiwiaXNSdW5uZXIiLCJyb2xlcyIsImluY2x1ZGVzIiwiaXNUb3VybmFtZW50QWRtaW4iLCJpc1RvdXJuYW1lbnRDcmV3IiwiaXNUb3VybmFtZW50TW9uaXRvciIsInBhdGNoVXNlciIsImlkIiwic29ydEJ5RmluaXNoZWQiLCJwYXJ0aWNpcGFudHMiLCJzb3J0Iiwic29ydEJ5UmVzdWx0Iiwic29ydEJ5VXNlcm5hbWUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/helpers/Participant.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Result.js": -/*!****************************************!*\ - !*** ./resources/js/helpers/Result.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 */ \"compareResult\": () => (/* binding */ compareResult),\n/* harmony export */ \"compareUsername\": () => (/* binding */ compareUsername),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"formatTime\": () => (/* binding */ formatTime),\n/* harmony export */ \"getIcon\": () => (/* binding */ getIcon),\n/* harmony export */ \"getTime\": () => (/* binding */ getTime),\n/* harmony export */ \"parseTime\": () => (/* binding */ parseTime)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\nvar compareResult = function compareResult(a, b) {\n var a_placement = a && a.placement ? a.placement : 0;\n var b_placement = b && b.placement ? b.placement : 0;\n\n if (a_placement) {\n if (b_placement) {\n if (a_placement < b_placement) return -1;\n if (b_placement < a_placement) return 1;\n return compareUsername(a, b);\n }\n\n return -1;\n }\n\n if (b_placement) {\n return 1;\n }\n\n return compareUsername(a, b);\n};\nvar compareUsername = function compareUsername(a, b) {\n var a_name = a && a.user && a.user.username || '';\n var b_name = b && b.user && b.user.username || '';\n return a_name.localeCompare(b_name);\n};\nvar formatTime = function formatTime(result) {\n var hours = \"\".concat(Math.floor(result.time / 60 / 60));\n var minutes = \"\".concat(Math.floor(result.time / 60 % 60));\n var seconds = \"\".concat(Math.floor(result.time % 60));\n\n while (minutes.length < 2) {\n minutes = \"0\".concat(minutes);\n }\n\n while (seconds.length < 2) {\n seconds = \"0\".concat(seconds);\n }\n\n return \"\".concat(hours, \":\").concat(minutes, \":\").concat(seconds);\n};\nvar getIcon = function getIcon(result, maySee) {\n if (!result || !result.has_finished) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].PENDING, {\n className: \"text-muted\",\n size: \"lg\"\n });\n }\n\n if (result.forfeit && maySee) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FORFEIT, {\n className: \"text-danger\",\n size: \"lg\"\n });\n }\n\n if (result.placement === 1 && maySee) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FIRST_PLACE, {\n className: \"text-gold\",\n size: \"lg\"\n });\n }\n\n if (result.placement === 2 && maySee) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].SECOND_PLACE, {\n className: \"text-silver\",\n size: \"lg\"\n });\n }\n\n if (result.placement === 3 && maySee) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].THIRD_PLACE, {\n className: \"text-bronze\",\n size: \"lg\"\n });\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].FINISHED, {\n className: \"text-success\",\n size: \"lg\"\n });\n};\nvar getTime = function getTime(result, maySee) {\n if (!result || !maySee) {\n return null;\n }\n\n if (result.time) {\n return formatTime(result);\n }\n\n if (result.forfeit) {\n return 'DNF';\n }\n\n return '?';\n};\nvar parseTime = function parseTime(str) {\n if (!str) return null;\n return \"\".concat(str).split(/[-.: ]+/).reduce(function (acc, time) {\n return 60 * acc + +time;\n }, 0);\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareResult: compareResult,\n compareUsername: compareUsername,\n formatTime: formatTime,\n getIcon: getIcon,\n getTime: getTime,\n parseTime: parseTime\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9SZXN1bHQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7O0FBRU8sSUFBTUUsYUFBYSxHQUFHLFNBQ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l0IiwicmVkdWNlIiwiYWNjIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/Result.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Round.js": -/*!***************************************!*\ - !*** ./resources/js/helpers/Round.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 */ \"isComplete\": () => (/* binding */ isComplete),\n/* harmony export */ \"patchResult\": () => (/* binding */ patchResult)\n/* harmony export */ });\n/* harmony import */ var _Participant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _Tournament__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Tournament */ \"./resources/js/helpers/Tournament.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar isComplete = function isComplete(tournament, round) {\n if (!tournament || !tournament.participants) return false;\n if (!round || !round.results) return false;\n var runners = _Tournament__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getRunners(tournament);\n if (!runners.length) return false;\n\n for (var i = 0; i < runners.length; ++i) {\n var result = _Participant__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findResult(runners[i], round);\n if (!result || !result.has_finished) return false;\n }\n\n return true;\n};\nvar patchResult = function patchResult(round, result) {\n if (!round) return round;\n\n if (!round.results || !round.results.length) {\n return _objectSpread(_objectSpread({}, round), {}, {\n results: [result]\n });\n }\n\n if (!round.results.find(function (r) {\n return r.id === result.id;\n })) {\n return _objectSpread(_objectSpread({}, round), {}, {\n results: [].concat(_toConsumableArray(round.results), [result])\n });\n }\n\n return _objectSpread(_objectSpread({}, round), {}, {\n results: round.results.map(function (r) {\n return r.id === result.id ? result : r;\n })\n });\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n isComplete: isComplete,\n patchResult: patchResult\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9Sb3VuZC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFTyxJQUFNRSxVQUFVLEdBQUcsU0FBYkEsVUFBYSxDQUFDQyxVQUFELEVBQWFDLEtBQWIsRUFBdUI7QUFDaEQsTUFBSSxDQUFDRCxVQUFELElBQWUsQ0FBQ0EsVUFBVSxDQUFDRSxZQUEvQixFQUE2QyxPQUFPLEtBQVA7QUFDN0MsTUFBSSxDQUFDRCxLQUFELElBQVUsQ0FBQ0EsS0FBSyxDQUFDRSxPQUFyQixFQUE4QixPQUFPLEtBQVA7QUFDOUIsTUFBTUMsT0FBTyxHQUFHTiw4REFBQSxDQUFzQkUsVUFBdEIsQ0FBaEI7QUFDQSxNQUFJLENBQUNJLE9BQU8sQ0FBQ0UsTUFBYixFQUFxQixPQUFPLEtBQVA7O0FBQ3JCLE9BQUssSUFBSUMsQ0FBQyxHQUFHLENBQWIsRUFBZ0JBLENBQUMsR0FBR0gsT0FBTyxDQUFDRSxNQUE1QixFQUFvQyxFQUFFQyxDQUF0QyxFQUF5QztBQUN4QyxRQUFNQyxNQUFNLEdBQUdYLCtEQUFBLENBQXVCTyxPQUFPLENBQUNHLENBQUQsQ0FBOUIsRUFBbUNOLEtBQW5DLENBQWY7QUFDQSxRQUFJLENBQUNPLE1BQUQsSUFBVyxDQUFDQSxNQUFNLENBQUNFLFlBQXZCLEVBQXFDLE9BQU8sS0FBUDtBQUNyQzs7QUFDRCxTQUFPLElBQVA7QUFDQSxDQVZNO0FBWUEsSUFBTUMsV0FBVyxHQUFHLFNBQWRBLFdBQWMsQ0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iB7XG5cdFx0Li4ucm91bmQsXG5cdFx0cmVzdWx0czogcm91bmQucmVzdWx0cy5tYXAociA9PiByLmlkID09PSByZXN1bHQuaWQgPyByZXN1bHQgOiByKSxcblx0fTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHtcblx0aXNDb21wbGV0ZSxcblx0cGF0Y2hSZXN1bHQsXG59O1xuIl0sIm5hbWVzIjpbIlBhcnRpY2lwYW50IiwiVG91cm5hbWVudCIsImlzQ29tcGxldGUiLCJ0b3VybmFtZW50Iiwicm91bmQiLCJwYXJ0aWNpcGFudHMiLCJyZXN1bHRzIiwicnVubmVycyIsImdldFJ1bm5lcnMiLCJsZW5ndGgiLCJpIiwicmVzdWx0IiwiZmluZFJlc3VsdCIsImhhc19maW5pc2hlZCIsInBhdGNoUmVzdWx0IiwiZmluZCIsInIiLCJpZCIsIm1hcCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/helpers/Round.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Technique.js": -/*!*******************************************!*\ - !*** ./resources/js/helpers/Technique.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 */ \"compareTranslation\": () => (/* binding */ compareTranslation),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"getLanguages\": () => (/* binding */ getLanguages),\n/* harmony export */ \"getLink\": () => (/* binding */ getLink),\n/* harmony export */ \"getMatchedLocale\": () => (/* binding */ getMatchedLocale),\n/* harmony export */ \"getRelations\": () => (/* binding */ getRelations),\n/* harmony export */ \"getTranslation\": () => (/* binding */ getTranslation),\n/* harmony export */ \"hasRelations\": () => (/* binding */ hasRelations),\n/* harmony export */ \"sorted\": () => (/* binding */ sorted)\n/* harmony export */ });\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n\nvar getLink = function getLink(tech) {\n if (tech.type === 'dungeon') {\n return \"/dungeons/\".concat(tech.name);\n }\n\n if (tech.type === 'location') {\n return \"/locations/\".concat(tech.name);\n }\n\n if (tech.type === 'mode') {\n return \"/modes/\".concat(tech.name);\n }\n\n if (tech.type === 'ruleset') {\n return \"/rulesets/\".concat(tech.name);\n }\n\n return \"/tech/\".concat(tech.name);\n};\nvar getRelations = function getRelations(tech, type) {\n var rs = tech && tech.relations || [];\n return type ? rs.filter(function (r) {\n return r && r.pivot && r.pivot.type === type;\n }) : rs;\n};\nvar hasRelations = function hasRelations(tech, type) {\n return getRelations(tech, type).length > 0;\n};\nvar getLanguages = function getLanguages(tech) {\n return ['en'].concat(_toConsumableArray(tech.translations.map(function (t) {\n return t.locale;\n })));\n};\nvar getMatchedLocale = function getMatchedLocale(tech, lang) {\n var direct = tech.translations.find(function (t) {\n return t.locale === lang;\n });\n\n if (direct) {\n return direct.locale;\n }\n\n var sameLang = tech.translations.find(function (t) {\n return t.locale.substr(0, 2) === lang.substr(0, 2);\n });\n\n if (sameLang) {\n return sameLang.locale;\n }\n\n return 'en';\n};\nvar getTranslation = function getTranslation(tech, prop, lang) {\n if (!tech) return '';\n var direct = tech.translations.find(function (t) {\n return t.locale === lang;\n });\n\n if (direct) {\n return direct[prop];\n }\n\n var sameLang = tech.translations.find(function (t) {\n return t.locale.substr(0, 2) === lang.substr(0, 2);\n });\n\n if (sameLang) {\n return sameLang[prop];\n }\n\n return tech[prop];\n};\nvar compareTranslation = function compareTranslation(prop, lang) {\n return function (a, b) {\n return getTranslation(a, prop, lang).localeCompare(getTranslation(b, prop, lang));\n };\n};\nvar sorted = function sorted(techs) {\n return _toConsumableArray(techs).sort(compareTranslation('title', _i18n__WEBPACK_IMPORTED_MODULE_0__[\"default\"].language));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareTranslation: compareTranslation,\n getLanguages: getLanguages,\n getRelations: getRelations,\n getTranslation: getTranslation,\n hasRelations: hasRelations,\n sorted: sorted\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9UZWNobmlxdWUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBRU8sSUFBTUMsT0FBTyxHQUFHLFNBQVZBLE9BQVUsQ0FBQUMsSUFBSSxFQUFJO0FBQzlCLE1BQUlBLElBQUksQ0FBQ0MsSUFBTCxLQUFjLFNBQWxCLEVBQTZCO0FBQzVCLCtCQUFvQkQsSUFBSSxDQUFDRSxJQUF6QjtBQUNB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9jYWxlQ29tcGFyZSIsInNvcnRlZCIsInRlY2hzIiwic29ydCIsImxhbmd1YWdlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/Technique.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/Tournament.js": -/*!********************************************!*\ - !*** ./resources/js/helpers/Tournament.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 */ \"compareScore\": () => (/* binding */ compareScore),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"findParticipant\": () => (/* binding */ findParticipant),\n/* harmony export */ \"getPendingApplications\": () => (/* binding */ getPendingApplications),\n/* harmony export */ \"getRunners\": () => (/* binding */ getRunners),\n/* harmony export */ \"getScoreTable\": () => (/* binding */ getScoreTable),\n/* harmony export */ \"getTournamentAdmins\": () => (/* binding */ getTournamentAdmins),\n/* harmony export */ \"getTournamentCrew\": () => (/* binding */ getTournamentCrew),\n/* harmony export */ \"getTournamentMonitors\": () => (/* binding */ getTournamentMonitors),\n/* harmony export */ \"hasRunners\": () => (/* binding */ hasRunners),\n/* harmony export */ \"hasScoreboard\": () => (/* binding */ hasScoreboard),\n/* harmony export */ \"hasSignup\": () => (/* binding */ hasSignup),\n/* harmony export */ \"hasTournamentAdmins\": () => (/* binding */ hasTournamentAdmins),\n/* harmony export */ \"hasTournamentCrew\": () => (/* binding */ hasTournamentCrew),\n/* harmony export */ \"hasTournamentMonitors\": () => (/* binding */ hasTournamentMonitors),\n/* harmony export */ \"patchApplication\": () => (/* binding */ patchApplication),\n/* harmony export */ \"patchParticipant\": () => (/* binding */ patchParticipant),\n/* harmony export */ \"patchResult\": () => (/* binding */ patchResult),\n/* harmony export */ \"patchRound\": () => (/* binding */ patchRound),\n/* harmony export */ \"patchUser\": () => (/* binding */ patchUser),\n/* harmony export */ \"removeApplication\": () => (/* binding */ removeApplication),\n/* harmony export */ \"sortParticipants\": () => (/* binding */ sortParticipants)\n/* harmony export */ });\n/* harmony import */ var _Application__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Application */ \"./resources/js/helpers/Application.js\");\n/* harmony import */ var _Participant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Participant */ \"./resources/js/helpers/Participant.js\");\n/* harmony import */ var _Round__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Round */ \"./resources/js/helpers/Round.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n\n\n\nvar compareScore = function compareScore(a, b) {\n var a_score = a && a.score ? a.score : 0;\n var b_score = b && b.score ? b.score : 0;\n if (a_score < b_score) return -1;\n if (b_score < a_score) return 1;\n return _Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername(a.participant, b.participant) * -1;\n};\nvar findParticipant = function findParticipant(tournament, user) {\n if (!tournament || !tournament.participants || !tournament.participants.length) return null;\n if (!user || !user.id) return null;\n return tournament.participants.find(function (p) {\n return p.user_id == user.id;\n });\n};\nvar getPendingApplications = function getPendingApplications(tournament) {\n if (!tournament || !tournament.applications || !tournament.applications.length) return [];\n return tournament.applications.filter(_Application__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPending).sort(_Application__WEBPACK_IMPORTED_MODULE_0__[\"default\"].compareUsername);\n};\nvar getRunners = function getRunners(tournament) {\n if (!tournament || !tournament.participants || !tournament.participants.length) return [];\n return tournament.participants.filter(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isRunner).sort(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername);\n};\nvar hasScoreboard = function hasScoreboard(tournament) {\n return !!(tournament && tournament.type === 'signup-async');\n};\nvar hasSignup = function hasSignup(tournament) {\n return !!(tournament && tournament.type === 'signup-async');\n};\nvar getScoreTable = function getScoreTable(tournament) {\n if (!tournament || !tournament.rounds || !tournament.rounds.length) return [];\n var runners = getRunners(tournament);\n if (!runners.length) return [];\n var running = {};\n runners.forEach(function (participant) {\n running[participant.id] = 0;\n });\n var data = [].concat(_toConsumableArray(tournament.rounds), [{}]).reverse().map(function (round) {\n var entry = {\n number: round.number ? \"#\".concat(round.number) : ''\n };\n runners.forEach(function (participant) {\n var result = _Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].findResult(participant, round);\n\n if (result && result.score) {\n running[participant.id] += result.score;\n }\n\n entry[_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getUserName(participant)] = running[participant.id];\n });\n return entry;\n });\n return data;\n};\nvar getTournamentAdmins = function getTournamentAdmins(tournament) {\n if (!tournament || !tournament.participants || !tournament.participants.length) return [];\n return tournament.participants.filter(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isTournamentAdmin).sort(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername);\n};\nvar getTournamentCrew = function getTournamentCrew(tournament) {\n if (!tournament || !tournament.participants || !tournament.participants.length) return [];\n return tournament.participants.filter(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isTournamentCrew).sort(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername);\n};\nvar getTournamentMonitors = function getTournamentMonitors(tournament) {\n if (!tournament || !tournament.participants || !tournament.participants.length) return [];\n return tournament.participants.filter(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isTournamentMonitor).sort(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername);\n};\nvar hasRunners = function hasRunners(tournament) {\n return getRunners(tournament).length > 0;\n};\nvar hasTournamentAdmins = function hasTournamentAdmins(tournament) {\n return getTournamentAdmins(tournament).length > 0;\n};\nvar hasTournamentCrew = function hasTournamentCrew(tournament) {\n return getTournamentCrew(tournament).length > 0;\n};\nvar hasTournamentMonitors = function hasTournamentMonitors(tournament) {\n return getTournamentMonitors(tournament).length > 0;\n};\nvar patchApplication = function patchApplication(tournament, application) {\n if (!tournament) return tournament;\n\n if (!tournament.applications || !tournament.applications.length) {\n return _objectSpread(_objectSpread({}, tournament), {}, {\n applications: [application]\n });\n }\n\n if (!tournament.applications.find(function (a) {\n return a.user_id == application.user_id;\n })) {\n return _objectSpread(_objectSpread({}, tournament), {}, {\n applications: [].concat(_toConsumableArray(tournament.applications), [application])\n });\n }\n\n return _objectSpread(_objectSpread({}, tournament), {}, {\n applications: tournament.applications.map(function (a) {\n return a.user_id === application.user_id ? application : a;\n })\n });\n};\nvar patchParticipant = function patchParticipant(tournament, participant) {\n if (!tournament) return tournament;\n\n if (!tournament.participants || !tournament.participants.length) {\n return _objectSpread(_objectSpread({}, tournament), {}, {\n participants: [participant]\n });\n }\n\n if (!tournament.participants.find(function (p) {\n return p.id === participant.id;\n })) {\n return _objectSpread(_objectSpread({}, tournament), {}, {\n participants: [].concat(_toConsumableArray(tournament.participants), [participant])\n });\n }\n\n return _objectSpread(_objectSpread({}, tournament), {}, {\n participants: tournament.participants.map(function (p) {\n return p.id === participant.id ? participant : p;\n })\n });\n};\nvar patchResult = function patchResult(tournament, result) {\n if (!tournament || !tournament.rounds) return tournament;\n return _objectSpread(_objectSpread({}, tournament), {}, {\n rounds: tournament.rounds.map(function (round) {\n return round.id === result.round_id ? _Round__WEBPACK_IMPORTED_MODULE_2__[\"default\"].patchResult(round, result) : round;\n })\n });\n};\nvar patchRound = function patchRound(tournament, round) {\n if (!tournament) return tournament;\n return _objectSpread(_objectSpread({}, tournament), {}, {\n rounds: tournament.rounds.map(function (r) {\n return r.id === round.id ? _objectSpread(_objectSpread({}, r), round) : r;\n })\n });\n};\nvar patchUser = function patchUser(tournament, user) {\n if (!tournament || !tournament.participants || !user) return tournament;\n if (!tournament.participants.find(function (p) {\n return p.user_id == user.id;\n })) return tournament;\n return _objectSpread(_objectSpread({}, tournament), {}, {\n participants: tournament.participants.map(function (p) {\n return _Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].patchUser(p, user);\n })\n });\n};\nvar removeApplication = function removeApplication(tournament, id) {\n if (!tournament || !tournament.applications || !tournament.applications.find(function (a) {\n return a.id == id;\n })) {\n return tournament;\n }\n\n return _objectSpread(_objectSpread({}, tournament), {}, {\n applications: tournament.applications.filter(function (a) {\n return a.id != id;\n })\n });\n};\nvar sortParticipants = function sortParticipants(tournament) {\n if (!tournament || !tournament.participants || !tournament.participants.length) {\n return tournament;\n }\n\n return _objectSpread(_objectSpread({}, tournament), {}, {\n participants: tournament.participants.sort(_Participant__WEBPACK_IMPORTED_MODULE_1__[\"default\"].compareUsername)\n });\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareScore: compareScore,\n findParticipant: findParticipant,\n getRunners: getRunners,\n getTournamentAdmins: getTournamentAdmins,\n getTournamentCrew: getTournamentCrew,\n getTournamentMonitors: getTournamentMonitors,\n hasRunners: hasRunners,\n hasScoreboard: hasScoreboard,\n hasSignup: hasSignup,\n hasTournamentAdmins: hasTournamentAdmins,\n hasTournamentCrew: hasTournamentCrew,\n hasTournamentMonitors: hasTournamentMonitors,\n patchResult: patchResult,\n patchRound: patchRound,\n patchUser: patchUser,\n sortParticipants: sortParticipants\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9Ub3VybmFtZW50LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFFTyxJQUFNRyxZQUFZLEdBQUcsU0FBZkEsWUFBZSxDQUFDQyxDQUFELEVBQUlDLENBQUosRUFBVTtBQUNyQyxNQUFNQyxPQUFPLEdBQUdGLENBQUMsSUFBSUEsQ0FBQyxDQUFDRyxLQUFQLEdBQWVILEN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ybmFtZW50TW9uaXRvciIsImhhc1J1bm5lcnMiLCJoYXNUb3VybmFtZW50QWRtaW5zIiwiaGFzVG91cm5hbWVudENyZXciLCJoYXNUb3VybmFtZW50TW9uaXRvcnMiLCJwYXRjaEFwcGxpY2F0aW9uIiwiYXBwbGljYXRpb24iLCJwYXRjaFBhcnRpY2lwYW50IiwicGF0Y2hSZXN1bHQiLCJyb3VuZF9pZCIsInBhdGNoUm91bmQiLCJyIiwicGF0Y2hVc2VyIiwicmVtb3ZlQXBwbGljYXRpb24iLCJzb3J0UGFydGljaXBhbnRzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/Tournament.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/User.js": -/*!**************************************!*\ - !*** ./resources/js/helpers/User.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 */ \"compareFinished\": () => (/* binding */ compareFinished),\n/* harmony export */ \"compareResult\": () => (/* binding */ compareResult),\n/* harmony export */ \"compareUsername\": () => (/* binding */ compareUsername),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"findResult\": () => (/* binding */ findResult),\n/* harmony export */ \"getAvatarUrl\": () => (/* binding */ getAvatarUrl),\n/* harmony export */ \"getUserName\": () => (/* binding */ getUserName),\n/* harmony export */ \"hasFinishedRound\": () => (/* binding */ hasFinishedRound)\n/* harmony export */ });\nvar compareFinished = function compareFinished(round) {\n return function (a, b) {\n var a_result = findResult(a, round);\n var b_result = findResult(b, round);\n var a_finished = a_result && a_result.has_finished;\n var b_finished = b_result && b_result.has_finished;\n\n if (a_finished) {\n if (b_finished) {\n return compareUsername(a, b);\n }\n\n return -1;\n }\n\n if (b_finished) {\n return 1;\n }\n\n return compareUsername(a, b);\n };\n};\nvar compareResult = function compareResult(round) {\n return function (a, b) {\n var a_result = findResult(a, round);\n var b_result = findResult(b, round);\n var a_placement = a_result && a_result.placement ? a_result.placement : 0;\n var b_placement = b_result && b_result.placement ? b_result.placement : 0;\n\n if (a_placement) {\n if (b_placement) {\n if (a_placement < b_placement) return -1;\n if (b_placement < a_placement) return 1;\n return compareUsername(a, b);\n }\n\n return -1;\n }\n\n if (b_placement) {\n return 1;\n }\n\n return compareUsername(a, b);\n };\n};\nvar compareUsername = function compareUsername(a, b) {\n var a_name = getUserName(a);\n var b_name = getUserName(b);\n return a_name.localeCompare(b_name);\n};\nvar findResult = function findResult(user, round) {\n if (!user || !user.id) return null;\n if (!round || !round.results || !round.results.length) return null;\n return round.results.find(function (result) {\n return result.user_id == user.id;\n });\n};\nvar getAvatarUrl = function getAvatarUrl(user) {\n if (user && user.avatar) {\n if (user.avatar_cached) {\n return \"/media/avatar/\".concat(user.id, \"/\").concat(user.avatar, \".png\");\n }\n\n return \"//cdn.discordapp.com/avatars/\".concat(user.id, \"/\").concat(user.avatar, \".png\");\n }\n\n return '/default-avatar.png';\n};\nvar getUserName = function getUserName(user) {\n return user && (user.nickname || user.discord_nickname || user.username) || '';\n};\nvar hasFinishedRound = function hasFinishedRound(user, round) {\n var result = findResult(user, round);\n return result && result.has_finished;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n compareFinished: compareFinished,\n compareResult: compareResult,\n compareUsername: compareUsername,\n findResult: findResult,\n getAvatarUrl: getAvatarUrl,\n getUserName: getUserName,\n hasFinishedRound: hasFinishedRound\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9Vc2VyLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQU8sSUFBTUEsZUFBZSxHQUFHLFNBQWxCQSxlQUFrQixDQUFBQyxLQUFLO0FBQUEsU0FBS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Il0sIm5hbWVzIjpbImNvbXBhcmVGaW5pc2hlZCIsInJvdW5kIiwiYSIsImIiLCJhX3Jlc3VsdCIsImZpbmRSZXN1bHQiLCJiX3Jlc3VsdCIsImFfZmluaXNoZWQiLCJoYXNfZmluaXNoZWQiLCJiX2ZpbmlzaGVkIiwiY29tcGFyZVVzZXJuYW1lIiwiY29tcGFyZVJlc3VsdCIsImFfcGxhY2VtZW50IiwicGxhY2VtZW50IiwiYl9wbGFjZW1lbnQiLCJhX25hbWUiLCJnZXRVc2VyTmFtZSIsImJfbmFtZSIsImxvY2FsZUNvbXBhcmUiLCJ1c2VyIiwiaWQiLCJyZXN1bHRzIiwibGVuZ3RoIiwiZmluZCIsInJlc3VsdCIsInVzZXJfaWQiLCJnZXRBdmF0YXJVcmwiLCJhdmF0YXIiLCJhdmF0YXJfY2FjaGVkIiwibmlja25hbWUiLCJkaXNjb3JkX25pY2tuYW1lIiwidXNlcm5hbWUiLCJoYXNGaW5pc2hlZFJvdW5kIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/User.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/UserContext.js": -/*!*********************************************!*\ - !*** ./resources/js/helpers/UserContext.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 */ \"useUser\": () => (/* binding */ useUser),\n/* harmony export */ \"withUser\": () => (/* binding */ withUser)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar UserContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);\nvar useUser = function useUser() {\n return react__WEBPACK_IMPORTED_MODULE_0__.useContext(UserContext);\n};\nvar withUser = function withUser(WrappedComponent, as) {\n return function WithUserContext(props) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(UserContext.Consumer, {\n children: function children(user) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(WrappedComponent, _objectSpread({}, _objectSpread(_defineProperty({}, as || 'user', user), props)));\n }\n });\n };\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UserContext);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9Vc2VyQ29udGV4dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBOztBQUVBLElBQU1DLFdBQVcsZ0JBQUdELGdEQUFBLENBQW9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5cdDwvVXNlckNvbnRleHQuQ29uc3VtZXI+O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgVXNlckNvbnRleHQ7XG4iXSwibmFtZXMiOlsiUmVhY3QiLCJVc2VyQ29udGV4dCIsImNyZWF0ZUNvbnRleHQiLCJ1c2VVc2VyIiwidXNlQ29udGV4dCIsIndpdGhVc2VyIiwiV3JhcHBlZENvbXBvbmVudCIsImFzIiwiV2l0aFVzZXJDb250ZXh0IiwicHJvcHMiLCJ1c2VyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/UserContext.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/bps.js": -/*!*************************************!*\ - !*** ./resources/js/helpers/bps.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\": () => (/* binding */ BPS)\n/* harmony export */ });\n/* harmony import */ var crc_32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crc-32 */ \"./node_modules/crc-32/crc32.js\");\n/* harmony import */ var crc_32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crc_32__WEBPACK_IMPORTED_MODULE_0__);\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n\nvar ACTION_SOURCE_READ = 0;\nvar ACTION_TARGET_READ = 1;\nvar ACTION_SOURCE_COPY = 2;\nvar ACTION_TARGET_COPY = 3;\n/**\n * Class to apply and create BPS's.\n *\n * @see https://www.romhacking.net/documents/746/\n */\n\nvar BPS = /*#__PURE__*/function () {\n function BPS() {\n _classCallCheck(this, BPS);\n\n this.sourceSize = 0;\n this.targetSize = 0;\n this.metaDataString = \"\";\n this.meta = {};\n this.actionsOffset = 0;\n this.sourceFile = null;\n this.sourceChecksum = 0;\n this.targetFile = null;\n this.targetChecksum = 0;\n this.patchSourceChecksum = 0;\n this.patchTargetChecksum = 0;\n this.patchChecksum = 0;\n this.patchFile = null;\n }\n /**\n * Set the patch file to be used.\n *\n * @param file BPS formatted file.\n */\n\n\n _createClass(BPS, [{\n key: \"setPatch\",\n value: function setPatch(file) {\n this.patchFile = new Uint8Array(file); // Check BPS1 at beginning of patch file\n\n var checkHeader = new Uint32Array(file.slice(0, 4))[0];\n\n if (checkHeader !== 827543618) {\n throw new Error(\"Not a valid patch file\");\n }\n\n var seek = 4; // skip BPS1\n\n var decodedSourceSize = this.decodeBPS(this.patchFile, seek);\n this.sourceSize = decodedSourceSize.number;\n seek += decodedSourceSize.length;\n var decodedTargetSize = this.decodeBPS(this.patchFile, seek);\n this.targetSize = decodedTargetSize.number;\n seek += decodedTargetSize.length;\n var decodedMetaDataLength = this.decodeBPS(this.patchFile, seek);\n seek += decodedMetaDataLength.length;\n\n if (decodedMetaDataLength.number) {\n var metaArray = this.patchFile.slice(seek, seek + decodedMetaDataLength.number);\n\n for (var i = 0; i < metaArray.byteLength; ++i) {\n this.metaDataString += String.fromCharCode(metaArray[i]);\n }\n\n this.meta = JSON.parse(this.metaDataString);\n seek += decodedMetaDataLength.number;\n }\n\n this.actionsOffset = seek;\n var buf32 = new Int32Array(file.slice(file.byteLength - 12));\n this.patchSourceChecksum = buf32[0];\n this.patchTargetChecksum = buf32[1];\n this.patchChecksum = buf32[2];\n\n if (this.patchChecksum !== crc_32__WEBPACK_IMPORTED_MODULE_0___default().buf(this.patchFile.slice(0, this.patchFile.byteLength - 4))) {\n throw new Error(\"Patch checksum incorrect\");\n }\n\n return this;\n }\n }, {\n key: \"setSource\",\n value: function setSource(file) {\n this.sourceFile = new Uint8Array(file);\n this.sourceChecksum = crc_32__WEBPACK_IMPORTED_MODULE_0___default().buf(this.sourceFile);\n return this;\n }\n }, {\n key: \"setTarget\",\n value: function setTarget(file) {\n this.targetFile = new Uint8Array(file);\n this.targetChecksum = crc_32__WEBPACK_IMPORTED_MODULE_0___default().buf(this.targetFile);\n return this;\n }\n /**\n * Apply the currently loaded patch to the currently loaded file\n * and return the patched array buffer.\n */\n\n }, {\n key: \"applyPatch\",\n value: function applyPatch() {\n if (this.patchFile === null) {\n throw new Error(\"Patch not set\");\n }\n\n if (this.sourceFile === null) {\n throw new Error(\"Source not set\");\n }\n\n if (this.patchSourceChecksum !== this.sourceChecksum) {\n throw new Error(\"Source checksum incorrect\");\n }\n\n var newFileSize = 0;\n var seek = this.actionsOffset; // determine target filesize\n\n while (seek < this.patchFile.byteLength - 12) {\n var data = this.decodeBPS(this.patchFile, seek);\n var action = {\n type: data.number & 3,\n length: (data.number >> 2) + 1\n };\n seek += data.length;\n newFileSize += action.length;\n\n switch (action.type) {\n case ACTION_TARGET_READ:\n seek += action.length;\n break;\n\n case ACTION_SOURCE_COPY:\n case ACTION_TARGET_COPY:\n seek += this.decodeBPS(this.patchFile, seek).length;\n break;\n }\n }\n\n var tempFile = new ArrayBuffer(newFileSize);\n var tempFileView = new Uint8Array(tempFile); // patch\n\n var outputOffset = 0;\n var sourceRelativeOffset = 0;\n var targetRelativeOffset = 0;\n seek = this.actionsOffset;\n\n while (seek < this.patchFile.byteLength - 12) {\n var _data = this.decodeBPS(this.patchFile, seek);\n\n var data2 = void 0;\n var _action = {\n type: _data.number & 3,\n length: (_data.number >> 2) + 1\n };\n seek += _data.length;\n\n switch (_action.type) {\n case ACTION_SOURCE_READ:\n for (var i = 0; i < _action.length; ++i) {\n tempFileView[outputOffset + i] = this.sourceFile[outputOffset + i];\n }\n\n outputOffset += _action.length;\n break;\n\n case ACTION_TARGET_READ:\n for (var _i = 0; _i < _action.length; ++_i) {\n tempFileView[outputOffset + _i] = this.patchFile[seek + _i];\n }\n\n outputOffset += _action.length;\n seek += _action.length;\n break;\n\n case ACTION_SOURCE_COPY:\n data2 = this.decodeBPS(this.patchFile, seek);\n seek += data2.length;\n sourceRelativeOffset += (data2.number & 1 ? -1 : 1) * (data2.number >> 1);\n\n while (_action.length--) {\n tempFileView[outputOffset] = this.sourceFile[sourceRelativeOffset];\n outputOffset++;\n sourceRelativeOffset++;\n }\n\n break;\n\n case ACTION_TARGET_COPY:\n data2 = this.decodeBPS(this.patchFile, seek);\n seek += data2.length;\n targetRelativeOffset += (data2.number & 1 ? -1 : 1) * (data2.number >> 1);\n\n while (_action.length--) {\n tempFileView[outputOffset] = tempFileView[targetRelativeOffset];\n outputOffset++;\n targetRelativeOffset++;\n }\n\n break;\n }\n }\n\n this.setTarget(tempFile);\n\n if (this.patchTargetChecksum !== this.targetChecksum) {\n throw new Error(\"Target checksum incorrect\");\n }\n\n return tempFile;\n }\n /**\n * Create a patch from the source and target binaries and return it as an\n * array buffer.\n */\n\n }, {\n key: \"createPatch\",\n value: function createPatch() {\n throw new Error(\"Not Currently Implemented\");\n }\n /**\n * Convert BPS number format into number.\n *\n * @todo this is inherrently dangerous with while(true)\n *\n * @param dataBytes\n * @param i\n */\n\n }, {\n key: \"decodeBPS\",\n value: function decodeBPS(dataBytes, i) {\n var number = 0;\n var shift = 1;\n var len = 0;\n\n for (var j = 0; j < 16; ++j) {\n var x = dataBytes[i];\n i++;\n len++;\n number += (x & 0x7f) * shift;\n\n if (x & 0x80) {\n break;\n }\n\n shift <<= 7;\n number += shift;\n }\n\n return {\n number: number,\n length: len\n };\n }\n /**\n * Convert number into BPS number format.\n *\n * @todo this is inherrently dangerous with while(true)\n *\n * @param toEncode\n */\n\n }, {\n key: \"encodeBPS\",\n value: function encodeBPS(toEncode) {\n var array = [];\n\n for (var i = 0; i < 16; ++i) {\n var x = toEncode & 0x7f;\n toEncode >>= 7;\n\n if (toEncode === 0) {\n array.push(0x80 | x);\n break;\n }\n\n array.push(x);\n toEncode--;\n }\n\n return Uint8Array.from(array);\n }\n }]);\n\n return BPS;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9icHMuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFFQSxJQUFNQyxrQkFBa0IsR0FBRyxDQUEzQjtBQUNBLElBQU1DLGtCQUFrQixHQUFHLENBQTNCO0FBQ0EsSUFBTUMsa0JBQWtCLEdBQUcsQ0FBM0I7QUFDQSxJQUFNQyxrQkFBa0IsR0FBRyxDQUEzQjtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0lBQ3FCQztBQUVwQixpQkFBYztBQUFBOztBQUNiLFNBQUtDLFVBQUwsR0FBa0IsQ0FBbEI7QUFDQSxTQUFLQyxVQUFMLEdBQWtCLENBQWxCO0FBQ0EsU0FBS0MsY0FBTCxHQUFzQixFQUF0QjtBQUNBLFNBQUtDLElBQUwsR0FBWSxFQUFaO0FBQ0EsU0FBS0MsYUFBTCxHQUFxQixDQUFyQjtBQUNBLFNBQUtDLFVBQUwsR0FBa0IsSUFBbEI7QUFDQSxTQUFLQyxjQUFMLEdBQXNCLENBQXRCO0FBQ0EsU0FBS0MsVUFBTCxHQUFrQixJQUFsQjtBQUNBLFNBQUtDLGNBQUwsR0FBc0IsQ0FBdEI7QUFDQSxTQUFLQyxtQkFBTCxHQUEyQixDQUEzQjtBQUNBLFNBQUtDLG1CQUFMLEdBQTJCLENBQTNCO0FBQ0EsU0FBS0MsYUFBTCxHQUFxQixDQUFyQjtBQUNBLFNBQUtDLFNBQUwsR0FBaUIsSUFBakI7QU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XRhRGF0YVN0cmluZyIsIm1ldGEiLCJhY3Rpb25zT2Zmc2V0Iiwic291cmNlRmlsZSIsInNvdXJjZUNoZWNrc3VtIiwidGFyZ2V0RmlsZSIsInRhcmdldENoZWNrc3VtIiwicGF0Y2hTb3VyY2VDaGVja3N1bSIsInBhdGNoVGFyZ2V0Q2hlY2tzdW0iLCJwYXRjaENoZWNrc3VtIiwicGF0Y2hGaWxlIiwiZmlsZSIsIlVpbnQ4QXJyYXkiLCJjaGVja0hlYWRlciIsIlVpbnQzMkFycmF5Iiwic2xpY2UiLCJFcnJvciIsInNlZWsiLCJkZWNvZGVkU291cmNlU2l6ZSIsImRlY29kZUJQUyIsIm51bWJlciIsImxlbmd0aCIsImRlY29kZWRUYXJnZXRTaXplIiwiZGVjb2RlZE1ldGFEYXRhTGVuZ3RoIiwibWV0YUFycmF5IiwiaSIsImJ5dGVMZW5ndGgiLCJTdHJpbmciLCJmcm9tQ2hhckNvZGUiLCJKU09OIiwicGFyc2UiLCJidWYzMiIsIkludDMyQXJyYXkiLCJidWYiLCJuZXdGaWxlU2l6ZSIsImRhdGEiLCJhY3Rpb24iLCJ0eXBlIiwidGVtcEZpbGUiLCJBcnJheUJ1ZmZlciIsInRlbXBGaWxlVmlldyIsIm91dHB1dE9mZnNldCIsInNvdXJjZVJlbGF0aXZlT2Zmc2V0IiwidGFyZ2V0UmVsYXRpdmVPZmZzZXQiLCJkYXRhMiIsInNldFRhcmdldCIsImRhdGFCeXRlcyIsInNoaWZ0IiwibGVuIiwiaiIsIngiLCJ0b0VuY29kZSIsImFycmF5IiwicHVzaCIsImZyb20iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/helpers/bps.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/debounce.js": -/*!******************************************!*\ - !*** ./resources/js/helpers/debounce.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 */ });\nvar _this = undefined;\n\nvar debounce = function debounce(func, wait, immediate) {\n var timeout = null;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var context = _this;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (debounce);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9kZWJvdW5jZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxJQUFNQSxRQUFRLEdBQUcsU0FBWEEsUUFBVyxDQUFDQyxJQUFELEVBQU9DLElBQVAsRUFBYUMsU0FBYixFQUEyQjtBQUMzQyxNQUFJQyxPQUFPLEdBQUcsSUFBZDtBQUVBLFNBQU8sWUFBYTtBQUFBLHNDQUFUQyxJQUFTO0FBQVRBLE1BQUFBLElBQVM7QUFBQTs7QUFDbkIsUUFBTUMsT0FBTyxHQUFHLEtBQWhCOztBQUVBLFFBQU1DLEtBQUssR0FBRyxTQUFSQSxLQUFRLEdBQU07QUFDbkJILE1BQUFBLE9BQU8sR0FBRyxJQUFWO0FBQ0EsVUFBSSxDQUFDRCxTQUFMLEVBQWdCRixJQUFJLENBQUNPLEtBQUwsQ0FBV0YsT0FBWCxFQUFvQkQsSUFBcEI7QUFDaEIsS0FIRDs7QUFLQSxRQUFNSSxPQUFPLEdBQUdOLFNBQVMsSUFBSSxDQUFDQyxPQUE5QjtBQUVBTSxJQUFBQSxZQUFZLENBQUNOLE9BQUQsQ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250ZXh0IiwibGF0ZXIiLCJhcHBseSIsImNhbGxOb3ciLCJjbGVhclRpbWVvdXQiLCJzZXRUaW1lb3V0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/debounce.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/laravelErrorsToFormik.js": -/*!*******************************************************!*\ - !*** ./resources/js/helpers/laravelErrorsToFormik.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 */ });\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar laravelErrorsToFormik = function laravelErrorsToFormik(errors) {\n return Object.keys(errors || {}).reduce(function (result, key) {\n return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, key, errors[key].join(', ')));\n }, {});\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (laravelErrorsToFormik);//# sourceURL=[module]\n//# sourceMapp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NvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/laravelErrorsToFormik.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/nl2br.js": -/*!***************************************!*\ - !*** ./resources/js/helpers/nl2br.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\nvar nl2br = function nl2br(str) {\n if (typeof str !== 'string') {\n return str;\n }\n\n var nl = /(\\r\\n|\\r|\\n)/g;\n return str.split(nl).map(function (line, index) {\n if (line.match(nl)) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(\"br\", {}, index);\n }\n\n return line;\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (nl2br);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9ubDJici5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7O0FBRUEsSUFBTUMsS0FBSyxHQUFHLFNBQVJBLEtBQVEsQ0FBQUMsR0FBRyxFQUFJO0FBQ3BCLE1BQUksT0FBT0EsR0FBUCxLQUFlLFFBQW5CLEVBQTZCO0FBQzVCLFdBQU9BLEdBQVA7QUFDQTs7QUFDRCxNQUFNQyxFQUFFLEdBQUcsZUFBWDtBQUNBLFNBQU9ELEdBQUcsQ0FBQ0UsS0FBSixDQUFVRCxFQUFWLEVBQWNFLEdBQWQsQ0FBa0IsVUFBQ0MsSUFBRCxFQUFPQyxLQUFQLEVBQWlCO0FBQ3pDLFFBQUlELElBQUksQ0FBQ0UsS0FBTCxDQUFXTCxFQUFYLENBQUosRUFBb0I7QUFDbkIsMEJBQU8saUVBQVNJLEtBQVQsQ0FBUDtBQUNBOztBQUNELFdBQU9ELElBQVA7QUFDQSxHQUxNLENBQVA7QUFNQSxDQVhEOztBQWFBLGlFQUFlTCxLQUFmIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2hlbHBlcnMvbmwyYnIuanM/MzQ5YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5jb25zdCBubDJiciA9IHN0ciA9PiB7XG5cdGlmICh0eXBlb2Ygc3RyICE9PSAnc3RyaW5nJykge1xuXHRcdHJldHVybiBzdHI7XG5cdH1cblx0Y29uc3QgbmwgPSAvKFxcclxcbnxcXHJ8XFxuKS9nO1xuXHRyZXR1cm4gc3RyLnNwbGl0KG5sKS5tYXAoKGxpbmUsIGluZGV4KSA9PiB7XG5cdFx0aWYgKGxpbmUubWF0Y2gobmwpKSB7XG5cdFx0XHRyZXR1cm4gPGJyIGtleT17aW5kZXh9IC8+O1xuXHRcdH1cblx0XHRyZXR1cm4gbGluZTtcblx0fSk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBubDJicjtcbiJdLCJuYW1lcyI6WyJSZWFjdCIsIm5sMmJyIiwic3RyIiwibmwiLCJzcGxpdCIsIm1hcCIsImxpbmUiLCJpbmRleCIsIm1hdGNoIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/nl2br.js\n"); - -/***/ }), - -/***/ "./resources/js/helpers/permissions.js": -/*!*********************************************!*\ - !*** ./resources/js/helpers/permissions.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 */ \"applicableChannels\": () => (/* binding */ applicableChannels),\n/* harmony export */ \"canApplyForEpisode\": () => (/* binding */ canApplyForEpisode),\n/* harmony export */ \"canRestreamEpisode\": () => (/* binding */ canRestreamEpisode),\n/* harmony export */ \"episodeHasChannel\": () => (/* binding */ episodeHasChannel),\n/* harmony export */ \"hasFinished\": () => (/* binding */ hasFinished),\n/* harmony export */ \"hasGlobalRole\": () => (/* binding */ hasGlobalRole),\n/* harmony export */ \"isAdmin\": () => (/* binding */ isAdmin),\n/* harmony export */ \"isApplicant\": () => (/* binding */ isApplicant),\n/* harmony export */ \"isChannelAdmin\": () => (/* binding */ isChannelAdmin),\n/* harmony export */ \"isCommentator\": () => (/* binding */ isCommentator),\n/* harmony export */ \"isDeniedApplicant\": () => (/* binding */ isDeniedApplicant),\n/* harmony export */ \"isParticipant\": () => (/* binding */ isParticipant),\n/* harmony export */ \"isRunner\": () => (/* binding */ isRunner),\n/* harmony export */ \"isSameUser\": () => (/* binding */ isSameUser),\n/* harmony export */ \"isTournamentAdmin\": () => (/* binding */ isTournamentAdmin),\n/* harmony export */ \"isTournamentCrew\": () => (/* binding */ isTournamentCrew),\n/* harmony export */ \"isTournamentMonitor\": () => (/* binding */ isTournamentMonitor),\n/* harmony export */ \"isTracker\": () => (/* binding */ isTracker),\n/* harmony export */ \"mayAddRounds\": () => (/* binding */ mayAddRounds),\n/* harmony export */ \"mayApply\": () => (/* binding */ mayApply),\n/* harmony export */ \"mayEditContent\": () => (/* binding */ mayEditContent),\n/* harmony export */ \"mayEditNickname\": () => (/* binding */ mayEditNickname),\n/* harmony export */ \"mayEditRestream\": () => (/* binding */ mayEditRestream),\n/* harmony export */ \"mayEditRound\": () => (/* binding */ mayEditRound),\n/* harmony export */ \"mayEditStreamLink\": () => (/* binding */ mayEditStreamLink),\n/* harmony export */ \"mayHandleApplications\": () => (/* binding */ mayHandleApplications),\n/* harmony export */ \"mayLockRound\": () => (/* binding */ mayLockRound),\n/* harmony export */ \"mayReportResult\": () => (/* binding */ mayReportResult),\n/* harmony export */ \"mayRestreamEpisodes\": () => (/* binding */ mayRestreamEpisodes),\n/* harmony export */ \"maySeeResults\": () => (/* binding */ maySeeResults),\n/* harmony export */ \"maySetSeed\": () => (/* binding */ maySetSeed),\n/* harmony export */ \"mayUpdateTournament\": () => (/* binding */ mayUpdateTournament),\n/* harmony export */ \"mayViewProtocol\": () => (/* binding */ mayViewProtocol)\n/* harmony export */ });\n/* harmony import */ var _Episode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Episode */ \"./resources/js/helpers/Episode.js\");\n/* harmony import */ var _Round__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Round */ \"./resources/js/helpers/Round.js\");\n/// NOTE: These permissions are for UI cosmetics only!\n/// They should be in sync with the backend Policies.\n\n\nvar hasGlobalRole = function hasGlobalRole(user, role) {\n return user && role && user.global_roles && user.global_roles.includes(role);\n};\nvar isAdmin = function isAdmin(user) {\n return user && user.role === 'admin';\n};\nvar isSameUser = function isSameUser(user, subject) {\n return user && subject && user.id === subject.id;\n}; // Channels\n\nvar isChannelAdmin = function isChannelAdmin(user, channel) {\n return user && channel && user.channel_crews && user.channel_crews.find(function (c) {\n return c.role === 'admin' && c.channel_id === channel.id;\n });\n}; // Content\n\nvar mayEditContent = function mayEditContent(user) {\n return user && hasGlobalRole(user, 'content');\n}; // Episodes\n\nvar isCommentator = function isCommentator(user, episode) {\n if (!user || !episode || !episode.crew) return false;\n return !!episode.crew.find(function (c) {\n return c.role === \"commentary\" && c.user_id === user.id;\n });\n};\nvar isTracker = function isTracker(user, episode) {\n if (!user || !episode || !episode.crew) return false;\n return !!episode.crew.find(function (c) {\n return c.role === \"tracking\" && c.user_id === user.id;\n });\n};\nvar episodeHasChannel = function episodeHasChannel(episode, channel) {\n return episode && channel && episode.channels && episode.channels.find(function (c) {\n return c.id === channel.id;\n });\n};\nvar mayRestreamEpisodes = function mayRestreamEpisodes(user) {\n return user && user.channel_crews && user.channel_crews.find(function (c) {\n return c.role === 'admin';\n });\n};\nvar mayEditRestream = function mayEditRestream(user, episode, channel) {\n return episodeHasChannel(episode, channel) && isChannelAdmin(user, channel);\n};\nvar canApplyForEpisode = function canApplyForEpisode(user, episode, as) {\n if (!user) return false;\n if (as === 'commentary') return _Episode__WEBPACK_IMPORTED_MODULE_0__.acceptsComms(episode) && !isCommentator(user, episode);\n if (as === 'tracking') return _Episode__WEBPACK_IMPORTED_MODULE_0__.acceptsTrackers(episode) && !isTracker(user, episode);\n return false;\n};\nvar applicableChannels = function applicableChannels(user, episode, as) {\n if (!user || !episode) return [];\n var assigned_channels = (episode.crew || []).filter(function (c) {\n return c.user_id === user.id;\n }).map(function (c) {\n return c.channel_id;\n });\n var channels = episode.channels || [];\n if (as === 'commentary') return channels.filter(function (c) {\n return c.pivot && c.pivot.accept_comms && !assigned_channels.includes(c.id);\n });\n if (as === 'tracking') return channels.filter(function (c) {\n return c.pivot && c.pivot.accept_tracker && !assigned_channels.includes(c.id);\n });\n return [];\n};\nvar canRestreamEpisode = function canRestreamEpisode(user, episode) {\n if (!user || !episode || !mayRestreamEpisodes(user)) return false;\n var available_channels = user.channel_crews.filter(function (c) {\n return c.role === 'admin';\n }).map(function (c) {\n return c.channel_id;\n });\n var claimed_channels = (episode && episode.channels || []).map(function (c) {\n return c.id;\n });\n var remaining_channels = available_channels.filter(function (id) {\n return !claimed_channels.includes(id);\n });\n return remaining_channels.length > 0;\n}; // Tournaments\n\nvar isApplicant = function isApplicant(user, tournament) {\n if (!user || !tournament || !tournament.applications) {\n return false;\n }\n\n return tournament.applications.find(function (p) {\n return p.user && p.user.id == user.id;\n });\n};\nvar isDeniedApplicant = function isDeniedApplicant(user, tournament) {\n if (!user || !tournament || !tournament.applications) {\n return false;\n }\n\n var applicant = tournament.applications.find(function (p) {\n return p.user && p.user.id == user.id;\n });\n return applicant && applicant.denied;\n};\nvar isParticipant = function isParticipant(user, tournament) {\n return user && tournament && tournament.participants && tournament.participants.find(function (p) {\n return p.user && p.user.id == user.id;\n });\n};\nvar isRunner = function isRunner(user, tournament) {\n var p = isParticipant(user, tournament);\n return p && p.roles && p.roles.includes('runner');\n};\nvar isTournamentAdmin = function isTournamentAdmin(user, tournament) {\n var p = isParticipant(user, tournament);\n return p && p.roles && p.roles.includes('admin');\n};\nvar isTournamentCrew = function isTournamentCrew(user, tournament) {\n return isTournamentAdmin(user, tournament) || isTournamentMonitor(user, tournament);\n};\nvar isTournamentMonitor = function isTournamentMonitor(user, tournament) {\n var p = isParticipant(user, tournament);\n return p && p.roles && p.roles.includes('monitor');\n};\nvar hasFinished = function hasFinished(user, round) {\n return user && round && round.results && round.results.find(function (r) {\n return r.user_id == user.id && r.has_finished;\n });\n};\nvar mayAddRounds = function mayAddRounds(user, tournament) {\n return !tournament.locked && (isRunner(user, tournament) || isTournamentAdmin(user, tournament));\n};\nvar mayApply = function mayApply(user, tournament) {\n return user && tournament && tournament.accept_applications && !isRunner(user, tournament) && !isApplicant(user, tournament);\n};\nvar mayHandleApplications = function mayHandleApplications(user, tournament) {\n return tournament && tournament.accept_applications && isTournamentAdmin(user, tournament);\n};\nvar mayReportResult = function mayReportResult(user, tournament) {\n if (!user || !tournament) return false;\n if (tournament.type === 'open-async') return true;\n return isRunner(user, tournament);\n};\nvar mayEditRound = function mayEditRound(user, tournament) {\n return !tournament.locked && isTournamentAdmin(user, tournament);\n};\nvar mayLockRound = function mayLockRound(user, tournament) {\n return !tournament.locked && isTournamentAdmin(user, tournament);\n};\nvar maySetSeed = function maySetSeed(user, tournament, round) {\n return !round.locked && (isRunner(user, tournament) || isTournamentAdmin(user, tournament));\n};\nvar mayUpdateTournament = function mayUpdateTournament(user, tournament) {\n return isAdmin(user) || isTournamentAdmin(user, tournament);\n};\nvar mayViewProtocol = function mayViewProtocol(user, tournament) {\n return isTournamentCrew(user, tournament);\n};\nvar maySeeResults = function maySeeResults(user, tournament, round) {\n return round.locked || hasFinished(user, round) || isTournamentMonitor(user, tournament) || _Round__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isComplete(tournament, round);\n}; // Users\n\nvar mayEditNickname = function mayEditNickname(user, subject) {\n return isSameUser(user, subject);\n};\nvar mayEditStreamLink = function mayEditStreamLink(user, subject) {\n return isSameUser(user, subject);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaGVscGVycy9wZXJtaXNzaW9ucy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBRU8sSUFBTUUsYUFBYSxHQUFHLFNBQWhCQSxhQUFnQixDQUFDQyxJQUFELEVBQU9DLElBQVA7QUFBQSxTQUM1QkQsSUFBSSxJQUFJQyxJQUFSLElBQWdCRCxJQUFJLENBQUNFLFlBQXJCLElBQXFDRixJQUFJLENBQUNFLFlBQUwsQ0FBa0JDLFFBQWxCLENBQTJCRixJQUEzQixDQURUO0FBQUEsQ0FBdEI7QUFHQSxJQUFNRyxPQUFPLEdBQUcsU0FBVkEsT0FBVSxDQUFBSixJQUFJO0FBQUEsU0FBSUEsSUFBSSxJQUFJQSxJQUFJLENBQUNDLElBQUwsS0FBYyxPQUExQjtBQUFBLENBQXBCO0FBRUEsSUFBTUksVUFBVSxHQUFHLFNBQWJBLFVBQWEsQ0FBQ0wsSUFBRCxFQUFPTSxPQUFQO0FBQUEsU0FBbUJOLElBQUksSUFBSU0sT0FBUixJQUFtQk4sSUFBSSxDQUFDTyxFQUFMLEtBQVlELE9BQU8sQ0FBQ0MsRUFBMUQ7QUFBQSxDQUFuQixFQUVQOztBQUVPLElBQU1DLGNBQWMsR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uYW1lbnQiLCJhcHBsaWNhdGlvbnMiLCJwIiwiaXNEZW5pZWRBcHBsaWNhbnQiLCJhcHBsaWNhbnQiLCJkZW5pZWQiLCJpc1BhcnRpY2lwYW50IiwicGFydGljaXBhbnRzIiwiaXNSdW5uZXIiLCJyb2xlcyIsImlzVG91cm5hbWVudEFkbWluIiwiaXNUb3VybmFtZW50Q3JldyIsImlzVG91cm5hbWVudE1vbml0b3IiLCJoYXNGaW5pc2hlZCIsInJvdW5kIiwicmVzdWx0cyIsInIiLCJoYXNfZmluaXNoZWQiLCJtYXlBZGRSb3VuZHMiLCJsb2NrZWQiLCJtYXlBcHBseSIsImFjY2VwdF9hcHBsaWNhdGlvbnMiLCJtYXlIYW5kbGVBcHBsaWNhdGlvbnMiLCJtYXlSZXBvcnRSZXN1bHQiLCJ0eXBlIiwibWF5RWRpdFJvdW5kIiwibWF5TG9ja1JvdW5kIiwibWF5U2V0U2VlZCIsIm1heVVwZGF0ZVRvdXJuYW1lbnQiLCJtYXlWaWV3UHJvdG9jb2wiLCJtYXlTZWVSZXN1bHRzIiwiaXNDb21wbGV0ZSIsIm1heUVkaXROaWNrbmFtZSIsIm1heUVkaXRTdHJlYW1MaW5rIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/helpers/permissions.js\n"); - -/***/ }), - -/***/ "./resources/js/i18n/de.js": -/*!*********************************!*\ - !*** ./resources/js/i18n/de.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/* eslint-disable max-len */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n translation: {\n alttp: {\n baseRomInvalid: 'CRC32 Check fehlgeschlagen (brauche 33:22:EF:FC). Falsche ROM Datei?',\n baseRomRemoved: 'Base ROM entfernt.',\n baseRomSet: 'Base ROM gespeichert.',\n setBaseRom: 'Base ROM auswählen'\n },\n alttpSeeds: {\n date: '{{ date, L LT }}',\n fetchingPatch: 'Lade Patch',\n filename: 'alttpr - {{preset}} - {{hash}}',\n heading: 'A Link to the Past Randomizer Seed',\n generated: 'Generiert',\n generator: 'Generator',\n generators: {\n doors: 'Dieser Seed wurde mit dem Door Randomizer von Aerinon generiert'\n },\n mystery: 'Mystery ROM, Einstellungen versteckt',\n noMystery: 'Kein Mystery',\n noRace: 'Kein Race',\n patch: 'ROM patchen',\n patchError: 'Fehler beim Patchen: {{msg}}',\n preset: 'Preset',\n presets: {\n custom: 'Eigenes'\n },\n race: 'Race ROM, Seed versteckt',\n seed: 'Seed',\n settingName: {\n shuffleenemies: 'Enemy Shuffle'\n },\n settings: 'Settings',\n settingValue: {\n shuffleenemies: {\n shuffled: 'Shuffled'\n }\n },\n status: 'Status',\n statuses: {\n error: 'Fehler',\n generated: 'generiert',\n pending: 'ausstehend'\n }\n },\n applications: {\n accept: 'Annehmen',\n acceptError: 'Fehler beim Annehmen',\n acceptSuccess: 'Angenommen',\n reject: 'Ablehnen',\n rejectSuccess: 'Abgelehnt',\n rejectError: 'Fehler beim Ablehnen'\n },\n button: {\n add: 'Hinzufügen',\n back: 'Zurück',\n cancel: 'Abbrechen',\n chart: 'Diagramm',\n close: 'Schließen',\n confirm: 'Bestätigen',\n edit: 'Bearbeiten',\n filter: 'Filter',\n generate: 'Generieren',\n help: 'Hilfe',\n invert: 'Umkehren',\n login: 'Login',\n logout: 'Logout',\n \"new\": 'Neu',\n nextFrame: 'Nächster Frame',\n pause: 'Pause',\n play: 'Play',\n playPause: 'Play/Pause',\n protocol: 'Protokoll',\n remove: 'Entfernen',\n retry: 'Neu versuchen',\n save: 'Speichern',\n search: 'Suche',\n settings: 'Einstellungen',\n signUp: 'Anmelden',\n stop: 'Stop',\n unconfirm: 'Zurückziehen',\n unset: 'Zurücksetzen'\n },\n content: {\n attribution: 'Attribution',\n description: 'Beschreibung',\n edit: 'Inhalt bearbeiten',\n saveError: 'Fehler beim Speichern',\n saveSuccess: 'Gespeichert',\n \"short\": 'Kurzbeschreibung',\n title: 'Titel'\n },\n crew: {\n roles: {\n commentary: 'Kommentar',\n setup: 'Setup',\n tracking: 'Tracker'\n }\n },\n discordBot: {\n channel: 'Kanal',\n controls: 'Steuerung',\n guild: 'Server',\n heading: 'Discord Bot',\n invite: 'Bot einladen',\n selectGuild: 'Bitte Server wählen'\n },\n episodes: {\n addRestream: 'Neuer Restream',\n applyDialog: {\n applyError: 'Fehler bei der Anmeldung',\n applySuccess: 'Angemeldet',\n signUpAs: 'Anmeldung als',\n title: 'Anmeldung'\n },\n channel: 'Kanal',\n commentary: 'Kommentar',\n empty: 'Keine anstehenden Termine.',\n raceroom: 'Raceroom',\n restreamDialog: {\n acceptComms: 'Suche Kommentatoren',\n acceptTracker: 'Suche Tracker',\n addError: 'Fehler beim Hinzufügen',\n addSuccess: 'Hinzugefügt',\n addUser: 'Benutzer hinzufügen',\n crewError: 'Fehler beim Aktualisieren',\n crewSuccess: 'Aktualisiert',\n editError: 'Fehler beim Speichern',\n editSuccess: 'Gespeichert',\n removeError: 'Fehler beim Entfernen',\n removeSuccess: 'Entfernt',\n title: 'Restream'\n },\n setup: 'Setup',\n sgSignUp: 'SG Anmeldung',\n startTime: '{{ date, LL LT }} Uhr',\n tracking: 'Tracking'\n },\n error: {\n 403: {\n description: 'So aber nicht',\n heading: 'Zugriff verweigert'\n },\n 404: {\n description: 'Das war aber irgendwo',\n heading: 'Nicht gefunden'\n },\n 500: {\n description: 'NotLikeThis',\n heading: 'Serverfehler'\n }\n },\n events: {\n upcomingEpisodes: 'Anstehende Rennen'\n },\n footer: {\n alttpde: 'Deutscher ALttP Discord',\n alttpwiki: 'ALttP Speedrunning Wiki',\n competitions: 'Wettbewerbe',\n connect: 'Connect Spedruns Discord',\n contact: 'Wenn du gerne ein Turnier auf dieser Seite organisieren möchtest, wende dich bitte an holysmoke86 im Discord.',\n info: 'Infos',\n map: 'ALttP Karte',\n muffins: 'Muffins\\' Glitch Map (EN)',\n privacy: 'Datenschutz',\n resources: 'Ressourcen',\n schedule: 'Terminplan',\n smd: 'Deutscher Super Metroid Discord',\n smwiki: 'Super Metroid Speedrunning Wiki',\n tech: 'ALttP Techniken'\n },\n general: {\n anonymous: 'Anonym',\n appDescription: 'Turniere und Tutorials für The Legend of Zelda: A Link to the Past Randomizer',\n appName: 'ALttP',\n pleaseSelect: 'Bitte wählen'\n },\n icon: {\n AddIcon: 'Hinzufügen',\n AllowedIcon: 'Erlaubt',\n ApplicationsIcon: 'Anträge',\n ApplyIcon: 'Beantragen',\n ChartIcon: 'Diagramm',\n DiscordIcon: 'Discord',\n EditIcon: 'Bearbeiten',\n FinishedIcon: 'Abgeschlossen',\n FirstPlaceIcon: 'Erster Platz',\n ForbiddenIcon: 'Verboten',\n ForfeitIcon: 'Aufgegeben',\n LanguageIcon: 'Sprache',\n LockedIcon: 'Gesperrt',\n LogoutIcon: 'Logout',\n PendingIcon: 'Ausstehend',\n ProtocolIcon: 'Protokoll',\n ResultIcon: 'Ergebnis',\n SecondPlaceIcon: 'Zweiter Platz',\n SettingsIcon: 'Einstellungen',\n StreamIcon: 'Stream',\n ThirdPlaceIcon: 'Dritter Platz',\n TwitchIcon: 'Twitch',\n UnknownIcon: 'Unbekannt',\n UnlockedIcon: 'Offen',\n YoutubeIcon: 'YouTube',\n VideoIcon: 'Video',\n zelda: {\n 'big-key': 'Big Key',\n 'blue-boomerang': 'Boomerang',\n 'blue-mail': 'Blue Mail',\n 'blue-pendant': 'Pendant of Power',\n 'blue-potion': 'Blue Potion',\n bombos: 'Bombos',\n bomb: 'Bomb',\n book: 'Book',\n boots: 'Boots',\n 'bottle-bee': 'Bee in a Bottle',\n bottle: 'Bottle',\n bow: 'Bow',\n bugnet: 'Bugnet',\n byrna: 'Cane of Byrna',\n cape: 'Cape',\n compass: 'Compass',\n crystal: 'Crystal',\n duck: 'Duck',\n 'dungeon-ct': 'Castle Tower',\n 'dungeon-dp': 'Desert Palace',\n 'dungeon-ep': 'Eastern Palace',\n 'dungeon-gt': 'Ganon\\'s Tower',\n 'dungeon-hc': 'Hyrule Castle',\n 'dungeon-ip': 'Ice Palace',\n 'dungeon-mm': 'Misery Mire',\n 'dungeon-pd': 'Palace of Darkness',\n 'dungeon-sp': 'Swamp Palace',\n 'dungeon-sw': 'Skull Woods',\n 'dungeon-th': 'Tower of Hera',\n 'dungeon-tr': 'Turtle Rock',\n 'dungeon-tt': 'Thieves\\' Town',\n ether: 'Ether',\n fairy: 'Fairy in a Bottle',\n 'fighter-shield': 'Fighter Shield',\n 'fighter-sword': 'Fighter Sword',\n 'fire-rod': 'Fire Rod',\n 'fire-shield': 'Fire Shield',\n flippers: 'Flippers',\n flute: 'Flute',\n glove: 'Power Glove',\n 'green-mail': 'Green Mail',\n 'green-pendant': 'Pendant of Courage',\n 'green-potion': 'Green Potion',\n hammer: 'Hammer',\n 'heart-container': 'Heart Container',\n 'heart-piece': 'Heart Piece',\n hookshot: 'Hookshot',\n 'ice-rod': 'Ice Rod',\n lamp: 'Lamp',\n map: 'Map',\n mirror: 'Mirror',\n 'mirror-shield': 'Mirror Shield',\n mitts: 'Titan \\'s Mitts',\n moonpearl: 'Moonpearl',\n mushroom: 'Mushroom',\n 'not-flippers': 'Keine Flippers',\n 'not-mirror': 'Kein Mirror',\n 'not-moonpearl': 'Keine Moonpearl',\n powder: 'Powder',\n quake: 'Quake',\n 'red-bomb': 'Red Bomb',\n 'red-boomerang': 'Red Boomerang',\n 'red-mail': 'Red Mail',\n 'red-pendant': 'Pendant of Wisdom',\n 'red-potion': 'Red Potion',\n shovel: 'Shovel',\n silvers: 'Silvers',\n 'small-key': 'Small Key',\n somaria: 'Cane of Somaria'\n }\n },\n map: {\n description: 'Karten von The Legend of Zelda: A Link to the Past',\n dwLong: 'Dark World',\n dwShort: 'DW',\n goToLocation: 'Zur Stelle springen',\n heading: 'Karte',\n lwLong: 'Light World',\n lwShort: 'LW',\n onThisMap: 'Auf dieser Karte',\n spLong: 'Spezielle Gebiete',\n spShort: 'SP',\n uw2Long: 'Underworld 2',\n uw2Short: 'UW2',\n uwLong: 'Underworld',\n uwOverlay: 'Gitter zigen',\n uwShort: 'UW'\n },\n menu: {\n map: 'Karte',\n schedule: 'Terminplan',\n tech: 'Techniken'\n },\n modes: {\n heading: 'Modi'\n },\n participants: {\n empty: 'Noch keine Teilnehmer eingetragen',\n heading: 'Teilnehmer',\n participant: 'Teilnehmer',\n placement: 'Platzierung',\n placementShort: '#',\n placementSubjectToChange: 'Das Turnier wurde noch nicht abgeschlossen, die Platzierung kann sich noch ändern.',\n roleNames: {\n admin: 'Administrator',\n monitor: 'Monitor',\n runner: 'Runner'\n },\n roles: 'Teilnahme als',\n tournament: 'Turnier',\n score: 'Punktzahl',\n scoreShort: 'Punkte'\n },\n privacy: {\n heading: 'Datenschutz',\n p1: 'Wir benutzen Cookies und den Browserspeicher, um deine Anmeldung und die ausgewählte Sprache zu speichern, sowie XSRF zu verhinden.',\n p2: 'Wenn du auf den Login Button klickst, wirst du auf eine Anmeldeseite von Discord weitergeleitet. Sofern du dich anmeldest, überträgt Discord und deinen Benutzernamen, Discriminator und ID.',\n p3: 'Deine Eingaben bei Turnieren werden als Teil des Ergebnisses auf dieser Seite veröffenlicht und ggf. auf dem Discord-Server der entsprechenden Community geteilt.'\n },\n protocol: {\n description: {\n application: {\n accepted: 'Anmeldung von {{username}} bestätigt',\n received: 'Anmeldung von {{username}} erhalten',\n rejected: 'Anmeldung von {{username}} abgelehnt'\n },\n result: {\n comment: 'Ergebnis von Runde {{number}} kommentiert: <1>{{comment}}',\n report: 'Ergebnis von <1>{{time}} bei Runde {{number}} eingetragen'\n },\n round: {\n create: 'Runde #{{number}} hinzugefügt',\n edit: 'Runde #{{number}} bearbeitet',\n lock: 'Runde #{{number}} gesperrt',\n seed: 'Seed für Runde #{{number}} eingetragen',\n unlock: 'Runde #{{number}} entsperrt'\n },\n tournament: {\n close: 'Anmeldung geschlossen',\n discord: 'Discord Server verknüpft',\n lock: 'Turnier gesperrt',\n open: 'Anmeldung geöffnet',\n unlock: 'Turnier entsperrt'\n },\n unknown: 'Unbekannter Protokolleintrag vom Typ {{type}}.'\n },\n empty: 'Leider nix',\n heading: 'Protokoll'\n },\n results: {\n addComment: 'Kommentieren',\n comment: 'Kommentar',\n details: 'Details',\n edit: 'Ergebnis ändern',\n editComment: 'Kommentar ändern',\n forfeit: 'Aufgegeben',\n pending: 'Ausstehend',\n placement: 'Platzierung',\n points_one: '{{ count }} Punkt',\n points_other: '{{ count }} Punkte',\n report: 'Ergebnis eintragen',\n reportError: 'Fehler beim Eintragen :(',\n reportPreview: 'Wird als {{ time }} festgehalten',\n reportSuccess: 'Festgehalten',\n reportTime: 'Zeit',\n result: 'Ergebnis',\n round: 'Runde',\n runner: 'Runner',\n time: 'Zeit: {{ time }}',\n vod: 'VoD',\n vodNote: 'Falls ihr euer VoD teilen wollte, gerne hier rein.'\n },\n rounds: {\n code: 'Code',\n date: '{{ date, L }}',\n edit: 'Runde bearbeiten',\n editError: 'Fehler beim Speichern',\n editSuccess: 'Gespeichert',\n empty: 'Noch keine Runde gestartet',\n heading: 'Runden',\n \"new\": 'Neue Runde',\n noSeed: 'Noch kein Seed',\n numberOfResults_one: '{{ count }} Ergebnis',\n numberOfResults_other: '{{ count }} Ergebnisse',\n lock: 'Runde sperren',\n lockDescription: 'Wenn die Runde gesperrt wird, können Runner keine Änderungen an ihrem Ergebnis mehr vornehmen.',\n locked: 'Die Runde ist für weitere Änderungen am Ergebnis gesperrt.',\n lockError: 'Fehler beim Sperren',\n lockIncompleteWarning: 'Achtung: Noch nicht alle Runner haben ihr Ergebnis für diese Runde eingereicht!',\n lockSuccess: 'Runde gesperrt',\n rolled_by: 'Gerollt von',\n rolledBy: 'Gerollt von {{name}}',\n seed: 'Seed',\n setSeed: 'Seed eintragen',\n setSeedError: 'Seed konnte nicht eintragen werden',\n setSeedSuccess: 'Seed eingetragen',\n spoiler: 'Spoiler',\n title: 'Titel',\n unlock: 'Runde entsperren',\n unlockDescription: 'Die Runde wird wieder freigegeben und Runner können wieder Änderungen an ihrem Ergebnis vornehmen.',\n unlocked: 'Die Runde ist offen für Änderungen am Ergebnis.',\n unlockError: 'Fehler beim Entsperren',\n unlockSuccess: 'Runde entsperrt'\n },\n rulesets: {\n heading: 'Regelsätze'\n },\n schedule: {\n description: 'Anstehende Spiele und andere Termine.',\n heading: 'Terminplan',\n startTime: '{{ date, LT }}'\n },\n search: {\n noResults: 'Keine Treffer'\n },\n techniques: {\n description: 'Tutorials für The Legend of Zelda: A Link to the Past Randomizer',\n heading: 'Techniken',\n lastModified: 'Zuletzt geändert: {{ date, L }}',\n requirements: 'Erfordert: ',\n rulesetCodes: {\n competitive: 'COM',\n mg: 'MG',\n nl: 'NL',\n owg: 'OWG'\n },\n rulesetDescriptions: {\n competitive: 'Competitive',\n mg: 'Major Glitches',\n nl: 'No Logic',\n owg: 'Overworld Glitches'\n },\n rulesetFilterHeading: 'Zeige nur Techniken, die in folgenden Regelsätzen erlaubt sind:',\n seeAlso: 'Siehe auch'\n },\n tournaments: {\n admins: 'Organisation',\n applicationDenied: 'Antrag wurde abgelehnt',\n applicationPending: 'Antrag wurde abgeschickt',\n applications: 'Anmeldungen',\n apply: 'Beitreten',\n applyError: 'Fehler beim Abschicken der Anfrage',\n applySuccess: 'Anfrage gestellt',\n closeError: 'Fehler beim Schließen der Anmledung',\n closeSuccess: 'Anmeldung geschlossen',\n discord: 'Discord',\n discordError: 'Fehler beim Zuordnen',\n discordNoCategory: 'Keine Kategorie',\n discordRoundCategory: 'Kategorie für Runden-Kanäle',\n discordRoundTemplate: 'Template für Runden-Kanäle',\n discordSettings: 'Discord Einstellungen',\n discordSettingsError: 'Fehler beim Speichern der Discord Einstellungen',\n discordSettingsSuccess: 'Discord Einstellungen gespeichert',\n discordSuccess: 'Discord verknüpft',\n inviteBot: 'Bot einladen',\n locked: 'Turnier sperren',\n lockError: 'Fehler beim Sperren',\n lockSuccess: 'Turnier gesperrt',\n monitors: 'Monitore',\n noApplications: 'Derzeit keine Anmeldungen',\n noRecord: 'Turnier wird nicht gewertet',\n open: 'Anmeldung geöffnet',\n openError: 'Fehler beim Öffnen der Anmledung',\n openSuccess: 'Anmeldung geöffnet',\n scoreboard: 'Scoreboard',\n scoreChart: 'Turnierverlauf',\n settings: 'Einstellungen',\n unlockError: 'Fehler beim Entsperren',\n unlockSuccess: 'Turnier entsperrt'\n },\n users: {\n discordTag: 'Discord Tag',\n editNickname: 'Name bearbeiten',\n editStreamLink: 'Stream Link bearbeiten',\n nickname: 'Name',\n noStream: 'Kein Stream gesetzt',\n participationEmpty: 'Hat noch an keinen Turnieren teilgenommen.',\n roundRecords: 'Renn-Platzierungen',\n setNicknameError: 'Konnte Namen nicht speichern',\n setNicknameSuccess: 'Name geändert',\n setStreamLinkError: 'Konnte Stream Link nicht speichern',\n setStreamLinkSuccess: 'Stream Link gespeichert',\n stream: 'Stream',\n streamLink: 'Stream Link',\n tournaments: 'Turniere',\n tournamentRecords: 'Turnier-Platzierungen'\n },\n validation: {\n error: {\n required: 'Bitte ausfüllen',\n time: 'Bitte Zeit im 1:23:45 Format eingeben (oder 56:23 wenn du schnell warst ^^).',\n url: 'Bitte eine URL eingeben'\n }\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaTE4bi9kZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7O0FBQUE7QUFDQSxpRUFBZTtBQUNkQSxFQUFBQSxXQUFXLEVBQUU7QUFDWkMsSUFBQUEsS0FBSyxFQUFFO0FBQ05DLE1BQUFBLGNBQWMsRUFBRSxzRUFEVjtBQUVOQyxNQUFBQSxjQUFjLEVBQUUsb0JBRlY7QUFHTkMsTUFBQUEsVUFBVSxFQUFF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l2ZSIsIm1nIiwibmwiLCJvd2ciLCJydWxlc2V0RGVzY3JpcHRpb25zIiwicnVsZXNldEZpbHRlckhlYWRpbmciLCJzZWVBbHNvIiwidG91cm5hbWVudHMiLCJhZG1pbnMiLCJhcHBsaWNhdGlvbkRlbmllZCIsImFwcGxpY2F0aW9uUGVuZGluZyIsImFwcGx5IiwiY2xvc2VFcnJvciIsImNsb3NlU3VjY2VzcyIsImRpc2NvcmRFcnJvciIsImRpc2NvcmROb0NhdGVnb3J5IiwiZGlzY29yZFJvdW5kQ2F0ZWdvcnkiLCJkaXNjb3JkUm91bmRUZW1wbGF0ZSIsImRpc2NvcmRTZXR0aW5ncyIsImRpc2NvcmRTZXR0aW5nc0Vycm9yIiwiZGlzY29yZFNldHRpbmdzU3VjY2VzcyIsImRpc2NvcmRTdWNjZXNzIiwiaW52aXRlQm90IiwibW9uaXRvcnMiLCJub0FwcGxpY2F0aW9ucyIsIm5vUmVjb3JkIiwib3BlbkVycm9yIiwib3BlblN1Y2Nlc3MiLCJzY29yZWJvYXJkIiwic2NvcmVDaGFydCIsInVzZXJzIiwiZGlzY29yZFRhZyIsImVkaXROaWNrbmFtZSIsImVkaXRTdHJlYW1MaW5rIiwibmlja25hbWUiLCJub1N0cmVhbSIsInBhcnRpY2lwYXRpb25FbXB0eSIsInJvdW5kUmVjb3JkcyIsInNldE5pY2tuYW1lRXJyb3IiLCJzZXROaWNrbmFtZVN1Y2Nlc3MiLCJzZXRTdHJlYW1MaW5rRXJyb3IiLCJzZXRTdHJlYW1MaW5rU3VjY2VzcyIsInN0cmVhbSIsInN0cmVhbUxpbmsiLCJ0b3VybmFtZW50UmVjb3JkcyIsInZhbGlkYXRpb24iLCJyZXF1aXJlZCIsInVybCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/i18n/de.js\n"); - -/***/ }), - -/***/ "./resources/js/i18n/en.js": -/*!*********************************!*\ - !*** ./resources/js/i18n/en.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/* eslint-disable max-len */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n translation: {\n alttp: {\n baseRomInvalid: 'CRC32 mismatch (need 33:22:EF:FC). Wrong ROM file?',\n baseRomRemoved: 'Base ROM removed.',\n baseRomSet: 'Base ROM set.',\n setBaseRom: 'Set base ROM'\n },\n alttpSeeds: {\n date: '{{ date, L LT }}',\n fetchingPatch: 'Fetching patch',\n filename: 'alttpr - {{preset}} - {{hash}}',\n heading: 'A Link to the Past Randomizer Seed',\n generated: 'Generated',\n generator: 'Generator',\n generators: {\n doors: 'This seed has been generated with Aerinon\\'s door randomizer.'\n },\n mystery: 'Mystery ROM, settings hidden',\n noMystery: 'No mystery',\n noRace: 'No race',\n patch: 'Patch ROM',\n patchError: 'Error applying patch: {{msg}}',\n preset: 'Preset',\n presets: {\n custom: 'Custom'\n },\n race: 'Race ROM, seed hidden',\n seed: 'Seed',\n settingName: {\n shuffleenemies: 'Enemy shuffle'\n },\n settings: 'Settings',\n settingValue: {\n shuffleenemies: {\n shuffled: 'Shuffled'\n }\n },\n status: 'Status',\n statuses: {\n error: 'error',\n generated: 'generated',\n pending: 'pending'\n }\n },\n applications: {\n accept: 'Accept',\n acceptError: 'Error accepting',\n acceptSuccess: 'Accepted',\n reject: 'Reject',\n rejectSuccess: 'Rejected',\n rejectError: 'Error rejecting'\n },\n button: {\n add: 'Add',\n back: 'Back',\n cancel: 'Cancel',\n chart: 'Chart',\n close: 'Close',\n confirm: 'Confirm',\n edit: 'Edit',\n filter: 'Filter',\n generate: 'Generate',\n help: 'Help',\n invert: 'Invert',\n login: 'Login',\n logout: 'Logout',\n \"new\": 'New',\n nextFrame: 'Next frame',\n pause: 'Pause',\n play: 'Play',\n playPause: 'Play/Pause',\n protocol: 'Protocol',\n remove: 'Remove',\n retry: 'Retry',\n save: 'Save',\n search: 'Search',\n settings: 'Settings',\n signUp: 'Sign up',\n stop: 'Stop',\n unconfirm: 'Retract',\n unset: 'Unset'\n },\n content: {\n attribution: 'Attribution',\n description: 'Description',\n edit: 'Edit content',\n saveError: 'Error saving',\n saveSuccess: 'Saved',\n \"short\": 'Short description',\n title: 'Title'\n },\n crew: {\n roles: {\n commentary: 'Commentary',\n setup: 'Setup',\n tracking: 'Tracking'\n }\n },\n discordBot: {\n channel: 'Channel',\n controls: 'Controls',\n guild: 'Server',\n heading: 'Discord Bot',\n invite: 'Invite bot',\n selectGuild: 'Please select server'\n },\n episodes: {\n addRestream: 'Add Restream',\n applyDialog: {\n applyError: 'Error signing up',\n applySuccess: 'Application received',\n signUpAs: 'Sign up as',\n title: 'Application'\n },\n channel: 'Channel',\n commentary: 'Commentary',\n empty: 'No dates coming up.',\n raceroom: 'Race room',\n restreamDialog: {\n acceptComms: 'Open commentary application',\n acceptTracker: 'Open tracker application',\n addError: 'Error adding restream',\n addSuccess: 'Added',\n addUser: 'Add user',\n crewError: 'Error updating',\n crewSuccess: 'Updated',\n editError: 'Error saving',\n editSuccess: 'Saved',\n removeError: 'Error removing restream',\n removeSuccess: 'Removed',\n title: 'Restream'\n },\n setup: 'Setup',\n sgSignUp: 'SG Signup',\n startTime: '{{ date, LL LT }}',\n tracking: 'Tracking'\n },\n error: {\n 403: {\n description: 'Um no',\n heading: 'Access denied'\n },\n 404: {\n description: 'Pretty sure I had that somehere',\n heading: 'Not found'\n },\n 500: {\n description: 'NotLikeThis',\n heading: 'Server error'\n }\n },\n events: {\n upcomingEpisodes: 'Upcoming races'\n },\n footer: {\n alttpde: 'German ALttP Discord',\n alttpwiki: 'ALttP Speedrunning Wiki',\n competitions: 'Competitions',\n connect: 'Connect Spedruns Discord',\n contact: 'If you would like to organize a Tournament on this site, please contact holysmoke86 on Discord.',\n info: 'Infos',\n map: 'ALttP Map',\n muffins: 'Muffins\\' Glitch Map',\n privacy: 'Privacy',\n resources: 'Resources',\n schedule: 'Schedule',\n smd: 'German Super Metroid Discord',\n smwiki: 'Super Metroid Speedrunning Wiki',\n tech: 'ALttP Tech'\n },\n general: {\n anonymous: 'Anonym',\n appDescription: 'Tournaments and tutorials for The Legend of Zelda: A Link to the Past Randomizer',\n appName: 'ALttP',\n pleaseSelect: 'Please select'\n },\n icon: {\n AddIcon: 'Add',\n AllowedIcon: 'Allowed',\n ApplicationsIcon: 'Applications',\n ApplyIcon: 'Apply',\n ChartIcon: 'Chart',\n DiscordIcon: 'Discord',\n EditIcon: 'Edit',\n FinishedIcon: 'Finished',\n FirstPlaceIcon: 'First Place',\n ForbiddenIcon: 'Forbidden',\n ForfeitIcon: 'Forfeit',\n LanguageIcon: 'Language',\n LockedIcon: 'Locked',\n LogoutIcon: 'Logout',\n PendingIcon: 'Pending',\n ProtocolIcon: 'Protocol',\n ResultIcon: 'Result',\n SecondPlaceIcon: 'Second Place',\n SettingsIcon: 'Settings',\n StreamIcon: 'Stream',\n ThirdPlaceIcon: 'Third Place',\n TwitchIcon: 'Twitch',\n UnknownIcon: 'Unknown',\n UnlockedIcon: 'Unlocked',\n YoutubeIcon: 'YouTube',\n VideoIcon: 'Video',\n zelda: {\n 'big-key': 'Big Key',\n 'blue-boomerang': 'Boomerang',\n 'blue-mail': 'Blue Mail',\n 'blue-pendant': 'Pendant of Power',\n 'blue-potion': 'Blue Potion',\n bombos: 'Bombos',\n bomb: 'Bomb',\n book: 'Book',\n boots: 'Boots',\n 'bottle-bee': 'Bee in a Bottle',\n bottle: 'Bottle',\n bow: 'Bow',\n bugnet: 'Bugnet',\n byrna: 'Cane of Byrna',\n cape: 'Cape',\n compass: 'Compass',\n crystal: 'Crystal',\n duck: 'Duck',\n 'dungeon-ct': 'Castle Tower',\n 'dungeon-dp': 'Desert Palace',\n 'dungeon-ep': 'Eastern Palace',\n 'dungeon-gt': 'Ganon\\'s Tower',\n 'dungeon-hc': 'Hyrule Castle',\n 'dungeon-ip': 'Ice Palace',\n 'dungeon-mm': 'Misery Mire',\n 'dungeon-pd': 'Palace of Darkness',\n 'dungeon-sp': 'Swamp Palace',\n 'dungeon-sw': 'Skull Woods',\n 'dungeon-th': 'Tower of Hera',\n 'dungeon-tr': 'Turtle Rock',\n 'dungeon-tt': 'Thieves\\' Town',\n ether: 'Ether',\n fairy: 'Fairy in a Bottle',\n 'fighter-shield': 'Fighter Shield',\n 'fighter-sword': 'Fighter Sword',\n 'fire-rod': 'Fire Rod',\n 'fire-shield': 'Fire Shield',\n flippers: 'Flippers',\n flute: 'Flute',\n glove: 'Power Glove',\n 'green-mail': 'Green Mail',\n 'green-pendant': 'Pendant of Courage',\n 'green-potion': 'Green Potion',\n hammer: 'Hammer',\n 'heart-container': 'Heart Container',\n 'heart-piece': 'Heart Piece',\n hookshot: 'Hookshot',\n 'ice-rod': 'Ice Rod',\n lamp: 'Lamp',\n map: 'Map',\n mirror: 'Mirror',\n 'mirror-shield': 'Mirror Shield',\n mitts: 'Titan \\'s Mitts',\n moonpearl: 'Moonpearl',\n mushroom: 'Mushroom',\n 'not-flippers': 'No Flippers',\n 'not-mirror': 'No Mirror',\n 'not-moonpearl': 'No Moonpearl',\n powder: 'Powder',\n quake: 'Quake',\n 'red-bomb': 'Red Bomb',\n 'red-boomerang': 'Red Boomerang',\n 'red-mail': 'Red Mail',\n 'red-pendant': 'Pendant of Wisdom',\n 'red-potion': 'Red Potion',\n shovel: 'Shovel',\n silvers: 'Silvers',\n 'small-key': 'Small Key',\n somaria: 'Cane of Somaria'\n }\n },\n map: {\n description: 'Maps of The Legend of Zelda: A Link to the Past',\n dwLong: 'Dark World',\n dwShort: 'DW',\n goToLocation: 'Go to location',\n heading: 'Map',\n lwLong: 'Light World',\n lwShort: 'LW',\n onThisMap: 'On this map',\n spLong: 'Special Areas',\n spShort: 'SP',\n uw2Long: 'Underworld 2',\n uw2Short: 'UW2',\n uwLong: 'Underworld',\n uwOverlay: 'Show grid',\n uwShort: 'UW'\n },\n menu: {\n map: 'Map',\n schedule: 'Schedule',\n tech: 'Tech'\n },\n modes: {\n heading: 'Modes'\n },\n participants: {\n empty: 'No participants on record',\n heading: 'Participants',\n participant: 'Participant',\n placement: 'Placement',\n placementShort: '#',\n placementSubjectToChange: 'Tournament incomplete, placement subject to change.',\n roleNames: {\n admin: 'Administrator',\n monitor: 'Monitor',\n runner: 'Runner'\n },\n roles: 'Participated as',\n tournament: 'Tournament',\n score: 'Score',\n scoreShort: 'Score'\n },\n privacy: {\n heading: 'Privacy',\n p1: 'We\\'re utilizing cokes and your browser\\'s storage to remember your login and preferred language as well as protect against XSRF.',\n p2: 'If you click on Login, you wil be redirected to a discord portal. Once signed in, Discord will provide us with your username, discriminator and ID.',\n p3: 'Any results you submit will be published on this site and may be shared with the Discord server of the respective community.'\n },\n protocol: {\n description: {\n application: {\n accepted: 'Application from {{username}} accepted',\n received: 'Application from {{username}} received',\n rejected: 'Application from {{username}} rejected'\n },\n result: {\n comment: 'Result of round {{number}} commented: <1>{{comment}}',\n report: 'Result of <1>{{time}} reported for round {{number}}'\n },\n round: {\n create: 'Added round #{{number}}',\n edit: 'Edited round #{{number}}',\n lock: 'Round #{{number}} locked',\n seed: 'Set seed for round #{{number}}',\n unlock: 'Round #{{number}} unlocked'\n },\n tournament: {\n close: 'Registration closed',\n discord: 'Discord server connected',\n lock: 'Tournament locked',\n open: 'Registration opened',\n unlock: 'Tournament unlocked'\n },\n unknown: 'Unknown protocol entry of type {{type}}.'\n },\n empty: 'Empty',\n heading: 'Protocol'\n },\n results: {\n addComment: 'Comment',\n comment: 'Comment',\n details: 'Details',\n edit: 'Change result',\n editComment: 'Edit comment',\n forfeit: 'Forfeit',\n pending: 'Pending',\n placement: 'Placement',\n points_one: '{{ count }} point',\n points_other: '{{ count }} points',\n report: 'Report result',\n reportError: 'Error saving :(',\n reportPreview: 'Will be recorded as {{ time }}',\n reportSuccess: 'Stored, thanks :)',\n reportTime: 'Time',\n result: 'Result',\n round: 'Round',\n runner: 'Runner',\n time: 'Time: {{ time }}',\n vod: 'VoD',\n vodNote: 'If you want to share your VoD, go ahead.'\n },\n rounds: {\n code: 'Code',\n date: '{{ date, L }}',\n edit: 'Edit round',\n editError: 'Error saving round',\n editSuccess: 'Saved successfully',\n empty: 'No rounds yet',\n heading: 'Rounds',\n \"new\": 'New round',\n noSeed: 'No seed set',\n numberOfResults_one: '{{ count }} submission',\n numberOfResults_other: '{{ count }} submissions',\n lock: 'Lock round',\n lockDescription: 'When a round is locked, runners cannot submit or change results.',\n locked: 'Results for this round have been locked.',\n lockError: 'Error locking round',\n lockIncompleteWarning: 'Warning: Not all runners have submitted their results for this round yet!',\n lockSuccess: 'Round locked',\n rolled_by: 'Rolled by',\n rolledBy: 'Rolled by {{name}}',\n seed: 'Seed',\n setSeed: 'Set seed',\n setSeedError: 'Seed could not be set',\n setSeedSuccess: 'Seed set',\n spoiler: 'Spoiler',\n title: 'Title',\n unlock: 'Unock round',\n unlockDescription: 'The round is unlocked and runers are free to submit or change their results again.',\n unlocked: 'Results for this round are subject to change.',\n unlockError: 'Error unlocking round',\n unlockSuccess: 'Round unlocked'\n },\n rulesets: {\n heading: 'Rulesets'\n },\n schedule: {\n description: 'Upcoming matches and other events.',\n heading: 'Schedule',\n startTime: '{{ date, LT }}'\n },\n search: {\n noResults: 'No results'\n },\n techniques: {\n description: 'Tutorials for The Legend of Zelda: A Link to the Past Randomizer',\n heading: 'Techniques',\n lastModified: 'Last modified: {{ date, L }}',\n requirements: 'Requires: ',\n rulesetCodes: {\n competitive: 'COM',\n mg: 'MG',\n nl: 'NL',\n owg: 'OWG'\n },\n rulesetDescriptions: {\n competitive: 'Competitive',\n mg: 'Major Glitches',\n nl: 'No Logic',\n owg: 'Overworld Glitches'\n },\n rulesetFilterHeading: 'Only show techniques allowed in the following rulesets:',\n seeAlso: 'See also'\n },\n tournaments: {\n admins: 'Admins',\n applicationDenied: 'Application denied',\n applicationPending: 'Application pending',\n applications: 'Applications',\n apply: 'Apply',\n applyError: 'Error submitting application',\n applySuccess: 'Application sent',\n closeError: 'Error closing registration',\n closeSuccess: 'Registration closed',\n discord: 'Discord',\n discordError: 'Error connecting',\n discordNoCategory: 'No category',\n discordRoundCategory: 'Category for round channels',\n discordRoundTemplate: 'Template for round channels',\n discordSettings: 'Discord settings',\n discordSettingsError: 'Error saving discord settings',\n discordSettingsSuccess: 'Discord settings saved',\n discordSuccess: 'Discord associated',\n inviteBot: 'Invite bot',\n locked: 'Lock rounds',\n lockError: 'Error locking tournament',\n lockSuccess: 'Tournament locked',\n monitors: 'Monitors',\n noApplications: 'No applications at this point',\n noRecord: 'Tournament set to not be recorded',\n open: 'Open registration',\n openError: 'Error opening registration',\n openSuccess: 'Registration opened',\n scoreboard: 'Scoreboard',\n scoreChart: 'Score chart',\n settings: 'Settings',\n unlockError: 'Error unlocking tournaments',\n unlockSuccess: 'Tournament unlocked'\n },\n users: {\n discordTag: 'Discord tag',\n editNickname: 'Edit name',\n editStreamLink: 'Edit stream link',\n nickname: 'Name',\n noStream: 'No stream set',\n participationEmpty: 'Has not participated in any tourneys yet.',\n roundRecords: 'Race records',\n setNicknameError: 'Could not save name',\n setNicknameSuccess: 'Name changed',\n setStreamLinkError: 'Could not save stream link',\n setStreamLinkSuccess: 'Stream link saved',\n stream: 'Stream',\n streamLink: 'Stream link',\n tournaments: 'Tournaments',\n tournamentRecords: 'Tournament records'\n },\n validation: {\n error: {\n required: 'Please tell me',\n time: 'Please enter as 1:23:45 (or 56:23 if you\\'re fast ^^).',\n url: 'URL plz'\n }\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaTE4bi9lbi5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7O0FBQUE7QUFDQSxpRUFBZTtBQUNkQSxFQUFBQSxXQUFXLEVBQUU7QUFD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sInNlZUFsc28iLCJ0b3VybmFtZW50cyIsImFkbWlucyIsImFwcGxpY2F0aW9uRGVuaWVkIiwiYXBwbGljYXRpb25QZW5kaW5nIiwiYXBwbHkiLCJjbG9zZUVycm9yIiwiY2xvc2VTdWNjZXNzIiwiZGlzY29yZEVycm9yIiwiZGlzY29yZE5vQ2F0ZWdvcnkiLCJkaXNjb3JkUm91bmRDYXRlZ29yeSIsImRpc2NvcmRSb3VuZFRlbXBsYXRlIiwiZGlzY29yZFNldHRpbmdzIiwiZGlzY29yZFNldHRpbmdzRXJyb3IiLCJkaXNjb3JkU2V0dGluZ3NTdWNjZXNzIiwiZGlzY29yZFN1Y2Nlc3MiLCJpbnZpdGVCb3QiLCJtb25pdG9ycyIsIm5vQXBwbGljYXRpb25zIiwibm9SZWNvcmQiLCJvcGVuRXJyb3IiLCJvcGVuU3VjY2VzcyIsInNjb3JlYm9hcmQiLCJzY29yZUNoYXJ0IiwidXNlcnMiLCJkaXNjb3JkVGFnIiwiZWRpdE5pY2tuYW1lIiwiZWRpdFN0cmVhbUxpbmsiLCJuaWNrbmFtZSIsIm5vU3RyZWFtIiwicGFydGljaXBhdGlvbkVtcHR5Iiwicm91bmRSZWNvcmRzIiwic2V0Tmlja25hbWVFcnJvciIsInNldE5pY2tuYW1lU3VjY2VzcyIsInNldFN0cmVhbUxpbmtFcnJvciIsInNldFN0cmVhbUxpbmtTdWNjZXNzIiwic3RyZWFtIiwic3RyZWFtTGluayIsInRvdXJuYW1lbnRSZWNvcmRzIiwidmFsaWRhdGlvbiIsInJlcXVpcmVkIiwidXJsIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/i18n/en.js\n"); - -/***/ }), - -/***/ "./resources/js/i18n/index.js": -/*!************************************!*\ - !*** ./resources/js/i18n/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 i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ \"./node_modules/i18next/dist/esm/i18next.js\");\n/* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ \"./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var numeral__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! numeral */ \"./node_modules/numeral/numeral.js\");\n/* harmony import */ var numeral__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(numeral__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/context.js\");\n/* harmony import */ var _de__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./de */ \"./resources/js/i18n/de.js\");\n/* harmony import */ var _en__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./en */ \"./resources/js/i18n/en.js\");\n/* harmony import */ var numeral_locales_de__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! numeral/locales/de */ \"./node_modules/numeral/locales/de.js\");\n/* harmony import */ var numeral_locales_de__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_de__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var moment_locale_de__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment/locale/de */ \"./node_modules/moment/locale/de.js\");\n/* harmony import */ var moment_locale_de__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment_locale_de__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\n\nvar supportedLocales = ['de', 'en'];\n\nvar resolveLocale = function resolveLocale(loc) {\n if (supportedLocales.includes(loc)) return loc;\n var sub = loc.substr(0, 2);\n if (supportedLocales.includes(sub)) return sub;\n return 'de';\n};\n\ni18next__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__[\"default\"]).use(react_i18next__WEBPACK_IMPORTED_MODULE_8__.initReactI18next).on('languageChanged', function (lng) {\n var loc = resolveLocale(lng);\n moment__WEBPACK_IMPORTED_MODULE_2___default().locale(loc);\n numeral__WEBPACK_IMPORTED_MODULE_3___default().locale(loc);\n}).init({\n fallbackLng: 'de',\n interpolation: {\n escapeValue: false,\n format: function format(value, _format) {\n if (value instanceof Date) return moment__WEBPACK_IMPORTED_MODULE_2___default()(value).format(_format);\n return value;\n }\n },\n resources: {\n de: _de__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n en: _en__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n },\n supportedLngs: supportedLocales\n});\n\ni18next__WEBPACK_IMPORTED_MODULE_0__[\"default\"].number = function (value, options) {\n var num = numeral__WEBPACK_IMPORTED_MODULE_3___default()(value);\n\n if (Number.isNaN(num.value())) {\n return \"\".concat(value);\n }\n\n var format = options && Object.prototype.hasOwnProperty.call(options, 'decimals') ? \"0,0.\".concat('0'.repeat(options.decimals)) : '0,0.[000000]';\n return num.format(format);\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (i18next__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXN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IiwiZm9ybWF0IiwidmFsdWUiLCJEYXRlIiwicmVzb3VyY2VzIiwic3VwcG9ydGVkTG5ncyIsIm51bWJlciIsIm9wdGlvbnMiLCJudW0iLCJOdW1iZXIiLCJpc05hTiIsIk9iamVjdCIsInByb3RvdHlwZSIsImhhc093blByb3BlcnR5IiwiY2FsbCIsInJlcGVhdCIsImRlY2ltYWxzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/i18n/index.js\n"); - -/***/ }), - -/***/ "./resources/js/index.js": -/*!*******************************!*\ - !*** ./resources/js/index.js ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ \"./resources/js/bootstrap.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ \"./node_modules/react-dom/index.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app */ \"./resources/js/app/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/**\n * First we will load all of this project's JavaScript dependencies which\n * includes React and other helpers. It's a great starting point while\n * building robust, powerful web applications using React + Laravel.\n */\n\n\n\n\n(toastr__WEBPACK_IMPORTED_MODULE_3___default().options.positionClass) = 'toast-bottom-right';\n/**\n * Next, we will create a fresh React component instance and attach it to\n * the page. Then, you may begin adding components to this application\n * or customize the JavaScript scaffolding to fit your unique needs.\n */\n\n\n\n\nif (document.getElementById('react-root')) {\n react_dom__WEBPACK_IMPORTED_MODULE_2__.render( /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_app__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {}), document.getElementById('react-root'));\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvaW5kZXguanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBRUE7QUFDQUUscUVBQUEsR0FBK0Isb0JBQS9CO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7O0FBRUEsSUFBSUksUUFBUSxDQUFDQyxjQUFULENBQXdCLFlBQXhCLENBQUosRUFBMkM7QUFDMUNOLEVBQUFBLDZDQUFBLGVBQWdCLHVEQUFDLDRDQUFELEtBQWhCLEVBQXlCSyxRQUFRLENBQUNDLGNBQVQsQ0FBd0IsWUFBeEIsQ0FBekI7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9pbmRleC5qcz9iZjdlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRmlyc3Qgd2Ugd2lsbCBsb2FkIGFsbCBvZiB0aGlzIHByb2plY3QncyBKYXZhU2NyaXB0IGRlcGVuZGVuY2llcyB3aGljaFxuICogaW5jbHVkZXMgUmVhY3QgYW5kIG90aGVyIGhlbHBlcnMuIEl0J3MgYSBncmVhdCBzdGFydGluZyBwb2ludCB3aGlsZVxuICogYnVpbGRpbmcgcm9idXN0LCBwb3dlcmZ1bCB3ZWIgYXBwbGljYXRpb25zIHVzaW5nIFJlYWN0ICsgTGFyYXZlbC5cbiAqL1xuXG5pbXBvcnQgJy4vYm9vdHN0cmFwJztcblxuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBSZWFjdERPTSBmcm9tICdyZWFjdC1kb20nO1xuXG5pbXBvcnQgdG9hc3RyIGZyb20gJ3RvYXN0cic7XG50b2FzdHIub3B0aW9ucy5wb3NpdGlvbkNsYXNzID0gJ3RvYXN0LWJvdHRvbS1yaWdodCc7XG5cbi8qKlxuICogTmV4dCwgd2Ugd2lsbCBjcmVhdGUgYSBmcmVzaCBSZWFjdCBjb21wb25lbnQgaW5zdGFuY2UgYW5kIGF0dGFjaCBpdCB0b1xuICogdGhlIHBhZ2UuIFRoZW4sIHlvdSBtYXkgYmVnaW4gYWRkaW5nIGNvbXBvbmVudHMgdG8gdGhpcyBhcHBsaWNhdGlvblxuICogb3IgY3VzdG9taXplIHRoZSBKYXZhU2NyaXB0IHNjYWZmb2xkaW5nIHRvIGZpdCB5b3VyIHVuaXF1ZSBuZWVkcy5cbiAqL1xuXG5pbXBvcnQgQXBwIGZyb20gJy4vYXBwJztcblxuaWYgKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdyZWFjdC1yb290JykpIHtcblx0UmVhY3RET00ucmVuZGVyKDxBcHAgLz4sIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdyZWFjdC1yb290JykpO1xufVxuIl0sIm5hbWVzIjpbIlJlYWN0IiwiUmVhY3RET00iLCJ0b2FzdHIiLCJvcHRpb25zIiwicG9zaXRpb25DbGFzcyIsIkFwcCIsImRvY3VtZW50IiwiZ2V0RWxlbWVudEJ5SWQiLCJyZW5kZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/index.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/AlttpSeed.js": -/*!*****************************************!*\ - !*** ./resources/js/pages/AlttpSeed.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _NotFound__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_alttp_seeds_Seed__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/alttp-seeds/Seed */ \"./resources/js/components/alttp-seeds/Seed.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar AlttpSeed = function AlttpSeed() {\n var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_10__.useParams)();\n var hash = params.hash;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n error = _useState2[0],\n setError = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(true),\n _useState4 = _slicedToArray(_useState3, 2),\n loading = _useState4[0],\n setLoading = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState6 = _slicedToArray(_useState5, 2),\n patch = _useState6[0],\n setPatch = _useState6[1];\n\n var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState8 = _slicedToArray(_useState7, 2),\n seed = _useState8[0],\n setSeed = _useState8[1];\n\n var loadSeed = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (hash, ctrl) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/alttp-seed/\".concat(hash), {\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setSeed(response.data);\n })[\"catch\"](function (error) {\n setError(error);\n setLoading(false);\n setSeed(null);\n });\n }, []);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n setLoading(true);\n var ctrl = new AbortController();\n loadSeed(hash, ctrl);\n return function () {\n ctrl.abort();\n };\n }, [hash]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n if (!seed || seed.status !== 'pending') {\n return;\n }\n\n var ctrl = new AbortController();\n var timer = setTimeout(function () {\n loadSeed(seed.hash, ctrl);\n }, 2000);\n return function () {\n clearTimeout(timer);\n ctrl.abort();\n };\n }, [seed]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n setPatch(null);\n\n if (!seed || seed.status !== 'generated') {\n return;\n }\n\n var ctrl = new AbortController();\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/alttp-seeds/\".concat(hash, \".bps\"), {\n responseType: 'arraybuffer',\n signal: ctrl.signal\n }).then(function (response) {\n setPatch(response.data);\n })[\"catch\"](function (error) {\n setError(error);\n });\n return function () {\n ctrl.abort();\n };\n }, [hash, seed]);\n var retry = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/alttp-seed/\".concat(hash, \"/retry\"));\n\n case 2:\n setSeed(function (seed) {\n return _objectSpread(_objectSpread({}, seed), {}, {\n status: 'pending'\n });\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n error: error\n });\n }\n\n if (!seed) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_NotFound__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {});\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: seed ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"title\", {\n children: seed.hash\n }) : null\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_alttp_seeds_Seed__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n onRetry: retry,\n patch: patch,\n seed: seed\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AlttpSeed);//# sourceURL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BhdGNofSBzZWVkPXtzZWVkfSAvPlxuXHQ8L0Vycm9yQm91bmRhcnk+O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQWx0dHBTZWVkO1xuIl0sIm5hbWVzIjpbImF4aW9zIiwiUmVhY3QiLCJ1c2VDYWxsYmFjayIsInVzZUVmZmVjdCIsInVzZVN0YXRlIiwiSGVsbWV0IiwidXNlUGFyYW1zIiwiTm90Rm91bmQiLCJTZWVkIiwiRXJyb3JCb3VuZGFyeSIsIkVycm9yTWVzc2FnZSIsIkxvYWRpbmciLCJBbHR0cFNlZWQiLCJwYXJhbXMiLCJoYXNoIiwiZXJyb3IiLCJzZXRFcnJvciIsImxvYWRpbmciLCJzZXRMb2FkaW5nIiwicGF0Y2giLCJzZXRQYXRjaCIsInNlZWQiLCJzZXRTZWVkIiwibG9hZFNlZWQiLCJjdHJsIiwiZ2V0Iiwic2lnbmFsIiwidGhlbiIsInJlc3BvbnNlIiwiZGF0YSIsIkFib3J0Q29udHJvbGxlciIsImFib3J0Iiwic3RhdHVzIiwidGltZXIiLCJzZXRUaW1lb3V0IiwiY2xlYXJUaW1lb3V0IiwicmVzcG9uc2VUeXBlIiwicmV0cnkiLCJwb3N0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/AlttpSeed.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/DiscordBot.js": -/*!******************************************!*\ - !*** ./resources/js/pages/DiscordBot.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _components_discord_bot_Controls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/discord-bot/Controls */ \"./resources/js/components/discord-bot/Controls.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar authEndpoint = 'https://discord.com/oauth2/authorize';\nvar clientId = \"951113702839549982\";\n\nvar DiscordBot = function DiscordBot() {\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h1\", {\n children: t('discordBot.heading')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"p\", {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"span\", {\n className: \"button-bar\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n href: \"\".concat(authEndpoint, \"?client_id=\").concat(clientId, \"&scope=bot%20applications.commands\"),\n target: \"_blank\",\n variant: \"discord\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_1__[\"default\"].DISCORD, {\n title: \"\"\n }), ' ', t('discordBot.invite')]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"h2\", {\n children: t('discordBot.controls')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_discord_bot_Controls__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {})]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DiscordBot);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvRGlzY29yZEJvdC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7OztBQUVBLElBQU1NLFlBQVksR0FBRyxzQ0FBckI7QUFDQSxJQUFNQyxRQUFRLEdBQUdDLG9CQUFqQjs7QUFFQSxJQUFNRyxVQUFVLEdBQUcsU0FBYkEsVUFBYSxHQUFNO0FBQ3hCLHdCQUFjUiw2REFBYyxFQUE1QjtBQUFBLE1BQVFTLENBQVIsbUJBQVFBLENBQVI7O0FBRUEsc0JBQU8sd0RBQUMsdURBQUQ7QUFBQSw0QkFDTjtBQUFBLGdCQUFLQSxDQUFDLENBQUMsb0JBQUQ7QUFBTixNQURNLGVBRU47QUFBQSw2QkFDQztBQUFNLGlCQUFTLEVBQUMsWUFBaEI7QUFBQSwrQkFDQyx3REFBQyx1REFBRDtBQUNDLGNBQUksWUFBS04sWUFBTCx3QkFBK0JDLFFBQS9CLH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CgnZGlzY29yZEJvdC5oZWFkaW5nJyl9PC9oMT5cblx0XHQ8cD5cblx0XHRcdDxzcGFuIGNsYXNzTmFtZT1cImJ1dHRvbi1iYXJcIj5cblx0XHRcdFx0PEJ1dHRvblxuXHRcdFx0XHRcdGhyZWY9e2Ake2F1dGhFbmRwb2ludH0/Y2xpZW50X2lkPSR7Y2xpZW50SWR9JnNjb3BlPWJvdCUyMGFwcGxpY2F0aW9ucy5jb21tYW5kc2B9XG5cdFx0XHRcdFx0dGFyZ2V0PVwiX2JsYW5rXCJcblx0XHRcdFx0XHR2YXJpYW50PVwiZGlzY29yZFwiXG5cdFx0XHRcdD5cblx0XHRcdFx0XHQ8SWNvbi5ESVNDT1JEIHRpdGxlPVwiXCIgLz5cblx0XHRcdFx0XHR7JyAnfVxuXHRcdFx0XHRcdHt0KCdkaXNjb3JkQm90Lmludml0ZScpfVxuXHRcdFx0XHQ8L0J1dHRvbj5cblx0XHRcdDwvc3Bhbj5cblx0XHQ8L3A+XG5cdFx0PGgyPnt0KCdkaXNjb3JkQm90LmNvbnRyb2xzJyl9PC9oMj5cblx0XHQ8Q29udHJvbHMgLz5cblx0PC9Db250YWluZXI+O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRGlzY29yZEJvdDtcbiJdLCJuYW1lcyI6WyJSZWFjdCIsIkJ1dHRvbiIsIkNvbnRhaW5lciIsInVzZVRyYW5zbGF0aW9uIiwiSWNvbiIsIkNvbnRyb2xzIiwiYXV0aEVuZHBvaW50IiwiY2xpZW50SWQiLCJwcm9jZXNzIiwiZW52IiwiTUlYX0RJU0NPUkRfQ0xJRU5UX0lEIiwiRGlzY29yZEJvdCIsInQiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/pages/DiscordBot.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/DoorsTracker.js": -/*!********************************************!*\ - !*** ./resources/js/pages/DoorsTracker.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var _components_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/common/ZeldaIcon */ \"./resources/js/components/common/ZeldaIcon.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\nvar DUNGEONS = ['hc', 'ct', 'ep', 'dp', 'th', 'pd', 'sp', 'sw', 'tt', 'ip', 'mm', 'tr', 'gt'];\nvar ITEMS = ['compass', 'map', 'big-key', 'bow', 'hookshot', 'fire-rod', 'lamp', 'hammer', 'somaria', 'fighter-sword', 'boots', 'glove', 'flippers'];\nvar ITEM_CLASSES = {\n 'compass': 'dungeon-item',\n 'map': 'dungeon-item',\n 'big-key': 'dungeon-item',\n 'bow': 'item',\n 'hookshot': 'item',\n 'fire-rod': 'item',\n 'lamp': 'item',\n 'hammer': 'item',\n 'somaria': 'item',\n 'fighter-sword': 'item',\n 'boots': 'item',\n 'glove': 'item',\n 'flippers': 'item'\n};\n\nvar nextCSwitch = function nextCSwitch(cur) {\n switch (cur) {\n case 'blue':\n return 'red';\n\n case 'red':\n return '';\n\n default:\n return 'blue';\n }\n};\n\nvar prevCSwitch = function prevCSwitch(cur) {\n return nextCSwitch(nextCSwitch(cur));\n};\n\nvar DoorsTracker = function DoorsTracker() {\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(DUNGEONS.reduce(function (state, dungeon) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, ITEMS.reduce(function (items, item) {\n return _objectSpread(_objectSpread({}, items), {}, _defineProperty({}, item, false));\n }, {\n boss: true,\n cswitch: '',\n keys: 1\n })));\n }, {})),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n state = _React$useState2[0],\n setState = _React$useState2[1];\n\n var handleItemClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (dungeon, item) {\n return function (e) {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, _objectSpread(_objectSpread({}, state[dungeon]), {}, _defineProperty({}, item, !state[dungeon][item]))));\n });\n e.preventDefault();\n e.stopPropagation();\n };\n });\n var handleCSwitchClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (dungeon) {\n return function (e) {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, _objectSpread(_objectSpread({}, state[dungeon]), {}, {\n cswitch: nextCSwitch(state[dungeon].cswitch)\n })));\n });\n e.preventDefault();\n e.stopPropagation();\n };\n });\n var handleCSwitchRightClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (dungeon) {\n return function (e) {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, _objectSpread(_objectSpread({}, state[dungeon]), {}, {\n cswitch: prevCSwitch(state[dungeon].cswitch)\n })));\n });\n e.preventDefault();\n e.stopPropagation();\n };\n });\n var handleKeysClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (dungeon) {\n return function (e) {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, _objectSpread(_objectSpread({}, state[dungeon]), {}, {\n keys: state[dungeon].keys + 1\n })));\n });\n e.preventDefault();\n e.stopPropagation();\n };\n });\n var handleKeysRightClick = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (dungeon) {\n return function (e) {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, _defineProperty({}, dungeon, _objectSpread(_objectSpread({}, state[dungeon]), {}, {\n keys: Math.max(state[dungeon].keys - 1, 0)\n })));\n });\n e.preventDefault();\n e.stopPropagation();\n };\n });\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_1__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"title\", {\n children: \"Doors Tracker\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"meta\", {\n name: \"description\",\n content: \"Doors Tracker\"\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"doors-tracker d-flex flex-column\",\n children: DUNGEONS.map(function (dungeon) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(\"div\", {\n className: \"d-flex flex-row\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"cell \".concat(state[dungeon].boss ? 'on' : 'off', \" dungeon\"),\n onClick: handleItemClick(dungeon, 'boss'),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n name: \"dungeon-\".concat(dungeon)\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"cell \".concat(state[dungeon].keys ? 'on' : 'off', \" keys\"),\n onClick: handleKeysClick(dungeon),\n onContextMenu: handleKeysRightClick(dungeon),\n children: state[dungeon].keys\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"cell \".concat(state[dungeon].cswitch ? 'on' : 'off', \" cswitch\"),\n onClick: handleCSwitchClick(dungeon),\n onContextMenu: handleCSwitchRightClick(dungeon),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n name: state[dungeon].cswitch ? \"crystal-switch-\".concat(state[dungeon].cswitch) : 'crystal-switch'\n })\n }), ITEMS.map(function (item) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"cell \".concat(state[dungeon][item] ? 'on' : 'off', \" \").concat(ITEM_CLASSES[item]),\n onClick: handleItemClick(dungeon, item),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_common_ZeldaIcon__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n name: item\n })\n }, item);\n })]\n }, dungeon);\n })\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DoorsTracker);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvRG9vcnNUcmFja2VyLmpzLmpzIiwibWFwcGluZ3MiOiI7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G5cdFx0XHRcdFx0XHQ+XG5cdFx0XHRcdFx0XHRcdDxaZWxkYUljb24gbmFtZT17aXRlbX0gLz5cblx0XHRcdFx0XHRcdDwvZGl2PlxuXHRcdFx0XHRcdCl9XG5cdFx0XHRcdDwvZGl2PlxuXHRcdFx0KX1cblx0XHQ8L2Rpdj5cblx0PC8+O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRG9vcnNUcmFja2VyO1xuIl0sIm5hbWVzIjpbIlJlYWN0IiwiSGVsbWV0IiwiWmVsZGFJY29uIiwiRFVOR0VPTlMiLCJJVEVNUyIsIklURU1fQ0xBU1NFUyIsIm5leHRDU3dpdGNoIiwiY3VyIiwicHJldkNTd2l0Y2giLCJEb29yc1RyYWNrZXIiLCJ1c2VTdGF0ZSIsInJlZHVjZSIsInN0YXRlIiwiZHVuZ2VvbiIsIml0ZW1zIiwiaXRlbSIsImJvc3MiLCJjc3dpdGNoIiwia2V5cyIsInNldFN0YXRlIiwiaGFuZGxlSXRlbUNsaWNrIiwidXNlQ2FsbGJhY2siLCJlIiwicHJldmVudERlZmF1bHQiLCJzdG9wUHJvcGFnYXRpb24iLCJoYW5kbGVDU3dpdGNoQ2xpY2siLCJoYW5kbGVDU3dpdGNoUmlnaHRDbGljayIsImhhbmRsZUtleXNDbGljayIsImhhbmRsZUtleXNSaWdodENsaWNrIiwiTWF0aCIsIm1heCIsIm1hcCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/DoorsTracker.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Event.js": -/*!*************************************!*\ - !*** ./resources/js/pages/Event.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _NotFound__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var _components_episodes_List__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/episodes/List */ \"./resources/js/components/episodes/List.js\");\n/* harmony import */ var _components_events_Detail__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/events/Detail */ \"./resources/js/components/events/Detail.js\");\n/* harmony import */ var _components_techniques_Dialog__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/techniques/Dialog */ \"./resources/js/components/techniques/Dialog.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Event = function Event() {\n var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_18__.useParams)();\n var name = params.name;\n var user = (0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_15__.useUser)();\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n error = _React$useState2[0],\n setError = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3__.useState(true),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n loading = _React$useState4[0],\n setLoading = _React$useState4[1];\n\n var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n event = _React$useState6[0],\n setEvent = _React$useState6[1];\n\n var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n editContent = _React$useState8[0],\n setEditContent = _React$useState8[1];\n\n var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__.useState([]),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n episodes = _React$useState10[0],\n setEpisodes = _React$useState10[1];\n\n var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_3__.useState(false),\n _React$useState12 = _slicedToArray(_React$useState11, 2),\n showContentDialog = _React$useState12[0],\n setShowContentDialog = _React$useState12[1];\n\n var actions = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(function () {\n return {\n editContent: (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_14__.mayEditContent)(user) ? function (content) {\n setEditContent(content);\n setShowContentDialog(true);\n } : null\n };\n }, [user]);\n var fetchEpisodes = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (controller, event) {\n if (!event) {\n setEpisodes([]);\n return;\n }\n\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/episodes\", {\n signal: controller.signal,\n params: {\n after: moment__WEBPACK_IMPORTED_MODULE_2___default()().subtract(3, 'hours').toISOString(),\n before: moment__WEBPACK_IMPORTED_MODULE_2___default()().add(14, 'days').toISOString(),\n event: [event.id]\n }\n }).then(function (response) {\n setEpisodes(response.data || []);\n })[\"catch\"](function (e) {\n if (!axios__WEBPACK_IMPORTED_MODULE_1___default().isCancel(e)) {\n console.error(e);\n }\n });\n }, []);\n var saveContent = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().put(\"/api/content/\".concat(values.id), _objectSpread({\n parent_id: event.description_id\n }, values));\n\n case 3:\n response = _context.sent;\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(_i18n__WEBPACK_IMPORTED_MODULE_16__[\"default\"].t('content.saveSuccess'));\n setEvent(function (event) {\n return _objectSpread(_objectSpread({}, event), {}, {\n description: response.data\n });\n });\n setShowContentDialog(false);\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(_i18n__WEBPACK_IMPORTED_MODULE_16__[\"default\"].t('content.saveError'));\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 9]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }(), [event && event.description_id]);\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n var ctrl = new AbortController();\n setLoading(true);\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/events/\".concat(name), {\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setEvent(response.data);\n })[\"catch\"](function (error) {\n setError(error);\n setLoading(false);\n setEvent(null);\n });\n return function () {\n ctrl.abort();\n };\n }, [name]);\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n var controller = new AbortController();\n fetchEpisodes(controller, event);\n var timer = setInterval(function () {\n fetchEpisodes(controller, event);\n }, 1.5 * 60 * 1000);\n return function () {\n controller.abort();\n clearInterval(timer);\n };\n }, [event, fetchEpisodes]);\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n error: error\n });\n }\n\n if (!event) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_NotFound__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {});\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(react_helmet__WEBPACK_IMPORTED_MODULE_4__.Helmet, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(\"title\", {\n children: event.title\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n base: \"/events/\".concat(event.name)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_19__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_events_Detail__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n actions: actions,\n event: event\n }), episodes.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(\"h2\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_16__[\"default\"].t('events.upcomingEpisodes')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_episodes_List__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n episodes: episodes\n })]\n }) : null]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_techniques_Dialog__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n content: editContent,\n language: _i18n__WEBPACK_IMPORTED_MODULE_16__[\"default\"].language,\n onHide: function onHide() {\n setShowContentDialog(false);\n },\n onSubmit: saveContent,\n show: showContentDialog\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_20__.withTranslation)()(Event));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvRXZlbnQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTs7Ozs7QUFFQSxJQUFNbUIsS0FBSyxHQUFHLFNBQVJBLEtBQVEsR0FBTTtBQUNuQixNQUFNQyxNQUFNLEdBQUdkLDREQUFTLEVBQXhCO0FBQ0EsTUFBUWUsSUFBUixHQUFpQkQsTUFBakIsQ0FBUUMsSUFBUjtBQUNBLE1BQU1DLElBQUksR0FBR0wsOERBQU8sRUFBcEI7O0FBRUEsd0JBQTBCZiwyQ0FBQSxDQUFlLElBQWYsQ0FBMUI7QUFBQTtBQUFBLE1BQU9zQixLQUFQO0FBQUEsTUFBY0MsUUFBZDs7QUFDQSx5QkFBOEJ2QiwyQ0FBQSxDQUFlLElBQWYsQ0FBOUI7QUFBQTtBQUFBLE1BQU93QixPQUFQO0FBQUEsTUFBZ0JDLFVBQWhCOztBQUNBLHlCQUEwQnpCLDJDQUFBLENBQWUsSUFBZixDQUExQjtBQU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iIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/Event.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Front.js": -/*!*************************************!*\ - !*** ./resources/js/pages/Front.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Row.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Col.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Image.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\n\n\nvar Front = function Front() {\n var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_3__.useNavigate)();\n react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {\n var returnPath = localStorage.getItem('returnPath');\n\n if (returnPath) {\n localStorage.removeItem('returnPath');\n navigate(returnPath);\n }\n }, []);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n className: \"mt-5\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n base: \"/\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n md: {\n offset: 3,\n span: 6\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n className: \"front-panel\",\n onClick: function onClick() {\n return navigate('/tournaments/6');\n },\n variant: \"outline-secondary\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n alt: \"\",\n className: \"image\",\n src: \"/media/alttp/front.png\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"div\", {\n className: \"title\",\n children: \"ALttPR Weekly\"\n })]\n })\n })\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Front);//# sourceURL=[module]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PFJvdz5cblx0XHRcdDxDb2wgbWQ9e3sgb2Zmc2V0OiAzLCBzcGFuOiA2IH19PlxuXHRcdFx0XHQ8QnV0dG9uXG5cdFx0XHRcdFx0Y2xhc3NOYW1lPVwiZnJvbnQtcGFuZWxcIlxuXHRcdFx0XHRcdG9uQ2xpY2s9eygpID0+IG5hdmlnYXRlKCcvdG91cm5hbWVudHMvNicpfVxuXHRcdFx0XHRcdHZhcmlhbnQ9XCJvdXRsaW5lLXNlY29uZGFyeVwiXG5cdFx0XHRcdD5cblx0XHRcdFx0XHQ8SW1hZ2UgYWx0PVwiXCIgY2xhc3NOYW1lPVwiaW1hZ2VcIiBzcmM9XCIvbWVkaWEvYWx0dHAvZnJvbnQucG5nXCIgLz5cblx0XHRcdFx0XHQ8ZGl2IGNsYXNzTmFtZT1cInRpdGxlXCI+XG5cdFx0XHRcdFx0XHRBTHR0UFIgV2Vla2x5XG5cdFx0XHRcdFx0PC9kaXY+XG5cdFx0XHRcdDwvQnV0dG9uPlxuXHRcdFx0PC9Db2w+XG5cdFx0PC9Sb3c+XG5cdDwvQ29udGFpbmVyPjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZyb250O1xuIl0sIm5hbWVzIjpbIlJlYWN0IiwiQnV0dG9uIiwiQ29sIiwiQ29udGFpbmVyIiwiSW1hZ2UiLCJSb3ciLCJ1c2VOYXZpZ2F0ZSIsIkNhbm9uaWNhbExpbmtzIiwiRnJvbnQiLCJuYXZpZ2F0ZSIsInVzZUVmZmVjdCIsInJldHVyblBhdGgiLCJsb2NhbFN0b3JhZ2UiLCJnZXRJdGVtIiwicmVtb3ZlSXRlbSIsIm9mZnNldCIsInNwYW4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/pages/Front.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Map.js": -/*!***********************************!*\ - !*** ./resources/js/pages/Map.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_map_Buttons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/map/Buttons */ \"./resources/js/components/map/Buttons.js\");\n/* harmony import */ var _components_map_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/map/List */ \"./resources/js/components/map/List.js\");\n/* harmony import */ var _components_map_OpenSeadragon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/map/OpenSeadragon */ \"./resources/js/components/map/OpenSeadragon.js\");\n/* harmony import */ var _components_map_Pins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/map/Pins */ \"./resources/js/components/map/Pins.js\");\n/* harmony import */ var _components_map_UWSuperTiles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/map/UWSuperTiles */ \"./resources/js/components/map/UWSuperTiles.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Map = function Map() {\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n uwOverlay = _React$useState2[0],\n setUWOverlay = _React$useState2[1];\n\n var _useParams = (0,react_router__WEBPACK_IMPORTED_MODULE_9__.useParams)(),\n activeMap = _useParams.activeMap;\n\n var container = react__WEBPACK_IMPORTED_MODULE_0__.useRef();\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_10__.useTranslation)(),\n t = _useTranslation.t;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n fluid: true,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_1__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"title\", {\n children: [t('map.heading'), \" - \", t(\"map.\".concat(activeMap, \"Long\"))]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"meta\", {\n name: \"description\",\n content: t('map.description')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n base: \"/map/\".concat(activeMap)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_components_map_OpenSeadragon__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n ref: container,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"div\", {\n className: \"d-flex align-items-start justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(\"h1\", {\n children: [t('map.heading'), \" - \", t(\"map.\".concat(activeMap, \"Long\"))]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_map_Buttons__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n setUWOverlay: setUWOverlay,\n uwOverlay: uwOverlay\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(\"div\", {\n ref: container,\n style: {\n height: '80vh'\n }\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_map_Pins__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_map_UWSuperTiles__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n show: uwOverlay\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_map_List__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {})]\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Map);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvTWFwLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBRUEsSUFBTVcsR0FBRyxHQUFHLFNBQU5BLEdBQU0sR0FBTTtBQUNqQix3QkFBa0NYLDJDQUFBLENBQWUsS0FBZixDQUFsQztBQUFBO0FBQUEsTUFBT2EsU0FBUDtBQUFBLE1BQWtCQyxZQUFsQjs7QUFFQSxtQkFBc0JWLHVEQUFTLEVBQS9CO0FBQUEsTUFBUVcsU0FBUixjQUFRQSxTQUFSOztBQUNBLE1BQU1DLFNBQVMsR0FBR2hCLHlDQUFBLEVBQWxCOztBQUNBLHdCQUFjRyw4REFBYyxFQUE1Qj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iwiUGlucyIsIlVXU3VwZXJUaWxlcyIsIk1hcCIsInVzZVN0YXRlIiwidXdPdmVybGF5Iiwic2V0VVdPdmVybGF5IiwiYWN0aXZlTWFwIiwiY29udGFpbmVyIiwidXNlUmVmIiwidCIsImhlaWdodCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/Map.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/NotFound.js": -/*!****************************************!*\ - !*** ./resources/js/pages/NotFound.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n\nvar NotFound = function NotFound() {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_helmet__WEBPACK_IMPORTED_MODULE_1__.Helmet, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"title\", {\n children: \"Not Found\"\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"h1\", {\n children: \"Not Found\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(\"p\", {\n children: \"Sorry\"\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotFound);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvTm90Rm91bmQuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7Ozs7QUFFQSxJQUFNRSxRQUFRLEdBQUcsU0FBWEEsUUFBVztBQUFBLHNCQUNoQjtBQUFBLDRCQUNDLHVEQUFDLGdEQUFEO0FBQUEsNkJBQ0M7QUFBQTtBQUFBO0FBREQsTUFERCxlQUlDO0FBQUE7QUFBQSxNQUpELGVBS0M7QUFBQTtBQUFBLE1BTEQ7QUFBQSxJQURnQjtBQUFBLENBQWpCOztBQVNBLGlFQUFlQSxRQUFmIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3BhZ2VzL05vdEZvdW5kLmpzPzkyMGUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IEhlbG1ldCB9IGZyb20gJ3JlYWN0LWhlbG1ldCc7XG5cbmNvbnN0IE5vdEZvdW5kID0gKCkgPT5cblx0PGRpdj5cblx0XHQ8SGVsbWV0PlxuXHRcdFx0PHRpdGxlPk5vdCBGb3VuZDwvdGl0bGU+XG5cdFx0PC9IZWxtZXQ+XG5cdFx0PGgxPk5vdCBGb3VuZDwvaDE+XG5cdFx0PHA+U29ycnk8L3A+XG5cdDwvZGl2PjtcblxuZXhwb3J0IGRlZmF1bHQgTm90Rm91bmQ7XG4iXSwibmFtZXMiOlsiUmVhY3QiLCJIZWxtZXQiLCJOb3RGb3VuZCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/NotFound.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Schedule.js": -/*!****************************************!*\ - !*** ./resources/js/pages/Schedule.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Container.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Button.js\");\n/* harmony import */ var react_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! react-bootstrap */ \"./node_modules/react-bootstrap/esm/Alert.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/useTranslation.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_Icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/common/Icon */ \"./resources/js/components/common/Icon.js\");\n/* harmony import */ var _components_episodes_ApplyDialog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../components/episodes/ApplyDialog */ \"./resources/js/components/episodes/ApplyDialog.js\");\n/* harmony import */ var _components_episodes_Filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/episodes/Filter */ \"./resources/js/components/episodes/Filter.js\");\n/* harmony import */ var _components_episodes_List__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/episodes/List */ \"./resources/js/components/episodes/List.js\");\n/* harmony import */ var _components_episodes_RestreamDialog__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/episodes/RestreamDialog */ \"./resources/js/components/episodes/RestreamDialog.js\");\n/* harmony import */ var _helpers_Episode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../helpers/Episode */ \"./resources/js/helpers/Episode.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Schedule = function Schedule(_ref) {\n var user = _ref.user;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(14),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n ahead = _React$useState2[0];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3__.useState('commentary'),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n applyAs = _React$useState4[0],\n setApplyAs = _React$useState4[1];\n\n var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_3__.useState(0),\n _React$useState6 = _slicedToArray(_React$useState5, 1),\n behind = _React$useState6[0];\n\n var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_3__.useState([]),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n episodes = _React$useState8[0],\n setEpisodes = _React$useState8[1];\n\n var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__.useState([]),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n events = _React$useState10[0],\n setEvents = _React$useState10[1];\n\n var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_3__.useState({}),\n _React$useState12 = _slicedToArray(_React$useState11, 2),\n filter = _React$useState12[0],\n setFilter = _React$useState12[1];\n\n var _React$useState13 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState14 = _slicedToArray(_React$useState13, 2),\n restreamChannel = _React$useState14[0],\n setRestreamChannel = _React$useState14[1];\n\n var _React$useState15 = react__WEBPACK_IMPORTED_MODULE_3__.useState(null),\n _React$useState16 = _slicedToArray(_React$useState15, 2),\n restreamEpisode = _React$useState16[0],\n setRestreamEpisode = _React$useState16[1];\n\n var _React$useState17 = react__WEBPACK_IMPORTED_MODULE_3__.useState(false),\n _React$useState18 = _slicedToArray(_React$useState17, 2),\n showApplyDialog = _React$useState18[0],\n setShowApplyDialog = _React$useState18[1];\n\n var _React$useState19 = react__WEBPACK_IMPORTED_MODULE_3__.useState(false),\n _React$useState20 = _slicedToArray(_React$useState19, 2),\n showRestreamDialog = _React$useState20[0],\n setShowRestreamDialog = _React$useState20[1];\n\n var _React$useState21 = react__WEBPACK_IMPORTED_MODULE_3__.useState(false),\n _React$useState22 = _slicedToArray(_React$useState21, 2),\n showFilter = _React$useState22[0],\n setShowFilter = _React$useState22[1];\n\n var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_16__.useTranslation)(),\n t = _useTranslation.t;\n\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n var savedFilter = localStorage.getItem('episodes.filter.schedule');\n\n if (savedFilter) {\n setFilter(JSON.parse(savedFilter));\n } else {\n setFilter(function (filter) {\n return filter ? {} : filter;\n });\n }\n }, []);\n var fetchEvents = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (controller) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/events\", {\n signal: controller.signal,\n params: {\n after: moment__WEBPACK_IMPORTED_MODULE_2___default()().startOf('day').subtract(1, 'days').toISOString(),\n before: moment__WEBPACK_IMPORTED_MODULE_2___default()().startOf('day').add(8, 'days').toISOString()\n }\n }).then(function (response) {\n var newEvents = (response.data || []).sort(function (a, b) {\n return (a[\"short\"] || a.title).localeCompare(b[\"short\"] || b.title);\n });\n setEvents(newEvents);\n })[\"catch\"](function (e) {\n if (!axios__WEBPACK_IMPORTED_MODULE_1___default().isCancel(e)) {\n console.error(e);\n }\n });\n });\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n var controller = new AbortController();\n fetchEvents(controller);\n var timer = setInterval(function () {\n fetchEvents(controller);\n clearInterval(timer);\n }, 15 * 60 * 1000);\n return function () {\n controller.abort();\n };\n }, []);\n var updateFilter = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (newFilter) {\n localStorage.setItem('episodes.filter.schedule', JSON.stringify(newFilter));\n setFilter(newFilter);\n }, []);\n var invertFilter = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n updateFilter(events.reduce(function (newFilter, event) {\n return (0,_helpers_Episode__WEBPACK_IMPORTED_MODULE_13__.toggleEventFilter)(events, newFilter, event);\n }, filter));\n }, [events, filter]);\n var fetchEpisodes = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (controller, ahead, behind, filter) {\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/episodes\", {\n signal: controller.signal,\n params: _objectSpread({\n after: moment__WEBPACK_IMPORTED_MODULE_2___default()().subtract(8, 'hours').subtract(behind, 'days').toISOString(),\n before: moment__WEBPACK_IMPORTED_MODULE_2___default()().add(16, 'hours').add(ahead, 'days').toISOString()\n }, filter)\n }).then(function (response) {\n setEpisodes(response.data || []);\n })[\"catch\"](function (e) {\n if (!axios__WEBPACK_IMPORTED_MODULE_1___default().isCancel(e)) {\n console.error(e);\n }\n });\n }, []);\n var onAddRestream = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (episode) {\n setRestreamEpisode(episode);\n setShowRestreamDialog(true);\n }, []);\n var onAddRestreamSubmit = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values) {\n var response, newEpisode;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/episodes/\".concat(values.episode_id, \"/add-restream\"), values);\n\n case 3:\n response = _context.sent;\n newEpisode = response.data;\n setEpisodes(function (episodes) {\n return episodes.map(function (episode) {\n return episode.id === newEpisode.id ? _objectSpread(_objectSpread({}, episode), newEpisode) : episode;\n });\n });\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(t('episodes.restreamDialog.addSuccess'));\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(t('episodes.restreamDialog.addError'));\n throw _context.t0;\n\n case 13:\n setRestreamEpisode(null);\n setShowRestreamDialog(false);\n\n case 15:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 9]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), []);\n var onRemoveRestream = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(episode, channel) {\n var response, newEpisode;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/episodes/\".concat(episode.id, \"/remove-restream\"), {\n channel_id: channel.id\n });\n\n case 3:\n response = _context2.sent;\n newEpisode = response.data;\n setEpisodes(function (episodes) {\n return episodes.map(function (episode) {\n return episode.id === newEpisode.id ? _objectSpread(_objectSpread({}, episode), newEpisode) : episode;\n });\n });\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(t('episodes.restreamDialog.removeSuccess'));\n setRestreamChannel(null);\n setRestreamEpisode(null);\n setShowRestreamDialog(false);\n _context2.next = 15;\n break;\n\n case 12:\n _context2.prev = 12;\n _context2.t0 = _context2[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(t('episodes.restreamDialog.removeError'));\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[0, 12]]);\n }));\n\n return function (_x2, _x3) {\n return _ref3.apply(this, arguments);\n };\n }(), []);\n var onEditRestream = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (episode, channel) {\n setRestreamChannel(channel);\n setRestreamEpisode(episode);\n setShowRestreamDialog(true);\n }, []);\n var editRestream = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee3(values) {\n var response, newEpisode, newChannel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/episodes/\".concat(values.episode_id, \"/edit-restream\"), values);\n\n case 3:\n response = _context3.sent;\n newEpisode = response.data;\n setEpisodes(function (episodes) {\n return episodes.map(function (episode) {\n return episode.id === newEpisode.id ? _objectSpread(_objectSpread({}, episode), newEpisode) : episode;\n });\n });\n setRestreamEpisode(function (episode) {\n return _objectSpread(_objectSpread({}, episode), newEpisode);\n });\n newChannel = newEpisode.channels.find(function (c) {\n return c.id === values.channel_id;\n });\n setRestreamChannel(function (channel) {\n return _objectSpread(_objectSpread({}, channel), newChannel);\n });\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(t('episodes.restreamDialog.editSuccess'));\n _context3.next = 15;\n break;\n\n case 12:\n _context3.prev = 12;\n _context3.t0 = _context3[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(t('episodes.restreamDialog.editError'));\n\n case 15:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[0, 12]]);\n }));\n\n return function (_x4) {\n return _ref4.apply(this, arguments);\n };\n }(), []);\n var manageCrew = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee4(values) {\n var response, newEpisode, newChannel;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.prev = 0;\n _context4.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/episodes/\".concat(values.episode_id, \"/crew-manage\"), values);\n\n case 3:\n response = _context4.sent;\n newEpisode = response.data;\n setEpisodes(function (episodes) {\n return episodes.map(function (episode) {\n return episode.id === newEpisode.id ? _objectSpread(_objectSpread({}, episode), newEpisode) : episode;\n });\n });\n setRestreamEpisode(function (episode) {\n return _objectSpread(_objectSpread({}, episode), newEpisode);\n });\n newChannel = newEpisode.channels.find(function (c) {\n return c.id === values.channel_id;\n });\n setRestreamChannel(function (channel) {\n return _objectSpread(_objectSpread({}, channel), newChannel);\n });\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(t('episodes.restreamDialog.crewSuccess'));\n _context4.next = 15;\n break;\n\n case 12:\n _context4.prev = 12;\n _context4.t0 = _context4[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(t('episodes.restreamDialog.crewError'));\n\n case 15:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[0, 12]]);\n }));\n\n return function (_x5) {\n return _ref5.apply(this, arguments);\n };\n }(), []);\n var onHideRestreamDialog = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n setShowRestreamDialog(false);\n setRestreamChannel(null);\n setRestreamEpisode(null);\n }, []);\n var onApply = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (episode, as) {\n setShowApplyDialog(true);\n setRestreamEpisode(episode);\n setApplyAs(as);\n }, []);\n var onSubmitApplyDialog = react__WEBPACK_IMPORTED_MODULE_3__.useCallback( /*#__PURE__*/function () {\n var _ref6 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee5(values) {\n var response, newEpisode;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.prev = 0;\n _context5.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post(\"/api/episodes/\".concat(values.episode_id, \"/crew-signup\"), values);\n\n case 3:\n response = _context5.sent;\n newEpisode = response.data;\n setEpisodes(function (episodes) {\n return episodes.map(function (episode) {\n return episode.id === newEpisode.id ? _objectSpread(_objectSpread({}, episode), newEpisode) : episode;\n });\n });\n toastr__WEBPACK_IMPORTED_MODULE_5___default().success(t('episodes.applyDialog.applySuccess'));\n _context5.next = 13;\n break;\n\n case 9:\n _context5.prev = 9;\n _context5.t0 = _context5[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_5___default().error(t('episodes.applyDialog.applyError'));\n throw _context5.t0;\n\n case 13:\n setRestreamEpisode(null);\n setShowApplyDialog(false);\n\n case 15:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, null, [[0, 9]]);\n }));\n\n return function (_x6) {\n return _ref6.apply(this, arguments);\n };\n }(), []);\n var onHideApplyDialog = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n setShowApplyDialog(false);\n setRestreamEpisode(null);\n }, []);\n react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {\n var controller = new AbortController();\n fetchEpisodes(controller, ahead, behind, filter);\n var timer = setInterval(function () {\n fetchEpisodes(controller, ahead, behind, filter);\n }, 1.5 * 60 * 1000);\n return function () {\n controller.abort();\n clearInterval(timer);\n };\n }, [ahead, behind, fetchEpisodes, filter]);\n var toggleFilter = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () {\n setShowFilter(function (show) {\n return !show;\n });\n }, []);\n var filterButtonVariant = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(function () {\n var outline = showFilter ? '' : 'outline-';\n var filterActive = filter && filter.event && filter.event.length;\n return \"\".concat(outline).concat(filterActive ? 'info' : 'secondary');\n }, [filter, showFilter]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(react_bootstrap__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_4__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"title\", {\n children: t('schedule.heading')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"meta\", {\n name: \"description\",\n content: t('schedule.description')\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n base: \"/schedule\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(\"div\", {\n className: \"d-flex align-items-end justify-content-between\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"h1\", {\n className: \"mb-0\",\n children: t('schedule.heading')\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(\"div\", {\n className: \"button-bar\",\n children: [showFilter ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n onClick: invertFilter,\n title: t('button.invert'),\n variant: \"outline-secondary\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_8__[\"default\"].INVERT, {\n title: \"\"\n })\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n onClick: toggleFilter,\n title: t('button.filter'),\n variant: filterButtonVariant,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_common_Icon__WEBPACK_IMPORTED_MODULE_8__[\"default\"].FILTER, {\n title: \"\"\n })\n })]\n })]\n }), showFilter ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: \"my-2\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_episodes_Filter__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n events: events,\n filter: filter,\n setFilter: updateFilter\n })\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n children: episodes.length ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_episodes_List__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n episodes: episodes,\n onAddRestream: onAddRestream,\n onApply: onApply,\n onEditRestream: onEditRestream\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react_bootstrap__WEBPACK_IMPORTED_MODULE_19__[\"default\"], {\n variant: \"info\",\n children: t('episodes.empty')\n })\n }), user ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_episodes_ApplyDialog__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n as: applyAs,\n episode: restreamEpisode,\n onHide: onHideApplyDialog,\n onSubmit: onSubmitApplyDialog,\n show: showApplyDialog\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_components_episodes_RestreamDialog__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n channel: restreamChannel,\n editRestream: editRestream,\n episode: restreamEpisode,\n manageCrew: manageCrew,\n onRemoveRestream: onRemoveRestream,\n onHide: onHideRestreamDialog,\n onSubmit: onAddRestreamSubmit,\n show: showRestreamDialog\n })]\n }) : null]\n });\n};\n\nSchedule.propTypes = {\n user: prop_types__WEBPACK_IMPORTED_MODULE_20___default().shape({})\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_14__.withUser)(Schedule));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvU2NoZWR1bGUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFFQSxJQUFNbUIsUUFBUSxHQUFHLFNBQVhBLFFBQVcsT0FBYztBQUFBLE1BQVhDLElBQVcsUUFBWEEsSUFBVzs7QUFDOUIsd0JBQWdCakIsMkNBQUEsQ0FBZSxFQUFmLENBQWhCO0FBQUE7QUFBQSxNQUFPbUIsS0FBUDs7QUFDQSx5QkFBOEJuQiwyQ0FBQSxDQUFlLFlBQWYsQ0FBOUI7QUFBQTtBQUFBLE1BQU9vQixPQUFQO0FBQUEsTUFBZ0JDLFVBQWhCOztBQUNBLHlCQUFpQnJCLDJDQUFBLENBQWUsQ0FBZixDQUFqQjtBQUFBO0FBQUEsTUFBT3NCLE1BQVA7O0FBQ0EseUJBQWdDdEIsMkNBQUEsQ0FBZSxFQUFmLENBQWhDO0FBQUE7QUFBQSxNQUFPdUIsUUFBUDtBQUFBLE1BQWlCQyxXQUFqQjs7QUFDQSx5QkFBNEJ4QiwyQ0FBQSxDQUFlLEVBQWYsQ0FBNUI7QUFBQTtB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W1EaWFsb2ciLCJvbkFwcGx5IiwiYXMiLCJvblN1Ym1pdEFwcGx5RGlhbG9nIiwib25IaWRlQXBwbHlEaWFsb2ciLCJ0b2dnbGVGaWx0ZXIiLCJzaG93IiwiZmlsdGVyQnV0dG9uVmFyaWFudCIsInVzZU1lbW8iLCJvdXRsaW5lIiwiZmlsdGVyQWN0aXZlIiwibGVuZ3RoIiwicHJvcFR5cGVzIiwic2hhcGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/pages/Schedule.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Technique.js": -/*!*****************************************!*\ - !*** ./resources/js/pages/Technique.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! toastr */ \"./node_modules/toastr/toastr.js\");\n/* harmony import */ var toastr__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(toastr__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var _pages_NotFound__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../pages/NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_techniques_Detail__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/techniques/Detail */ \"./resources/js/components/techniques/Detail.js\");\n/* harmony import */ var _components_techniques_Dialog__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/techniques/Dialog */ \"./resources/js/components/techniques/Dialog.js\");\n/* harmony import */ var _helpers_permissions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/permissions */ \"./resources/js/helpers/permissions.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _helpers_UserContext__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../helpers/UserContext */ \"./resources/js/helpers/UserContext.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Technique = function Technique(_ref) {\n var basepath = _ref.basepath,\n type = _ref.type;\n var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_17__.useParams)();\n var name = params.name;\n var user = (0,_helpers_UserContext__WEBPACK_IMPORTED_MODULE_14__.useUser)();\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n error = _useState2[0],\n setError = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(true),\n _useState4 = _slicedToArray(_useState3, 2),\n loading = _useState4[0],\n setLoading = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState6 = _slicedToArray(_useState5, 2),\n technique = _useState6[0],\n setTechnique = _useState6[1];\n\n var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState8 = _slicedToArray(_useState7, 2),\n editContent = _useState8[0],\n setEditContent = _useState8[1];\n\n var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n _useState10 = _slicedToArray(_useState9, 2),\n showContentDialog = _useState10[0],\n setShowContentDialog = _useState10[1];\n\n var actions = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {\n return {\n editContent: (0,_helpers_permissions__WEBPACK_IMPORTED_MODULE_12__.mayEditContent)(user) ? function (content) {\n setEditContent(content);\n setShowContentDialog(true);\n } : null\n };\n }, [user]);\n var saveContent = react__WEBPACK_IMPORTED_MODULE_2__.useCallback( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(values) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().put(\"/api/content/\".concat(values.id), _objectSpread({\n parent_id: technique.id\n }, values));\n\n case 3:\n response = _context.sent;\n toastr__WEBPACK_IMPORTED_MODULE_4___default().success(_i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].t('content.saveSuccess'));\n setTechnique(response.data);\n setShowContentDialog(false);\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](0);\n toastr__WEBPACK_IMPORTED_MODULE_4___default().error(_i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].t('content.saveError'));\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 9]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), [technique && technique.id]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var ctrl = new AbortController();\n setLoading(true);\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/pages/\".concat(type, \"/\").concat(name), {\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setTechnique(response.data);\n })[\"catch\"](function (error) {\n setError(error);\n setLoading(false);\n setTechnique(null);\n });\n return function () {\n ctrl.abort();\n };\n }, [name, type]);\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n error: error\n });\n }\n\n if (!technique) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_pages_NotFound__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {});\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"title\", {\n children: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_13__.getTranslation)(technique, 'title', _i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].language)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"meta\", {\n name: \"description\",\n content: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_13__.getTranslation)(technique, 'short', _i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].language)\n })]\n }), technique.image ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"meta\", {\n property: \"og:image\",\n content: technique.image\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"meta\", {\n property: \"twitter:image\",\n content: technique.image\n })]\n }) : null, !technique.image && technique.gif ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"meta\", {\n property: \"og:image\",\n content: technique.gif\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(\"meta\", {\n property: \"twitter:image\",\n content: technique.gif\n })]\n }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n base: \"/\".concat(basepath, \"/\").concat(technique.name),\n lang: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_13__.getMatchedLocale)(technique, _i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].language),\n langs: (0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_13__.getLanguages)(technique)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_techniques_Detail__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n actions: actions,\n technique: technique\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_techniques_Dialog__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n content: editContent,\n language: _i18n__WEBPACK_IMPORTED_MODULE_15__[\"default\"].language,\n onHide: function onHide() {\n setShowContentDialog(false);\n },\n onSubmit: saveContent,\n show: showContentDialog\n })]\n });\n};\n\nTechnique.propTypes = {\n basepath: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_19__.withTranslation)()(Technique));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvVGVjaG5pcXVlLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FB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CJ0IiwiZGF0YSIsImN0cmwiLCJBYm9ydENvbnRyb2xsZXIiLCJnZXQiLCJzaWduYWwiLCJ0aGVuIiwiYWJvcnQiLCJsYW5ndWFnZSIsImltYWdlIiwiZ2lmIiwicHJvcFR5cGVzIiwic3RyaW5nIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/Technique.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Techniques.js": -/*!******************************************!*\ - !*** ./resources/js/pages/Techniques.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 axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-i18next */ \"./node_modules/react-i18next/dist/es/withTranslation.js\");\n/* harmony import */ var _NotFound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var _components_techniques_Overview__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/techniques/Overview */ \"./resources/js/components/techniques/Overview.js\");\n/* harmony import */ var _helpers_Technique__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/Technique */ \"./resources/js/helpers/Technique.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../i18n */ \"./resources/js/i18n/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Techniques = function Techniques(_ref) {\n var namespace = _ref.namespace,\n type = _ref.type;\n\n var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n error = _React$useState2[0],\n setError = _React$useState2[1];\n\n var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_1__.useState({}),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n filter = _React$useState4[0],\n setFilter = _React$useState4[1];\n\n var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_1__.useState(true),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n loading = _React$useState6[0],\n setLoading = _React$useState6[1];\n\n var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_1__.useState([]),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n techniques = _React$useState8[0],\n setTechniques = _React$useState8[1];\n\n react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () {\n var savedFilter = localStorage.getItem(\"content.filter.\".concat(type));\n\n if (savedFilter) {\n setFilter(JSON.parse(savedFilter));\n } else {\n setFilter(function (filter) {\n return filter ? {} : filter;\n });\n }\n }, [type]);\n var updateFilter = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function (newFilter) {\n localStorage.setItem(\"content.filter.\".concat(type), JSON.stringify(newFilter));\n setFilter(newFilter);\n }, [type]);\n react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () {\n var ctrl = new AbortController();\n\n if (!techniques.length) {\n setLoading(true);\n }\n\n axios__WEBPACK_IMPORTED_MODULE_0___default().get(\"/api/pages/\".concat(type), {\n params: filter,\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setTechniques(response.data.sort((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_9__.compareTranslation)('title', _i18n__WEBPACK_IMPORTED_MODULE_10__[\"default\"].language)));\n })[\"catch\"](function (error) {\n if (!axios__WEBPACK_IMPORTED_MODULE_0___default().isCancel(error)) {\n setError(error);\n setLoading(false);\n setTechniques([]);\n }\n });\n return function () {\n ctrl.abort();\n };\n }, [filter, namespace, type]);\n react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () {\n setTechniques(function (t) {\n return _toConsumableArray(t).sort((0,_helpers_Technique__WEBPACK_IMPORTED_MODULE_9__.compareTranslation)('title', _i18n__WEBPACK_IMPORTED_MODULE_10__[\"default\"].language));\n });\n }, [namespace, _i18n__WEBPACK_IMPORTED_MODULE_10__[\"default\"].language]);\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n error: error\n });\n }\n\n if (!techniques || !techniques.length) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_NotFound__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {});\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_helmet__WEBPACK_IMPORTED_MODULE_2__.Helmet, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(\"title\", {\n children: _i18n__WEBPACK_IMPORTED_MODULE_10__[\"default\"].t(\"\".concat(namespace, \".heading\"))\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(\"meta\", {\n name: \"description\",\n content: _i18n__WEBPACK_IMPORTED_MODULE_10__[\"default\"].t(\"\".concat(namespace, \".description\"))\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n base: \"/tech\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_techniques_Overview__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n filter: filter,\n namespace: namespace,\n setFilter: updateFilter,\n techniques: techniques,\n type: type\n })]\n });\n};\n\nTechniques.propTypes = {\n namespace: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n type: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_i18next__WEBPACK_IMPORTED_MODULE_13__.withTranslation)()(Techniques));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvVGVjaG5pcXVlcy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNYSxVQUFVLEdBQUcsU0FBYkEsVUFBYSxPQUF5QjtBQUFBLE1BQXRCQyxTQUFzQixRQUF0QkEsU0FBc0I7QUFBQSxNQUFYQyxJQUFXLFFBQVhBLElBQVc7O0FBQzNDLHdCQUEwQmIsMkNBQUEsQ0FBZSxJQUFmLENBQTFCO0FBQUE7QUFBQSxNQUFPZSxLQUFQO0FBQUEsTUFBY0MsUUFBZDs7QUFDQSx5QkFBNEJoQiwyQ0FBQSxDQUFlLEVBQWYsQ0FBNUI7QUFBQTtBQUFBLE1BQU9pQixNQUFQO0FBQUEsTUFBZUMsU0FBZjs7QUFDQSx5QkFBOEJsQiwyQ0FBQSxDQUFlLElBQWYsQ0FBOUI7QUFBQTtBQUFBLE1BQU9tQixPQUFQO0FBQUEsTUFBZ0JDLFVBQWhCOztBQUNBLHlCQUFvQ3BCLDJDQUFBLENBQWUsRUFBZixDQUFwQztBQUFBO0FBQUEsTUFBT3FCLFVBQVA7QUFBQSxNQUFtQkMsYUFBbkI7O0FBR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x0ZXIiLCJsb2NhbFN0b3JhZ2UiLCJnZXRJdGVtIiwiSlNPTiIsInBhcnNlIiwidXBkYXRlRmlsdGVyIiwidXNlQ2FsbGJhY2siLCJuZXdGaWx0ZXIiLCJzZXRJdGVtIiwic3RyaW5naWZ5IiwiY3RybCIsIkFib3J0Q29udHJvbGxlciIsImxlbmd0aCIsImdldCIsInBhcmFtcyIsInNpZ25hbCIsInRoZW4iLCJyZXNwb25zZSIsImRhdGEiLCJzb3J0IiwibGFuZ3VhZ2UiLCJpc0NhbmNlbCIsImFib3J0IiwidCIsInByb3BUeXBlcyIsInN0cmluZyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/Techniques.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/Tournament.js": -/*!******************************************!*\ - !*** ./resources/js/pages/Tournament.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 _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var _pages_NotFound__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../pages/NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_tournament_Detail__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../components/tournament/Detail */ \"./resources/js/components/tournament/Detail.js\");\n/* harmony import */ var _helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/Tournament */ \"./resources/js/helpers/Tournament.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Tournament = function Tournament() {\n var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_12__.useParams)();\n var id = params.id;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n error = _useState2[0],\n setError = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(true),\n _useState4 = _slicedToArray(_useState3, 2),\n loading = _useState4[0],\n setLoading = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n _useState6 = _slicedToArray(_useState5, 2),\n tournament = _useState6[0],\n setTournament = _useState6[1];\n\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var ctrl = new AbortController();\n setLoading(true);\n axios__WEBPACK_IMPORTED_MODULE_1___default().get(\"/api/tournaments/\".concat(id), {\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setTournament((0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.sortParticipants)(response.data));\n })[\"catch\"](function (error) {\n setError(error);\n setLoading(false);\n setTournament(null);\n });\n return function () {\n ctrl.abort();\n };\n }, [id]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n window.Echo.channel(\"Tournament.\".concat(id)).listen('ApplicationAdded', function (e) {\n if (e.application) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchApplication)(tournament, e.application);\n });\n }\n }).listen('ApplicationChanged', function (e) {\n if (e.application) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchApplication)(tournament, e.application);\n });\n }\n }).listen('ApplicationRemoved', function (e) {\n if (e.application_id) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.removeApplication)(tournament, e.application_id);\n });\n }\n }).listen('ParticipantChanged', function (e) {\n console.log(e);\n\n if (e.participant) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchParticipant)(tournament, e.participant);\n });\n }\n }).listen('ResultChanged', function (e) {\n if (e.result) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchResult)(tournament, e.result);\n });\n }\n }).listen('RoundAdded', function (e) {\n if (e.round) {\n setTournament(function (tournament) {\n return _objectSpread(_objectSpread({}, tournament), {}, {\n rounds: [e.round].concat(_toConsumableArray(tournament.rounds))\n });\n });\n }\n }).listen('RoundChanged', function (e) {\n if (e.round) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchRound)(tournament, e.round);\n });\n }\n }).listen('TournamentChanged', function (e) {\n if (e.tournament) {\n setTournament(function (tournament) {\n return _objectSpread(_objectSpread({}, tournament), e.tournament);\n });\n }\n });\n return function () {\n window.Echo.leave(\"Tournament.\".concat(id));\n };\n }, [id]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n var cb = function cb(e) {\n if (e.user) {\n setTournament(function (tournament) {\n return (0,_helpers_Tournament__WEBPACK_IMPORTED_MODULE_10__.patchUser)(tournament, e.user);\n });\n }\n };\n\n window.Echo.channel('App.Control').listen('UserChanged', cb);\n return function () {\n window.Echo.channel('App.Control').stopListening('UserChanged', cb);\n };\n }, []);\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n error: error\n });\n }\n\n if (!tournament) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_pages_NotFound__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {});\n }\n\n var addRound = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return axios__WEBPACK_IMPORTED_MODULE_1___default().post('/api/rounds', {\n tournament_id: tournament.id\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function addRound() {\n return _ref.apply(this, arguments);\n };\n }();\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(react_helmet__WEBPACK_IMPORTED_MODULE_3__.Helmet, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(\"title\", {\n children: tournament.title\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n base: \"/tournaments/\".concat(tournament.id)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_tournament_Detail__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n addRound: addRound,\n tournament: tournament\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tournament);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvVG91cm5hbWVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBVUEsSUFBTW1CLFVBQVUsR0FBRyxTQUFiQSxVQUFhLEdBQU07QUFDeEIsTUFBTUMsTUFBTSxHQUFHZiw0REFBUyxFQUF4QjtBQUNBLE1BQVFnQixFQUFSLEdBQWVELE1BQWYsQ0FBUUMsRUFBUjs7QUFFQSxrQkFBMEJsQiwrQ0FBUSxDQUFDLElBQUQsQ0FBbEM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9uaWNhbExpbmtzIiwiRXJyb3JCb3VuZGFyeSIsIkVycm9yTWVzc2FnZSIsIkxvYWRpbmciLCJOb3RGb3VuZCIsIkRldGFpbCIsInBhdGNoQXBwbGljYXRpb24iLCJwYXRjaFBhcnRpY2lwYW50IiwicGF0Y2hSZXN1bHQiLCJwYXRjaFJvdW5kIiwicGF0Y2hVc2VyIiwicmVtb3ZlQXBwbGljYXRpb24iLCJzb3J0UGFydGljaXBhbnRzIiwiVG91cm5hbWVudCIsInBhcmFtcyIsImlkIiwiZXJyb3IiLCJzZXRFcnJvciIsImxvYWRpbmciLCJzZXRMb2FkaW5nIiwidG91cm5hbWVudCIsInNldFRvdXJuYW1lbnQiLCJjdHJsIiwiQWJvcnRDb250cm9sbGVyIiwiZ2V0Iiwic2lnbmFsIiwidGhlbiIsInJlc3BvbnNlIiwiZGF0YSIsImFib3J0Iiwid2luZG93IiwiRWNobyIsImNoYW5uZWwiLCJsaXN0ZW4iLCJlIiwiYXBwbGljYXRpb24iLCJhcHBsaWNhdGlvbl9pZCIsImNvbnNvbGUiLCJsb2ciLCJwYXJ0aWNpcGFudCIsInJlc3VsdCIsInJvdW5kIiwicm91bmRzIiwibGVhdmUiLCJjYiIsInVzZXIiLCJzdG9wTGlzdGVuaW5nIiwiYWRkUm91bmQiLCJwb3N0IiwidG91cm5hbWVudF9pZCIsInRpdGxlIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/Tournament.js\n"); - -/***/ }), - -/***/ "./resources/js/pages/User.js": -/*!************************************!*\ - !*** ./resources/js/pages/User.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 axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react_helmet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-helmet */ \"./node_modules/react-helmet/es/Helmet.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/index.js\");\n/* harmony import */ var _NotFound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotFound */ \"./resources/js/pages/NotFound.js\");\n/* harmony import */ var _components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/common/CanonicalLinks */ \"./resources/js/components/common/CanonicalLinks.js\");\n/* harmony import */ var _components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/common/ErrorBoundary */ \"./resources/js/components/common/ErrorBoundary.js\");\n/* harmony import */ var _components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/common/ErrorMessage */ \"./resources/js/components/common/ErrorMessage.js\");\n/* harmony import */ var _components_common_Loading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/common/Loading */ \"./resources/js/components/common/Loading.js\");\n/* harmony import */ var _components_users_Profile__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/users/Profile */ \"./resources/js/components/users/Profile.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar User = function User() {\n var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_10__.useParams)();\n var id = params.id;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),\n _useState2 = _slicedToArray(_useState, 2),\n error = _useState2[0],\n setError = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(true),\n _useState4 = _slicedToArray(_useState3, 2),\n loading = _useState4[0],\n setLoading = _useState4[1];\n\n var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),\n _useState6 = _slicedToArray(_useState5, 2),\n user = _useState6[0],\n setUser = _useState6[1];\n\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n setLoading(true);\n var ctrl = new AbortController();\n axios__WEBPACK_IMPORTED_MODULE_0___default().get(\"/api/users/\".concat(id), {\n signal: ctrl.signal\n }).then(function (response) {\n setError(null);\n setLoading(false);\n setUser(response.data);\n })[\"catch\"](function (error) {\n setError(error);\n setLoading(false);\n setUser(null);\n });\n return function () {\n ctrl.abort();\n };\n }, [id]);\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n var cb = function cb(e) {\n if (e.user) {\n setUser(function (user) {\n return e.user.id === user.id ? _objectSpread(_objectSpread({}, user), e.user) : user;\n });\n }\n };\n\n window.Echo.channel('App.Control').listen('UserChanged', cb);\n return function () {\n window.Echo.channel('App.Control').stopListening('UserChanged', cb);\n };\n }, []);\n\n if (loading) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_common_Loading__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {});\n }\n\n if (error) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_common_ErrorMessage__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n error: error\n });\n }\n\n if (!user) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_NotFound__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {});\n }\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_components_common_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_helmet__WEBPACK_IMPORTED_MODULE_2__.Helmet, {\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(\"title\", {\n children: user.nickname || user.username\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_common_CanonicalLinks__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n base: \"/users/\".concat(user.id)\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_users_Profile__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n user: user\n })]\n });\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (User);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvVXNlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFFQSxJQUFNWSxJQUFJLEdB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sIkNhbm9uaWNhbExpbmtzIiwiRXJyb3JCb3VuZGFyeSIsIkVycm9yTWVzc2FnZSIsIkxvYWRpbmciLCJQcm9maWxlIiwiVXNlciIsInBhcmFtcyIsImlkIiwiZXJyb3IiLCJzZXRFcnJvciIsImxvYWRpbmciLCJzZXRMb2FkaW5nIiwidXNlciIsInNldFVzZXIiLCJjdHJsIiwiQWJvcnRDb250cm9sbGVyIiwiZ2V0Iiwic2lnbmFsIiwidGhlbiIsInJlc3BvbnNlIiwiZGF0YSIsImFib3J0IiwiY2IiLCJlIiwid2luZG93IiwiRWNobyIsImNoYW5uZWwiLCJsaXN0ZW4iLCJzdG9wTGlzdGVuaW5nIiwibmlja25hbWUiLCJ1c2VybmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/User.js\n"); - -/***/ }), - -/***/ "./resources/js/schema/yup.js": -/*!************************************!*\ - !*** ./resources/js/schema/yup.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 yup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! yup */ \"./node_modules/yup/es/index.js\");\n/* harmony import */ var _helpers_Result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/Result */ \"./resources/js/helpers/Result.js\");\n\n\nyup__WEBPACK_IMPORTED_MODULE_0__.addMethod(yup__WEBPACK_IMPORTED_MODULE_0__.string, 'time', function (errorMessage) {\n return this.test('test-time-format', errorMessage, function (value) {\n var path = this.path,\n createError = this.createError;\n return !value || (0,_helpers_Result__WEBPACK_IMPORTED_MODULE_1__.parseTime)(value) || createError({\n path: path,\n message: errorMessage || 'validation.error.time'\n });\n });\n});\nyup__WEBPACK_IMPORTED_MODULE_0__.setLocale({\n mixed: {\n \"default\": 'validation.error.general',\n required: 'validation.error.required'\n },\n string: {\n time: 'validation.error.time',\n url: 'validation.error.url'\n }\n});\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (yup__WEBPACK_IMPORTED_MODULE_0__);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc2NoZW1hL3l1cC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUVBO0FBRUFBLDBDQUFBLENBQWNBLHVDQUFkLEVBQTBCLE1BQTFCLEVBQWtDLFVBQVVJLFlBQVYsRUFBd0I7QUFDekQsU0FBTyxLQUFLQyxJQUFMLENBQVUsa0JBQVYsRUFBOEJELFlBQTlCLEVBQTRDLFVBQVVFLEtBQVYsRUFBaUI7QUFDbkUsUUFBUUMsSUFBUixHQUE4QixJQUE5QixDQUFRQSxJQUFSO0FBQUEsUUFBY0MsV0FBZCxHQUE4QixJQUE5QixDQUFjQSxXQUFkO0FBQ0EsV0FDQyxDQUFDRixLQUFELElBQ0FMLDBEQUFTLENBQUNLLEtBQUQsQ0FEVCxJQUVBRSxXQUFXLENBQUM7QUFBRUQsTUFBQUEsSUFBSSxFQUFKQSxJQUFGO0FBQVFFLE1BQUFBLE9BQU8sRUFBRUwsWUFBWSxJQUFJO0FBQWpDLEtBQUQsQ0FIWjtBQUtBLEdBUE0sQ0FBUDtBQVFBLENBVEQ7QUFXQUosMENBQUEsQ0FBYztBQUNiVyxFQUFBQSxLQUFLLEVBQUU7QUFDTixlQUFTLDBCQURIO0FBRU5DLElBQUFBLFFBQVEsRUFBRTtBQUZKLEdBRE07QUFLYlQsRUFBQUEsTUFBTSxFQUFFO0FBQ1BVLElBQUFBLElBQUksRUFBRSx1QkFEQztBQUVQQyxJQUFBQSxHQUFHLEVBQUU7QUFGRTtBQUxLLENBQWQ7QUFXQSxpR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IsImVycm9yTWVzc2FnZSIsInRlc3QiLCJ2YWx1ZSIsInBhdGgiLCJjcmVhdGVFcnJvciIsIm1lc3NhZ2UiLCJzZXRMb2NhbGUiLCJtaXhlZCIsInJlcXVpcmVkIiwidGltZSIsInVybCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/schema/yup.js\n"); - -/***/ }), - -/***/ "./resources/sass/app.scss": -/*!*********************************!*\ - !*** ./resources/sass/app.scss ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvc2Fzcy9hcHAuc2Nzcy5qcyIsIm1hcHBpbmdzIjoiO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvc2Fzcy9hcHAuc2Nzcz9hODBiIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IHt9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/sass/app.scss\n"); - -/***/ }), - -/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": -/*!***************************************************!*\ - !*** ./node_modules/moment/locale/ sync ^\.\/.*$ ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var map = { - "./af": "./node_modules/moment/locale/af.js", - "./af.js": "./node_modules/moment/locale/af.js", - "./ar": "./node_modules/moment/locale/ar.js", - "./ar-dz": "./node_modules/moment/locale/ar-dz.js", - "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", - "./ar-kw": "./node_modules/moment/locale/ar-kw.js", - "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", - "./ar-ly": "./node_modules/moment/locale/ar-ly.js", - "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", - "./ar-ma": "./node_modules/moment/locale/ar-ma.js", - "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", - "./ar-sa": "./node_modules/moment/locale/ar-sa.js", - "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", - "./ar-tn": "./node_modules/moment/locale/ar-tn.js", - "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", - "./ar.js": "./node_modules/moment/locale/ar.js", - "./az": "./node_modules/moment/locale/az.js", - "./az.js": "./node_modules/moment/locale/az.js", - "./be": "./node_modules/moment/locale/be.js", - "./be.js": "./node_modules/moment/locale/be.js", - "./bg": "./node_modules/moment/locale/bg.js", - "./bg.js": "./node_modules/moment/locale/bg.js", - "./bm": "./node_modules/moment/locale/bm.js", - "./bm.js": "./node_modules/moment/locale/bm.js", - "./bn": "./node_modules/moment/locale/bn.js", - "./bn-bd": "./node_modules/moment/locale/bn-bd.js", - "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js", - "./bn.js": "./node_modules/moment/locale/bn.js", - "./bo": "./node_modules/moment/locale/bo.js", - "./bo.js": "./node_modules/moment/locale/bo.js", - "./br": "./node_modules/moment/locale/br.js", - "./br.js": "./node_modules/moment/locale/br.js", - "./bs": "./node_modules/moment/locale/bs.js", - "./bs.js": "./node_modules/moment/locale/bs.js", - "./ca": "./node_modules/moment/locale/ca.js", - "./ca.js": "./node_modules/moment/locale/ca.js", - "./cs": "./node_modules/moment/locale/cs.js", - "./cs.js": "./node_modules/moment/locale/cs.js", - "./cv": "./node_modules/moment/locale/cv.js", - "./cv.js": "./node_modules/moment/locale/cv.js", - "./cy": "./node_modules/moment/locale/cy.js", - "./cy.js": "./node_modules/moment/locale/cy.js", - "./da": "./node_modules/moment/locale/da.js", - "./da.js": "./node_modules/moment/locale/da.js", - "./de": "./node_modules/moment/locale/de.js", - "./de-at": "./node_modules/moment/locale/de-at.js", - "./de-at.js": "./node_modules/moment/locale/de-at.js", - "./de-ch": "./node_modules/moment/locale/de-ch.js", - "./de-ch.js": "./node_modules/moment/locale/de-ch.js", - "./de.js": "./node_modules/moment/locale/de.js", - "./dv": "./node_modules/moment/locale/dv.js", - "./dv.js": "./node_modules/moment/locale/dv.js", - "./el": "./node_modules/moment/locale/el.js", - "./el.js": "./node_modules/moment/locale/el.js", - "./en-au": "./node_modules/moment/locale/en-au.js", - "./en-au.js": "./node_modules/moment/locale/en-au.js", - "./en-ca": "./node_modules/moment/locale/en-ca.js", - "./en-ca.js": "./node_modules/moment/locale/en-ca.js", - "./en-gb": "./node_modules/moment/locale/en-gb.js", - "./en-gb.js": "./node_modules/moment/locale/en-gb.js", - "./en-ie": "./node_modules/moment/locale/en-ie.js", - "./en-ie.js": "./node_modules/moment/locale/en-ie.js", - "./en-il": "./node_modules/moment/locale/en-il.js", - "./en-il.js": "./node_modules/moment/locale/en-il.js", - "./en-in": "./node_modules/moment/locale/en-in.js", - "./en-in.js": "./node_modules/moment/locale/en-in.js", - "./en-nz": "./node_modules/moment/locale/en-nz.js", - "./en-nz.js": "./node_modules/moment/locale/en-nz.js", - "./en-sg": "./node_modules/moment/locale/en-sg.js", - "./en-sg.js": "./node_modules/moment/locale/en-sg.js", - "./eo": "./node_modules/moment/locale/eo.js", - "./eo.js": "./node_modules/moment/locale/eo.js", - "./es": "./node_modules/moment/locale/es.js", - "./es-do": "./node_modules/moment/locale/es-do.js", - "./es-do.js": "./node_modules/moment/locale/es-do.js", - "./es-mx": "./node_modules/moment/locale/es-mx.js", - "./es-mx.js": "./node_modules/moment/locale/es-mx.js", - "./es-us": "./node_modules/moment/locale/es-us.js", - "./es-us.js": "./node_modules/moment/locale/es-us.js", - "./es.js": "./node_modules/moment/locale/es.js", - "./et": "./node_modules/moment/locale/et.js", - "./et.js": "./node_modules/moment/locale/et.js", - "./eu": "./node_modules/moment/locale/eu.js", - "./eu.js": "./node_modules/moment/locale/eu.js", - "./fa": "./node_modules/moment/locale/fa.js", - "./fa.js": "./node_modules/moment/locale/fa.js", - "./fi": "./node_modules/moment/locale/fi.js", - "./fi.js": "./node_modules/moment/locale/fi.js", - "./fil": "./node_modules/moment/locale/fil.js", - "./fil.js": "./node_modules/moment/locale/fil.js", - "./fo": "./node_modules/moment/locale/fo.js", - "./fo.js": "./node_modules/moment/locale/fo.js", - "./fr": "./node_modules/moment/locale/fr.js", - "./fr-ca": "./node_modules/moment/locale/fr-ca.js", - "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", - "./fr-ch": "./node_modules/moment/locale/fr-ch.js", - "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", - "./fr.js": "./node_modules/moment/locale/fr.js", - "./fy": "./node_modules/moment/locale/fy.js", - "./fy.js": "./node_modules/moment/locale/fy.js", - "./ga": "./node_modules/moment/locale/ga.js", - "./ga.js": "./node_modules/moment/locale/ga.js", - "./gd": "./node_modules/moment/locale/gd.js", - "./gd.js": "./node_modules/moment/locale/gd.js", - "./gl": "./node_modules/moment/locale/gl.js", - "./gl.js": "./node_modules/moment/locale/gl.js", - "./gom-deva": "./node_modules/moment/locale/gom-deva.js", - "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js", - "./gom-latn": "./node_modules/moment/locale/gom-latn.js", - "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", - "./gu": "./node_modules/moment/locale/gu.js", - "./gu.js": "./node_modules/moment/locale/gu.js", - "./he": "./node_modules/moment/locale/he.js", - "./he.js": "./node_modules/moment/locale/he.js", - "./hi": "./node_modules/moment/locale/hi.js", - "./hi.js": "./node_modules/moment/locale/hi.js", - "./hr": "./node_modules/moment/locale/hr.js", - "./hr.js": "./node_modules/moment/locale/hr.js", - "./hu": "./node_modules/moment/locale/hu.js", - "./hu.js": "./node_modules/moment/locale/hu.js", - "./hy-am": "./node_modules/moment/locale/hy-am.js", - "./hy-am.js": "./node_modules/moment/locale/hy-am.js", - "./id": "./node_modules/moment/locale/id.js", - "./id.js": "./node_modules/moment/locale/id.js", - "./is": "./node_modules/moment/locale/is.js", - "./is.js": "./node_modules/moment/locale/is.js", - "./it": "./node_modules/moment/locale/it.js", - "./it-ch": "./node_modules/moment/locale/it-ch.js", - "./it-ch.js": "./node_modules/moment/locale/it-ch.js", - "./it.js": "./node_modules/moment/locale/it.js", - "./ja": "./node_modules/moment/locale/ja.js", - "./ja.js": "./node_modules/moment/locale/ja.js", - "./jv": "./node_modules/moment/locale/jv.js", - "./jv.js": "./node_modules/moment/locale/jv.js", - "./ka": "./node_modules/moment/locale/ka.js", - "./ka.js": "./node_modules/moment/locale/ka.js", - "./kk": "./node_modules/moment/locale/kk.js", - "./kk.js": "./node_modules/moment/locale/kk.js", - "./km": "./node_modules/moment/locale/km.js", - "./km.js": "./node_modules/moment/locale/km.js", - "./kn": "./node_modules/moment/locale/kn.js", - "./kn.js": "./node_modules/moment/locale/kn.js", - "./ko": "./node_modules/moment/locale/ko.js", - "./ko.js": "./node_modules/moment/locale/ko.js", - "./ku": "./node_modules/moment/locale/ku.js", - "./ku.js": "./node_modules/moment/locale/ku.js", - "./ky": "./node_modules/moment/locale/ky.js", - "./ky.js": "./node_modules/moment/locale/ky.js", - "./lb": "./node_modules/moment/locale/lb.js", - "./lb.js": "./node_modules/moment/locale/lb.js", - "./lo": "./node_modules/moment/locale/lo.js", - "./lo.js": "./node_modules/moment/locale/lo.js", - "./lt": "./node_modules/moment/locale/lt.js", - "./lt.js": "./node_modules/moment/locale/lt.js", - "./lv": "./node_modules/moment/locale/lv.js", - "./lv.js": "./node_modules/moment/locale/lv.js", - "./me": "./node_modules/moment/locale/me.js", - "./me.js": "./node_modules/moment/locale/me.js", - "./mi": "./node_modules/moment/locale/mi.js", - "./mi.js": "./node_modules/moment/locale/mi.js", - "./mk": "./node_modules/moment/locale/mk.js", - "./mk.js": "./node_modules/moment/locale/mk.js", - "./ml": "./node_modules/moment/locale/ml.js", - "./ml.js": "./node_modules/moment/locale/ml.js", - "./mn": "./node_modules/moment/locale/mn.js", - "./mn.js": "./node_modules/moment/locale/mn.js", - "./mr": "./node_modules/moment/locale/mr.js", - "./mr.js": "./node_modules/moment/locale/mr.js", - "./ms": "./node_modules/moment/locale/ms.js", - "./ms-my": "./node_modules/moment/locale/ms-my.js", - "./ms-my.js": "./node_modules/moment/locale/ms-my.js", - "./ms.js": "./node_modules/moment/locale/ms.js", - "./mt": "./node_modules/moment/locale/mt.js", - "./mt.js": "./node_modules/moment/locale/mt.js", - "./my": "./node_modules/moment/locale/my.js", - "./my.js": "./node_modules/moment/locale/my.js", - "./nb": "./node_modules/moment/locale/nb.js", - "./nb.js": "./node_modules/moment/locale/nb.js", - "./ne": "./node_modules/moment/locale/ne.js", - "./ne.js": "./node_modules/moment/locale/ne.js", - "./nl": "./node_modules/moment/locale/nl.js", - "./nl-be": "./node_modules/moment/locale/nl-be.js", - "./nl-be.js": "./node_modules/moment/locale/nl-be.js", - "./nl.js": "./node_modules/moment/locale/nl.js", - "./nn": "./node_modules/moment/locale/nn.js", - "./nn.js": "./node_modules/moment/locale/nn.js", - "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js", - "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js", - "./pa-in": "./node_modules/moment/locale/pa-in.js", - "./pa-in.js": "./node_modules/moment/locale/pa-in.js", - "./pl": "./node_modules/moment/locale/pl.js", - "./pl.js": "./node_modules/moment/locale/pl.js", - "./pt": "./node_modules/moment/locale/pt.js", - "./pt-br": "./node_modules/moment/locale/pt-br.js", - "./pt-br.js": "./node_modules/moment/locale/pt-br.js", - "./pt.js": "./node_modules/moment/locale/pt.js", - "./ro": "./node_modules/moment/locale/ro.js", - "./ro.js": "./node_modules/moment/locale/ro.js", - "./ru": "./node_modules/moment/locale/ru.js", - "./ru.js": "./node_modules/moment/locale/ru.js", - "./sd": "./node_modules/moment/locale/sd.js", - "./sd.js": "./node_modules/moment/locale/sd.js", - "./se": "./node_modules/moment/locale/se.js", - "./se.js": "./node_modules/moment/locale/se.js", - "./si": "./node_modules/moment/locale/si.js", - "./si.js": "./node_modules/moment/locale/si.js", - "./sk": "./node_modules/moment/locale/sk.js", - "./sk.js": "./node_modules/moment/locale/sk.js", - "./sl": "./node_modules/moment/locale/sl.js", - "./sl.js": "./node_modules/moment/locale/sl.js", - "./sq": "./node_modules/moment/locale/sq.js", - "./sq.js": "./node_modules/moment/locale/sq.js", - "./sr": "./node_modules/moment/locale/sr.js", - "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", - "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", - "./sr.js": "./node_modules/moment/locale/sr.js", - "./ss": "./node_modules/moment/locale/ss.js", - "./ss.js": "./node_modules/moment/locale/ss.js", - "./sv": "./node_modules/moment/locale/sv.js", - "./sv.js": "./node_modules/moment/locale/sv.js", - "./sw": "./node_modules/moment/locale/sw.js", - "./sw.js": "./node_modules/moment/locale/sw.js", - "./ta": "./node_modules/moment/locale/ta.js", - "./ta.js": "./node_modules/moment/locale/ta.js", - "./te": "./node_modules/moment/locale/te.js", - "./te.js": "./node_modules/moment/locale/te.js", - "./tet": "./node_modules/moment/locale/tet.js", - "./tet.js": "./node_modules/moment/locale/tet.js", - "./tg": "./node_modules/moment/locale/tg.js", - "./tg.js": "./node_modules/moment/locale/tg.js", - "./th": "./node_modules/moment/locale/th.js", - "./th.js": "./node_modules/moment/locale/th.js", - "./tk": "./node_modules/moment/locale/tk.js", - "./tk.js": "./node_modules/moment/locale/tk.js", - "./tl-ph": "./node_modules/moment/locale/tl-ph.js", - "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", - "./tlh": "./node_modules/moment/locale/tlh.js", - "./tlh.js": "./node_modules/moment/locale/tlh.js", - "./tr": "./node_modules/moment/locale/tr.js", - "./tr.js": "./node_modules/moment/locale/tr.js", - "./tzl": "./node_modules/moment/locale/tzl.js", - "./tzl.js": "./node_modules/moment/locale/tzl.js", - "./tzm": "./node_modules/moment/locale/tzm.js", - "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", - "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", - "./tzm.js": "./node_modules/moment/locale/tzm.js", - "./ug-cn": "./node_modules/moment/locale/ug-cn.js", - "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", - "./uk": "./node_modules/moment/locale/uk.js", - "./uk.js": "./node_modules/moment/locale/uk.js", - "./ur": "./node_modules/moment/locale/ur.js", - "./ur.js": "./node_modules/moment/locale/ur.js", - "./uz": "./node_modules/moment/locale/uz.js", - "./uz-latn": "./node_modules/moment/locale/uz-latn.js", - "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", - "./uz.js": "./node_modules/moment/locale/uz.js", - "./vi": "./node_modules/moment/locale/vi.js", - "./vi.js": "./node_modules/moment/locale/vi.js", - "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", - "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", - "./yo": "./node_modules/moment/locale/yo.js", - "./yo.js": "./node_modules/moment/locale/yo.js", - "./zh-cn": "./node_modules/moment/locale/zh-cn.js", - "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", - "./zh-hk": "./node_modules/moment/locale/zh-hk.js", - "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", - "./zh-mo": "./node_modules/moment/locale/zh-mo.js", - "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js", - "./zh-tw": "./node_modules/moment/locale/zh-tw.js", - "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" -}; - - -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; - -/***/ }), - -/***/ "./node_modules/react-helmet/es/Helmet.js": -/*!************************************************!*\ - !*** ./node_modules/react-helmet/es/Helmet.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 */ \"Helmet\": () => (/* binding */ HelmetExport),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_side_effect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-side-effect */ \"./node_modules/react-side-effect/lib/index.js\");\n/* harmony import */ var react_side_effect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_side_effect__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ \"./node_modules/react-helmet/node_modules/react-fast-compare/index.js\");\n/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ \"./node_modules/object-assign/index.js\");\n/* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n\n\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\n\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\n\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\n\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\n\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\n\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\n\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\n\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (encode === false) {\n return String(str);\n }\n\n return String(str).replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\n\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\n\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n\n return innermostBaseTag;\n }, []);\n};\n\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n\n var value = tag[primaryAttributeKey].toLowerCase();\n\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n\n approvedSeenTags[attributeKey] = tagUnion;\n }\n\n return approvedTags;\n }, []).reverse();\n};\n\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n\n return null;\n};\n\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\n\nvar rafPolyfill = function () {\n var clock = Date.now();\n\n return function (callback) {\n var currentTime = Date.now();\n\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\n\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\n\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : __webpack_require__.g.requestAnimationFrame || rafPolyfill;\n\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : __webpack_require__.g.cancelAnimationFrame || cafPolyfill;\n\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\n\nvar _helmetCallback = null;\n\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\n\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n updateTitle(title, titleAttributes);\n\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n\n var addedTags = {};\n var removedTags = {};\n\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n\n\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n\n cb && cb();\n\n onChangeClientState(newState, addedTags, removedTags);\n};\n\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\n\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n\n if (!elementTag) {\n return;\n }\n\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\n\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\n\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\n\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\";\n};\n\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"\");\n }, \"\");\n};\n\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\n\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\n\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n\n return [react__WEBPACK_IMPORTED_MODULE_2__.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = { __html: content };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n\n return react__WEBPACK_IMPORTED_MODULE_2__.createElement(type, mappedTag);\n });\n};\n\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\n\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)\n };\n};\n\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, nextProps);\n };\n\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n\n return newFlattenedProps;\n };\n\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (true) {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.\");\n }\n\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``} ) Refer to our API for more information.\");\n }\n }\n\n return true;\n };\n\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n\n var arrayTypeChildren = {};\n\n react__WEBPACK_IMPORTED_MODULE_2__.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n\n _this2.warnOnInvalidChildren(child, nestedChildren);\n\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n\n var newProps = _extends({}, props);\n\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n\n return react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, newProps);\n };\n\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n\n\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \" console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(react__WEBPACK_IMPORTED_MODULE_2__.Component), _class.propTypes = {\n base: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),\n bodyAttributes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node)]),\n defaultTitle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n defer: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),\n encodeSpecialCharacters: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),\n htmlAttributes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),\n link: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),\n meta: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),\n noscript: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),\n onChangeClientState: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),\n script: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),\n title: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),\n titleAttributes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),\n titleTemplate: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string)\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n\n return mappedState;\n }, _temp;\n};\n\nvar NullComponent = function NullComponent() {\n return null;\n};\n\nvar HelmetSideEffects = react_side_effect__WEBPACK_IMPORTED_MODULE_0___default()(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\n\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HelmetExport);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvcmVhY3QtaGVsbWV0L2VzL0hlbG1ldC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFtQztBQUNZO0FBQ047QUFDZjtBQUNlOztBQUV6QztBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0EsQ0FBQzs7QUFFRDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxDQUFDLElBQUk7O0FBRUw7O0FBRUE7O0FBRUE7QUFDQTtBQUNBLEVBQUU7QUFDRjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLG9CQUFvQixrQkFBa0I7QUFDdEM7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLENBQUM7O0FBRUQ7QUFDQSxrQkFBa0Isc0JBQXNCO0FBQ3hDOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztB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XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3RWxlbWVudC5zdHlsZVNoZWV0LmNzc1RleHQgPSB0YWcuY3NzVGV4dDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3RWxlbWVudC5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZSh0YWcuY3NzVGV4dCkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHZhbHVlID0gdHlwZW9mIHRhZ1thdHRyaWJ1dGVdID09PSBcInVuZGVmaW5lZFwiID8gXCJcIiA6IHRhZ1thdHRyaWJ1dGVdO1xuICAgICAgICAgICAgICAgICAgICAgICAgbmV3RWxlbWVudC5zZXRBdHRyaWJ1dGUoYXR0cmlidXRlLCB2YWx1ZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG5ld0VsZW1lbnQuc2V0QXR0cmlidXRlKEhFTE1FVF9BVFRSSUJVVEUsIFwidHJ1ZVwiKTtcblxuICAgICAgICAgICAgLy8gUmVtb3ZlIGEgZHVwbGljYXRlIHRhZyBmcm9tIGRvbVRhZ3N0b1JlbW92ZSwgc28gaXQgaXNuJ3QgY2xlYXJlZC5cbiAgICAgICAgICAgIGlmIChvbGRUYWdzLnNvbWUoZnVuY3Rpb24gKGV4aXN0aW5nVGFnLCBpbmRleCkge1xuICAgICAgICAgICAgICAgIGluZGV4VG9EZWxldGUgPSBpbmRleDtcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3RWxlbWVudC5pc0VxdWFsTm9kZShleGlzdGluZ1RhZyk7XG4gICAgICAgICAgICB9KSkge1xuICAgICAgICAgICAgICAgIG9sZFRhZ3Muc3BsaWNlKGluZGV4VG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ge1xuICAgICAgICAgICAgICAgIG1hcHBlZFRhZ1ttYXBwZWRBdHRyaWJ1dGVdID0gdGFnW2F0dHJpYnV0ZV07XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KHR5cGUsIG1hcHBlZFRhZyk7XG4gICAgfSk7XG59O1xuXG52YXIgZ2V0TWV0aG9kc0ZvclRhZyA9IGZ1bmN0aW9uIGdldE1ldGhvZHNGb3JUYWcodHlwZSwgdGFncywgZW5jb2RlKSB7XG4gICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICAgIGNhc2UgVEFHX05BTUVTLlRJVExFOlxuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICB0b0NvbXBvbmVudDogZnVuY3Rpb24gdG9Db21wb25lbnQoKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBnZW5lcmF0ZVRpdGxlQXNSZWFjdENvbXBvbmVudCh0eXBlLCB0YWdzLnRpdGxlLCB0YWdzLnRpdGxlQXR0cmlidXRlcywgZW5jb2RlKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiB0b1N0cmluZygpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGdlbmVyYXRlVGl0bGVBc1N0cmluZyh0eXBlLCB0YWdzLnRpdGxlLCB0YWdzLnRpdGxlQXR0cmlidXRlcywgZW5jb2RlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuICAgICAgICBjYXNlIEFUVFJJQlVURV9OQU1FUy5CT0RZOlxuICAgICAgICBjYXNlIEFUVFJJQlVURV9OQU1FUy5IVE1MOlxuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICB0b0NvbXBvbmVudDogZnVuY3Rpb24gdG9Db21wb25lbnQoKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBjb252ZXJ0RWxlbWVudEF0dHJpYnV0ZXN0b1JlYWN0UHJvcHModGFncyk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gdG9TdHJpbmcoKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBnZW5lcmF0ZUVsZW1lbnRBdHRyaWJ1dGVzQXNTdHJpbmcodGFncyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfTtcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgdG9Db21wb25lbnQ6IGZ1bmN0aW9uIHRvQ29tcG9uZW50KCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZ2VuZXJhdGVUYWdzQXNSZWFjdENvbXBvbmVudCh0eXBlLCB0YWdzKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiB0b1N0cmluZygpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGdlbmVyYXRlVGFnc0FzU3RyaW5nKHR5cGUsIHRhZ3MsIGVuY29kZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfTtcbiAgICB9XG59O1xuXG52YXIgbWFwU3RhdGVPblNlcnZlciA9IGZ1bmN0aW9uIG1hcFN0YXRlT25TZXJ2ZXIoX3JlZikge1xuICAgIHZhciBiYXNlVGFnID0gX3JlZi5iYXNlVGFnLFxuICAgICAgICBib2R5QXR0cmlidXRlcyA9IF9yZWYuYm9keUF0dHJpYnV0ZXMsXG4gICAgICAgIGVuY29kZSA9IF9yZWYuZW5jb2RlLFxuICAgICAgICBodG1sQXR0cmlidXRlcyA9IF9yZWYuaHRtbEF0dHJpYnV0ZXMsXG4gICAgICAgIGxpbmtUYWdzID0gX3JlZi5saW5rVGFncyxcbiAgICAgICAgbWV0YVRhZ3MgPSBfcmVmLm1ld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ZW5Ub1Byb3BzKGNoaWxkLCBuZXN0ZWRDaGlsZHJlbikge1xuICAgICAgICAgICAgaWYgKCFuZXN0ZWRDaGlsZHJlbikge1xuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzd2l0Y2ggKGNoaWxkLnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIFRBR19OQU1FUy5TQ1JJUFQ6XG4gICAgICAgICAgICAgICAgY2FzZSBUQUdfTkFNRVMuTk9TQ1JJUFQ6XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbm5lckhUTUw6IG5lc3RlZENoaWxkcmVuXG4gICAgICAgICAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgICAgICBjYXNlIFRBR19OQU1FUy5TVFlMRTpcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNzc1RleHQ6IG5lc3RlZENoaWxkcmVuXG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIjxcIiArIGNoaWxkLnR5cGUgKyBcIiAvPiBlbGVtZW50cyBhcmUgc2VsZi1jbG9zaW5nIGFuZCBjYW4gbm90IGNvbnRhaW4gY2hpbGRyZW4uIFJlZmVyIHRvIG91ciBBUEkgZm9yIG1vcmUgaW5mb3JtYXRpb24uXCIpO1xuICAgICAgICB9O1xuXG4gICAgICAgIEhlbG1ldFdyYXBwZXIucHJvdG90eXBlLmZsYXR0ZW5BcnJheVR5cGVDaGlsZHJlbiA9IGZ1bmN0aW9uIGZsYXR0ZW5BcnJheVR5cGVDaGlsZHJlbihfcmVmKSB7XG4gICAgICAgICAgICB2YXIgX2JhYmVsSGVscGVycyRleHRlbmRzO1xuXG4gICAgICAgICAgICB2YXIgY2hpbGQgPSBfcmVmLmNoaWxkLFxu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bGQkcHJvcHMsIFtcImNoaWxkcmVuXCJdKTtcblxuICAgICAgICAgICAgICAgIHZhciBuZXdDaGlsZFByb3BzID0gY29udmVydFJlYWN0UHJvcHN0b0h0bWxBdHRyaWJ1dGVzKGNoaWxkUHJvcHMpO1xuXG4gICAgICAgICAgICAgICAgX3RoaXMyLndhcm5PbkludmFsaWRDaGlsZHJlbihjaGlsZCwgbmVzdGVkQ2hpbGRyZW4pO1xuXG4gICAgICAgICAgICAgICAgc3dpdGNoIChjaGlsZC50eXBlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgVEFHX05BTUVTLkxJTks6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgVEFHX05BTUVTLk1FVEE6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgVEFHX05BTUVTLk5PU0NSSVBUOlxuICAgICAgICAgICAgICAgICAgICBjYXNlIFRBR19OQU1FUy5TQ1JJUFQ6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgVEFHX05BTUVTLlNUWUxFOlxuICAgICAgICAgICAgICAgICAgICAgICAgYXJyYXlUeXBlQ2hpbGRyZW4gPSBfdGhpczIuZmxhdHRlbkFycmF5VHlwZUNoaWxkcmVuKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGlsZDogY2hpbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJyYXlUeXBlQ2hpbGRyZW46IGFycmF5VHlwZUNoaWxkcmVuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld0NoaWxkUHJvcHM6IG5ld0NoaWxkUHJvcHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmVzdGVkQ2hpbGRyZW46IG5lc3RlZENoaWxkcmVuXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgICAgICBuZXdQcm9wcyA9IF90aGlzMi5tYXBPYmplY3RUeXBlQ2hpbGRyZW4oe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNoaWxkOiBjaGlsZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXdQcm9wczogbmV3UHJvcHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3Q2hpbGRQcm9wczogbmV3Q2hpbGRQcm9wcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXN0ZWRDaGlsZHJlbjogbmVzdGVkQ2hpbGRyZW5cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIG5ld1Byb3BzID0gdGhpcy5tYXBBcnJheVR5cGVDaGlsZHJlblRvUHJvcHMoYXJyYXlUeXBlQ2hpbGRyZW4sIG5ld1Byb3BzKTtcbiAgICAgICAgICAgIHJldHVybiBuZXdQcm9wcztcbiAgICAgICAgfTtcblxuICAgICAgICBIZWxtZXRXcmFwcGVyLnByb3RvdHlwZS5yZW5kZXIgPSBmdW5jdGlvbiByZW5kZXIoKSB7XG4gICAgICAgICAgICB2YXIgX3Byb3BzID0gdGhpcy5wcm9wcyxcbiAgICAgICAgICAgICAgICBjaGlsZHJlbiA9IF9wcm9wcy5jaGlsZHJlbixcbiAgICAgICAgICAgICAgICBwcm9wcyA9IG9iamVjdFdpdGhvdXRQcm9wZXJ0aWVzKF9wcm9wcywgW1wiY2hpbGRyZW5cIl0pO1xuXG4gICAgICAgICAgICB2YXIgbmV3UHJvcHMgPSBfZXh0ZW5kcyh7fSwgcHJvcHMpO1xuXG4gICAgICAgICAgICBpZiAoY2hpbGRyZW4pIHtcbiAgICAgICAgICAgICAgICBuZXdQcm9wcyA9IHRoaXMubWFwQ2hpbGRyZW5Ub1Byb3BzKGNoaWxkcmVuLCBuZXdQcm9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gICAgICBub3NjcmlwdFRhZ3M6IFtdLFxuICAgICAgICAgICAgICAgIHNjcmlwdFRhZ3M6IFtdLFxuICAgICAgICAgICAgICAgIHN0eWxlVGFnczogW10sXG4gICAgICAgICAgICAgICAgdGl0bGU6IFwiXCIsXG4gICAgICAgICAgICAgICAgdGl0bGVBdHRyaWJ1dGVzOiB7fVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbWFwcGVkU3RhdGU7XG4gICAgfSwgX3RlbXA7XG59O1xuXG52YXIgTnVsbENvbXBvbmVudCA9IGZ1bmN0aW9uIE51bGxDb21wb25lbnQoKSB7XG4gICAgcmV0dXJuIG51bGw7XG59O1xuXG52YXIgSGVsbWV0U2lkZUVmZmVjdHMgPSB3aXRoU2lkZUVmZmVjdChyZWR1Y2VQcm9wc1RvU3RhdGUsIGhhbmRsZUNsaWVudFN0YXRlQ2hhbmdlLCBtYXBTdGF0ZU9uU2VydmVyKShOdWxsQ29tcG9uZW50KTtcblxudmFyIEhlbG1ldEV4cG9ydCA9IEhlbG1ldChIZWxtZXRTaWRlRWZmZWN0cyk7XG5IZWxtZXRFeHBvcnQucmVuZGVyU3RhdGljID0gSGVsbWV0RXhwb3J0LnJld2luZDtcblxuZXhwb3J0IGRlZmF1bHQgSGVsbWV0RXhwb3J0O1xuZXhwb3J0IHsgSGVsbWV0RXhwb3J0IGFzIEhlbG1ldCB9O1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/react-helmet/es/Helmet.js\n"); - -/***/ }), - -/***/ "./node_modules/react-side-effect/lib/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/react-side-effect/lib/index.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar React = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\nvar React__default = _interopDefault(React);\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n\n if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {\n throw new Error('Expected mapStateOnServer to either be undefined or a function.');\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n\n if (SideEffect.canUseDOM) {\n handleStateChangeOnClient(state);\n } else if (mapStateOnServer) {\n state = mapStateOnServer(state);\n }\n }\n\n var SideEffect =\n /*#__PURE__*/\n function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n // Expose canUseDOM so tests can monkeypatch it\n SideEffect.peek = function peek() {\n return state;\n };\n\n SideEffect.rewind = function rewind() {\n if (SideEffect.canUseDOM) {\n throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');\n }\n\n var recordedState = state;\n state = undefined;\n mountedInstances = [];\n return recordedState;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return React__default.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(React.PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n _defineProperty(SideEffect, \"canUseDOM\", canUseDOM);\n\n return SideEffect;\n };\n}\n\nmodule.exports = withSideEffect;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvcmVhY3Qtc2lkZS1lZmZlY3QvbGliL2luZGV4LmpzLmpzIiwibWFwcGluZ3MiOiJBQUFhOztBQUViLGdDQUFnQzs7QUFFaEMsWUFBWSxtQkFBTyxDQUFDLDRDQUFPO0FBQzNCOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMLElBQUk7QUFDSjtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsT0FBTzs7QUFFUDtBQUNBO0FBQ0EsUUFBUTtBQUNSO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0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In0=\n//# sourceURL=webpack-internal:///./node_modules/react-side-effect/lib/index.js\n"); - -/***/ }), - -/***/ "?2128": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (() => { - -/* (ignored) */ - -/***/ }), - -/***/ "./node_modules/@codemirror/autocomplete/dist/index.js": -/*!*************************************************************!*\ - !*** ./node_modules/@codemirror/autocomplete/dist/index.js ***! - \*************************************************************/ -/***/ ((__unused_webpack___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 */ \"CompletionContext\": () => (/* binding */ CompletionContext),\n/* harmony export */ \"acceptCompletion\": () => (/* binding */ acceptCompletion),\n/* harmony export */ \"autocompletion\": () => (/* binding */ autocompletion),\n/* harmony export */ \"clearSnippet\": () => (/* binding */ clearSnippet),\n/* harmony export */ \"closeBrackets\": () => (/* binding */ closeBrackets),\n/* harmony export */ \"closeBracketsKeymap\": () => (/* binding */ closeBracketsKeymap),\n/* harmony export */ \"closeCompletion\": () => (/* binding */ closeCompletion),\n/* harmony export */ \"completeAnyWord\": () => (/* binding */ completeAnyWord),\n/* harmony export */ \"completeFromList\": () => (/* binding */ completeFromList),\n/* harmony export */ \"completionKeymap\": () => (/* binding */ completionKeymap),\n/* harmony export */ \"completionStatus\": () => (/* binding */ completionStatus),\n/* harmony export */ \"currentCompletions\": () => (/* binding */ currentCompletions),\n/* harmony export */ \"deleteBracketPair\": () => (/* binding */ deleteBracketPair),\n/* harmony export */ \"hasNextSnippetField\": () => (/* binding */ hasNextSnippetField),\n/* harmony export */ \"hasPrevSnippetField\": () => (/* binding */ hasPrevSnippetField),\n/* harmony export */ \"ifIn\": () => (/* binding */ ifIn),\n/* harmony export */ \"ifNotIn\": () => (/* binding */ ifNotIn),\n/* harmony export */ \"insertBracket\": () => (/* binding */ insertBracket),\n/* harmony export */ \"insertCompletionText\": () => (/* binding */ insertCompletionText),\n/* harmony export */ \"moveCompletionSelection\": () => (/* binding */ moveCompletionSelection),\n/* harmony export */ \"nextSnippetField\": () => (/* binding */ nextSnippetField),\n/* harmony export */ \"pickedCompletion\": () => (/* binding */ pickedCompletion),\n/* harmony export */ \"prevSnippetField\": () => (/* binding */ prevSnippetField),\n/* harmony export */ \"selectedCompletion\": () => (/* binding */ selectedCompletion),\n/* harmony export */ \"selectedCompletionIndex\": () => (/* binding */ selectedCompletionIndex),\n/* harmony export */ \"setSelectedCompletion\": () => (/* binding */ setSelectedCompletion),\n/* harmony export */ \"snippet\": () => (/* binding */ snippet),\n/* harmony export */ \"snippetCompletion\": () => (/* binding */ snippetCompletion),\n/* harmony export */ \"snippetKeymap\": () => (/* binding */ snippetKeymap),\n/* harmony export */ \"startCompletion\": () => (/* binding */ startCompletion)\n/* harmony export */ });\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n\n\n\n\n/**\nAn instance of this is passed to completion source functions.\n*/\nclass CompletionContext {\n /**\n Create a new completion context. (Mostly useful for testing\n completion sources—in the editor, the extension will create\n these for you.)\n */\n constructor(\n /**\n The editor state that the completion happens in.\n */\n state, \n /**\n The position at which the completion is happening.\n */\n pos, \n /**\n Indicates whether completion was activated explicitly, or\n implicitly by typing. The usual way to respond to this is to\n only return completions when either there is part of a\n completable entity before the cursor, or `explicit` is true.\n */\n explicit) {\n this.state = state;\n this.pos = pos;\n this.explicit = explicit;\n /**\n @internal\n */\n this.abortListeners = [];\n }\n /**\n Get the extent, content, and (if there is a token) type of the\n token before `this.pos`.\n */\n tokenBefore(types) {\n let token = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(this.state).resolveInner(this.pos, -1);\n while (token && types.indexOf(token.name) < 0)\n token = token.parent;\n return token ? { from: token.from, to: this.pos,\n text: this.state.sliceDoc(token.from, this.pos),\n type: token.type } : null;\n }\n /**\n Get the match of the given expression directly before the\n cursor.\n */\n matchBefore(expr) {\n let line = this.state.doc.lineAt(this.pos);\n let start = Math.max(line.from, this.pos - 250);\n let str = line.text.slice(start - line.from, this.pos - line.from);\n let found = str.search(ensureAnchor(expr, false));\n return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };\n }\n /**\n Yields true when the query has been aborted. Can be useful in\n asynchronous queries to avoid doing work that will be ignored.\n */\n get aborted() { return this.abortListeners == null; }\n /**\n Allows you to register abort handlers, which will be called when\n the query is\n [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).\n */\n addEventListener(type, listener) {\n if (type == \"abort\" && this.abortListeners)\n this.abortListeners.push(listener);\n }\n}\nfunction toSet(chars) {\n let flat = Object.keys(chars).join(\"\");\n let words = /\\w/.test(flat);\n if (words)\n flat = flat.replace(/\\w/g, \"\");\n return `[${words ? \"\\\\w\" : \"\"}${flat.replace(/[^\\w\\s]/g, \"\\\\$&\")}]`;\n}\nfunction prefixMatch(options) {\n let first = Object.create(null), rest = Object.create(null);\n for (let { label } of options) {\n first[label[0]] = true;\n for (let i = 1; i < label.length; i++)\n rest[label[i]] = true;\n }\n let source = toSet(first) + toSet(rest) + \"*$\";\n return [new RegExp(\"^\" + source), new RegExp(source)];\n}\n/**\nGiven a a fixed array of options, return an autocompleter that\ncompletes them.\n*/\nfunction completeFromList(list) {\n let options = list.map(o => typeof o == \"string\" ? { label: o } : o);\n let [validFor, match] = options.every(o => /^\\w+$/.test(o.label)) ? [/\\w*$/, /\\w+$/] : prefixMatch(options);\n return (context) => {\n let token = context.matchBefore(match);\n return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;\n };\n}\n/**\nWrap the given completion source so that it will only fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifIn(nodes, source) {\n return (context) => {\n for (let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return source(context);\n if (pos.type.isTop)\n break;\n }\n return null;\n };\n}\n/**\nWrap the given completion source so that it will not fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifNotIn(nodes, source) {\n return (context) => {\n for (let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return null;\n if (pos.type.isTop)\n break;\n }\n return source(context);\n };\n}\nclass Option {\n constructor(completion, source, match, score) {\n this.completion = completion;\n this.source = source;\n this.match = match;\n this.score = score;\n }\n}\nfunction cur(state) { return state.selection.main.from; }\n// Make sure the given regexp has a $ at its end and, if `start` is\n// true, a ^ at its start.\nfunction ensureAnchor(expr, start) {\n var _a;\n let { source } = expr;\n let addStart = start && source[0] != \"^\", addEnd = source[source.length - 1] != \"$\";\n if (!addStart && !addEnd)\n return expr;\n return new RegExp(`${addStart ? \"^\" : \"\"}(?:${source})${addEnd ? \"$\" : \"\"}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? \"i\" : \"\"));\n}\n/**\nThis annotation is added to transactions that are produced by\npicking a completion.\n*/\nconst pickedCompletion = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nHelper function that returns a transaction spec which inserts a\ncompletion's text in the main selection range, and any other\nselection range that has the same text in front of it.\n*/\nfunction insertCompletionText(state, text, from, to) {\n let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;\n return Object.assign(Object.assign({}, state.changeByRange(range => {\n if (range != main && from != to &&\n state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))\n return { range };\n return {\n changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: text },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.from + fromOff + text.length)\n };\n })), { userEvent: \"input.complete\" });\n}\nconst SourceCache = /*@__PURE__*/new WeakMap();\nfunction asSource(source) {\n if (!Array.isArray(source))\n return source;\n let known = SourceCache.get(source);\n if (!known)\n SourceCache.set(source, known = completeFromList(source));\n return known;\n}\nconst startCompletionEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst closeCompletionEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\n\n// A pattern matcher for fuzzy completion matching. Create an instance\n// once for a pattern, and then use that to match any number of\n// completions.\nclass FuzzyMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.chars = [];\n this.folded = [];\n // Buffers reused by calls to `match` to track matched character\n // positions.\n this.any = [];\n this.precise = [];\n this.byWord = [];\n this.score = 0;\n this.matched = [];\n for (let p = 0; p < pattern.length;) {\n let char = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(pattern, p), size = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(char);\n this.chars.push(char);\n let part = pattern.slice(p, p + size), upper = part.toUpperCase();\n this.folded.push((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(upper == part ? part.toLowerCase() : upper, 0));\n p += size;\n }\n this.astral = pattern.length != this.chars.length;\n }\n ret(score, matched) {\n this.score = score;\n this.matched = matched;\n return true;\n }\n // Matches a given word (completion) against the pattern (input).\n // Will return a boolean indicating whether there was a match and,\n // on success, set `this.score` to the score, `this.matched` to an\n // array of `from, to` pairs indicating the matched parts of `word`.\n //\n // The score is a number that is more negative the worse the match\n // is. See `Penalty` above.\n match(word) {\n if (this.pattern.length == 0)\n return this.ret(-100 /* NotFull */, []);\n if (word.length < this.pattern.length)\n return false;\n let { chars, folded, any, precise, byWord } = this;\n // For single-character queries, only match when they occur right\n // at the start\n if (chars.length == 1) {\n let first = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, 0), firstSize = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(first);\n let score = firstSize == word.length ? 0 : -100 /* NotFull */;\n if (first == chars[0]) ;\n else if (first == folded[0])\n score += -200 /* CaseFold */;\n else\n return false;\n return this.ret(score, [0, firstSize]);\n }\n let direct = word.indexOf(this.pattern);\n if (direct == 0)\n return this.ret(word.length == this.pattern.length ? 0 : -100 /* NotFull */, [0, this.pattern.length]);\n let len = chars.length, anyTo = 0;\n if (direct < 0) {\n for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, i);\n if (next == chars[anyTo] || next == folded[anyTo])\n any[anyTo++] = i;\n i += (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(next);\n }\n // No match, exit immediately\n if (anyTo < len)\n return false;\n }\n // This tracks the extent of the precise (non-folded, not\n // necessarily adjacent) match\n let preciseTo = 0;\n // Tracks whether there is a match that hits only characters that\n // appear to be starting words. `byWordFolded` is set to true when\n // a case folded character is encountered in such a match\n let byWordTo = 0, byWordFolded = false;\n // If we've found a partial adjacent match, these track its state\n let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;\n let hasLower = /[a-z]/.test(word), wordAdjacent = true;\n // Go over the option's text, scanning for the various kinds of matches\n for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* NonWord */; i < e && byWordTo < len;) {\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, i);\n if (direct < 0) {\n if (preciseTo < len && next == chars[preciseTo])\n precise[preciseTo++] = i;\n if (adjacentTo < len) {\n if (next == chars[adjacentTo] || next == folded[adjacentTo]) {\n if (adjacentTo == 0)\n adjacentStart = i;\n adjacentEnd = i + 1;\n adjacentTo++;\n }\n else {\n adjacentTo = 0;\n }\n }\n }\n let ch, type = next < 0xff\n ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Lower */ : next >= 65 && next <= 90 ? 1 /* Upper */ : 0 /* NonWord */)\n : ((ch = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.fromCodePoint)(next)) != ch.toLowerCase() ? 1 /* Upper */ : ch != ch.toUpperCase() ? 2 /* Lower */ : 0 /* NonWord */);\n if (!i || type == 1 /* Upper */ && hasLower || prevType == 0 /* NonWord */ && type != 0 /* NonWord */) {\n if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))\n byWord[byWordTo++] = i;\n else if (byWord.length)\n wordAdjacent = false;\n }\n prevType = type;\n i += (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(next);\n }\n if (byWordTo == len && byWord[0] == 0 && wordAdjacent)\n return this.result(-100 /* ByWord */ + (byWordFolded ? -200 /* CaseFold */ : 0), byWord, word);\n if (adjacentTo == len && adjacentStart == 0)\n return this.ret(-200 /* CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* NotFull */), [0, adjacentEnd]);\n if (direct > -1)\n return this.ret(-700 /* NotStart */ - word.length, [direct, direct + this.pattern.length]);\n if (adjacentTo == len)\n return this.ret(-200 /* CaseFold */ + -700 /* NotStart */ - word.length, [adjacentStart, adjacentEnd]);\n if (byWordTo == len)\n return this.result(-100 /* ByWord */ + (byWordFolded ? -200 /* CaseFold */ : 0) + -700 /* NotStart */ +\n (wordAdjacent ? 0 : -1100 /* Gap */), byWord, word);\n return chars.length == 2 ? false\n : this.result((any[0] ? -700 /* NotStart */ : 0) + -200 /* CaseFold */ + -1100 /* Gap */, any, word);\n }\n result(score, positions, word) {\n let result = [], i = 0;\n for (let pos of positions) {\n let to = pos + (this.astral ? (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, pos)) : 1);\n if (i && result[i - 1] == pos)\n result[i - 1] = to;\n else {\n result[i++] = pos;\n result[i++] = to;\n }\n }\n return this.ret(score - word.length, result);\n }\n}\n\nconst completionConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(configs, {\n activateOnTyping: true,\n selectOnOpen: true,\n override: null,\n closeOnBlur: true,\n maxRenderedOptions: 100,\n defaultKeymap: true,\n tooltipClass: () => \"\",\n optionClass: () => \"\",\n aboveCursor: false,\n icons: true,\n addToOptions: [],\n positionInfo: defaultPositionInfo,\n compareCompletions: (a, b) => a.label.localeCompare(b.label),\n interactionDelay: 75\n }, {\n defaultKeymap: (a, b) => a && b,\n closeOnBlur: (a, b) => a && b,\n icons: (a, b) => a && b,\n tooltipClass: (a, b) => c => joinClass(a(c), b(c)),\n optionClass: (a, b) => c => joinClass(a(c), b(c)),\n addToOptions: (a, b) => a.concat(b)\n });\n }\n});\nfunction joinClass(a, b) {\n return a ? b ? a + \" \" + b : a : b;\n}\nfunction defaultPositionInfo(view, list, option, info, space) {\n let rtl = view.textDirection == _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Direction.RTL, left = rtl, narrow = false;\n let side = \"top\", offset, maxWidth;\n let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;\n let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;\n if (left && spaceLeft < Math.min(infoWidth, spaceRight))\n left = false;\n else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))\n left = true;\n if (infoWidth <= (left ? spaceLeft : spaceRight)) {\n offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;\n maxWidth = Math.min(400 /* Width */, left ? spaceLeft : spaceRight);\n }\n else {\n narrow = true;\n maxWidth = Math.min(400 /* Width */, (rtl ? list.right : space.right - list.left) - 30 /* Margin */);\n let spaceBelow = space.bottom - list.bottom;\n if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion\n offset = option.bottom - list.top;\n }\n else { // Above it\n side = \"bottom\";\n offset = list.bottom - option.top;\n }\n }\n return {\n style: `${side}: ${offset}px; max-width: ${maxWidth}px`,\n class: \"cm-completionInfo-\" + (narrow ? (rtl ? \"left-narrow\" : \"right-narrow\") : left ? \"left\" : \"right\")\n };\n}\n\nfunction optionContent(config) {\n let content = config.addToOptions.slice();\n if (config.icons)\n content.push({\n render(completion) {\n let icon = document.createElement(\"div\");\n icon.classList.add(\"cm-completionIcon\");\n if (completion.type)\n icon.classList.add(...completion.type.split(/\\s+/g).map(cls => \"cm-completionIcon-\" + cls));\n icon.setAttribute(\"aria-hidden\", \"true\");\n return icon;\n },\n position: 20\n });\n content.push({\n render(completion, _s, match) {\n let labelElt = document.createElement(\"span\");\n labelElt.className = \"cm-completionLabel\";\n let label = completion.displayLabel || completion.label, off = 0;\n for (let j = 0; j < match.length;) {\n let from = match[j++], to = match[j++];\n if (from > off)\n labelElt.appendChild(document.createTextNode(label.slice(off, from)));\n let span = labelElt.appendChild(document.createElement(\"span\"));\n span.appendChild(document.createTextNode(label.slice(from, to)));\n span.className = \"cm-completionMatchedText\";\n off = to;\n }\n if (off < label.length)\n labelElt.appendChild(document.createTextNode(label.slice(off)));\n return labelElt;\n },\n position: 50\n }, {\n render(completion) {\n if (!completion.detail)\n return null;\n let detailElt = document.createElement(\"span\");\n detailElt.className = \"cm-completionDetail\";\n detailElt.textContent = completion.detail;\n return detailElt;\n },\n position: 80\n });\n return content.sort((a, b) => a.position - b.position).map(a => a.render);\n}\nfunction rangeAroundSelected(total, selected, max) {\n if (total <= max)\n return { from: 0, to: total };\n if (selected < 0)\n selected = 0;\n if (selected <= (total >> 1)) {\n let off = Math.floor(selected / max);\n return { from: off * max, to: (off + 1) * max };\n }\n let off = Math.floor((total - selected) / max);\n return { from: total - (off + 1) * max, to: total - off * max };\n}\nclass CompletionTooltip {\n constructor(view, stateField, applyCompletion) {\n this.view = view;\n this.stateField = stateField;\n this.applyCompletion = applyCompletion;\n this.info = null;\n this.infoDestroy = null;\n this.placeInfoReq = {\n read: () => this.measureInfo(),\n write: (pos) => this.placeInfo(pos),\n key: this\n };\n this.space = null;\n this.currentClass = \"\";\n let cState = view.state.field(stateField);\n let { options, selected } = cState.open;\n let config = view.state.facet(completionConfig);\n this.optionContent = optionContent(config);\n this.optionClass = config.optionClass;\n this.tooltipClass = config.tooltipClass;\n this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-tooltip-autocomplete\";\n this.updateTooltipClass(view.state);\n this.dom.addEventListener(\"mousedown\", (e) => {\n for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {\n if (dom.nodeName == \"LI\" && (match = /-(\\d+)$/.exec(dom.id)) && +match[1] < options.length) {\n this.applyCompletion(view, options[+match[1]]);\n e.preventDefault();\n return;\n }\n }\n });\n this.dom.addEventListener(\"focusout\", (e) => {\n let state = view.state.field(this.stateField, false);\n if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&\n e.relatedTarget != view.contentDOM)\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n });\n this.list = this.dom.appendChild(this.createListBox(options, cState.id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n mount() { this.updateSel(); }\n update(update) {\n var _a, _b, _c;\n let cState = update.state.field(this.stateField);\n let prevState = update.startState.field(this.stateField);\n this.updateTooltipClass(update.state);\n if (cState != prevState) {\n this.updateSel();\n if (((_a = cState.open) === null || _a === void 0 ? void 0 : _a.disabled) != ((_b = prevState.open) === null || _b === void 0 ? void 0 : _b.disabled))\n this.dom.classList.toggle(\"cm-tooltip-autocomplete-disabled\", !!((_c = cState.open) === null || _c === void 0 ? void 0 : _c.disabled));\n }\n }\n updateTooltipClass(state) {\n let cls = this.tooltipClass(state);\n if (cls != this.currentClass) {\n for (let c of this.currentClass.split(\" \"))\n if (c)\n this.dom.classList.remove(c);\n for (let c of cls.split(\" \"))\n if (c)\n this.dom.classList.add(c);\n this.currentClass = cls;\n }\n }\n positioned(space) {\n this.space = space;\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSel() {\n let cState = this.view.state.field(this.stateField), open = cState.open;\n if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {\n this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);\n this.list.remove();\n this.list = this.dom.appendChild(this.createListBox(open.options, cState.id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n if (this.updateSelectedOption(open.selected)) {\n this.destroyInfo();\n let { completion } = open.options[open.selected];\n let { info } = completion;\n if (!info)\n return;\n let infoResult = typeof info === \"string\" ? document.createTextNode(info) : info(completion);\n if (!infoResult)\n return;\n if (\"then\" in infoResult) {\n infoResult.then(obj => {\n if (obj && this.view.state.field(this.stateField, false) == cState)\n this.addInfoPane(obj, completion);\n }).catch(e => (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, e, \"completion info\"));\n }\n else {\n this.addInfoPane(infoResult, completion);\n }\n }\n }\n addInfoPane(content, completion) {\n this.destroyInfo();\n let wrap = this.info = document.createElement(\"div\");\n wrap.className = \"cm-tooltip cm-completionInfo\";\n if (content.nodeType != null) {\n wrap.appendChild(content);\n this.infoDestroy = null;\n }\n else {\n let { dom, destroy } = content;\n wrap.appendChild(dom);\n this.infoDestroy = destroy || null;\n }\n this.dom.appendChild(wrap);\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSelectedOption(selected) {\n let set = null;\n for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {\n if (opt.nodeName != \"LI\" || !opt.id) {\n i--; // A section header\n }\n else if (i == selected) {\n if (!opt.hasAttribute(\"aria-selected\")) {\n opt.setAttribute(\"aria-selected\", \"true\");\n set = opt;\n }\n }\n else {\n if (opt.hasAttribute(\"aria-selected\"))\n opt.removeAttribute(\"aria-selected\");\n }\n }\n if (set)\n scrollIntoView(this.list, set);\n return set;\n }\n measureInfo() {\n let sel = this.dom.querySelector(\"[aria-selected]\");\n if (!sel || !this.info)\n return null;\n let listRect = this.dom.getBoundingClientRect();\n let infoRect = this.info.getBoundingClientRect();\n let selRect = sel.getBoundingClientRect();\n let space = this.space;\n if (!space) {\n let win = this.dom.ownerDocument.defaultView || window;\n space = { left: 0, top: 0, right: win.innerWidth, bottom: win.innerHeight };\n }\n if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||\n selRect.bottom < Math.max(space.top, listRect.top) + 10)\n return null;\n return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space);\n }\n placeInfo(pos) {\n if (this.info) {\n if (pos) {\n if (pos.style)\n this.info.style.cssText = pos.style;\n this.info.className = \"cm-tooltip cm-completionInfo \" + (pos.class || \"\");\n }\n else {\n this.info.style.cssText = \"top: -1e6px\";\n }\n }\n }\n createListBox(options, id, range) {\n const ul = document.createElement(\"ul\");\n ul.id = id;\n ul.setAttribute(\"role\", \"listbox\");\n ul.setAttribute(\"aria-expanded\", \"true\");\n ul.setAttribute(\"aria-label\", this.view.state.phrase(\"Completions\"));\n let curSection = null;\n for (let i = range.from; i < range.to; i++) {\n let { completion, match } = options[i], { section } = completion;\n if (section) {\n let name = typeof section == \"string\" ? section : section.name;\n if (name != curSection && (i > range.from || range.from == 0)) {\n curSection = name;\n if (typeof section != \"string\" && section.header) {\n ul.appendChild(section.header(section));\n }\n else {\n let header = ul.appendChild(document.createElement(\"completion-section\"));\n header.textContent = name;\n }\n }\n }\n const li = ul.appendChild(document.createElement(\"li\"));\n li.id = id + \"-\" + i;\n li.setAttribute(\"role\", \"option\");\n let cls = this.optionClass(completion);\n if (cls)\n li.className = cls;\n for (let source of this.optionContent) {\n let node = source(completion, this.view.state, match);\n if (node)\n li.appendChild(node);\n }\n }\n if (range.from)\n ul.classList.add(\"cm-completionListIncompleteTop\");\n if (range.to < options.length)\n ul.classList.add(\"cm-completionListIncompleteBottom\");\n return ul;\n }\n destroyInfo() {\n if (this.info) {\n if (this.infoDestroy)\n this.infoDestroy();\n this.info.remove();\n this.info = null;\n }\n }\n destroy() {\n this.destroyInfo();\n }\n}\n// We allocate a new function instance every time the completion\n// changes to force redrawing/repositioning of the tooltip\nfunction completionTooltip(stateField, applyCompletion) {\n return (view) => new CompletionTooltip(view, stateField, applyCompletion);\n}\nfunction scrollIntoView(container, element) {\n let parent = container.getBoundingClientRect();\n let self = element.getBoundingClientRect();\n if (self.top < parent.top)\n container.scrollTop -= parent.top - self.top;\n else if (self.bottom > parent.bottom)\n container.scrollTop += self.bottom - parent.bottom;\n}\n\n// Used to pick a preferred option when two options with the same\n// label occur in the result.\nfunction score(option) {\n return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +\n (option.type ? 1 : 0);\n}\nfunction sortOptions(active, state) {\n let options = [];\n let sections = null;\n let addOption = (option) => {\n options.push(option);\n let { section } = option.completion;\n if (section) {\n if (!sections)\n sections = [];\n let name = typeof section == \"string\" ? section : section.name;\n if (!sections.some(s => s.name == name))\n sections.push(typeof section == \"string\" ? { name } : section);\n }\n };\n for (let a of active)\n if (a.hasResult()) {\n let getMatch = a.result.getMatch;\n if (a.result.filter === false) {\n for (let option of a.result.options) {\n addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));\n }\n }\n else {\n let matcher = new FuzzyMatcher(state.sliceDoc(a.from, a.to));\n for (let option of a.result.options)\n if (matcher.match(option.label)) {\n let matched = !option.displayLabel ? matcher.matched : getMatch ? getMatch(option, matcher.matched) : [];\n addOption(new Option(option, a.source, matched, matcher.score + (option.boost || 0)));\n }\n }\n }\n if (sections) {\n let sectionOrder = Object.create(null), pos = 0;\n let cmp = (a, b) => { var _a, _b; return ((_a = a.rank) !== null && _a !== void 0 ? _a : 1e9) - ((_b = b.rank) !== null && _b !== void 0 ? _b : 1e9) || (a.name < b.name ? -1 : 1); };\n for (let s of sections.sort(cmp)) {\n pos -= 1e5;\n sectionOrder[s.name] = pos;\n }\n for (let option of options) {\n let { section } = option.completion;\n if (section)\n option.score += sectionOrder[typeof section == \"string\" ? section : section.name];\n }\n }\n let result = [], prev = null;\n let compare = state.facet(completionConfig).compareCompletions;\n for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {\n let cur = opt.completion;\n if (!prev || prev.label != cur.label || prev.detail != cur.detail ||\n (prev.type != null && cur.type != null && prev.type != cur.type) ||\n prev.apply != cur.apply || prev.boost != cur.boost)\n result.push(opt);\n else if (score(opt.completion) > score(prev))\n result[result.length - 1] = opt;\n prev = opt.completion;\n }\n return result;\n}\nclass CompletionDialog {\n constructor(options, attrs, tooltip, timestamp, selected, disabled) {\n this.options = options;\n this.attrs = attrs;\n this.tooltip = tooltip;\n this.timestamp = timestamp;\n this.selected = selected;\n this.disabled = disabled;\n }\n setSelected(selected, id) {\n return selected == this.selected || selected >= this.options.length ? this\n : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);\n }\n static build(active, state, id, prev, conf) {\n let options = sortOptions(active, state);\n if (!options.length) {\n return prev && active.some(a => a.state == 1 /* Pending */) ?\n new CompletionDialog(prev.options, prev.attrs, prev.tooltip, prev.timestamp, prev.selected, true) : null;\n }\n let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;\n if (prev && prev.selected != selected && prev.selected != -1) {\n let selectedValue = prev.options[prev.selected].completion;\n for (let i = 0; i < options.length; i++)\n if (options[i].completion == selectedValue) {\n selected = i;\n break;\n }\n }\n return new CompletionDialog(options, makeAttrs(id, selected), {\n pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),\n create: completionTooltip(completionState, applyCompletion),\n above: conf.aboveCursor,\n }, prev ? prev.timestamp : Date.now(), selected, false);\n }\n map(changes) {\n return new CompletionDialog(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: changes.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);\n }\n}\nclass CompletionState {\n constructor(active, id, open) {\n this.active = active;\n this.id = id;\n this.open = open;\n }\n static start() {\n return new CompletionState(none, \"cm-ac-\" + Math.floor(Math.random() * 2e6).toString(36), null);\n }\n update(tr) {\n let { state } = tr, conf = state.facet(completionConfig);\n let sources = conf.override ||\n state.languageDataAt(\"autocomplete\", cur(state)).map(asSource);\n let active = sources.map(source => {\n let value = this.active.find(s => s.source == source) ||\n new ActiveSource(source, this.active.some(a => a.state != 0 /* Inactive */) ? 1 /* Pending */ : 0 /* Inactive */);\n return value.update(tr, conf);\n });\n if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))\n active = this.active;\n let open = this.open;\n if (open && tr.docChanged)\n open = open.map(tr.changes);\n if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||\n !sameResults(active, this.active))\n open = CompletionDialog.build(active, state, this.id, open, conf);\n else if (open && open.disabled && !active.some(a => a.state == 1 /* Pending */))\n open = null;\n if (!open && active.every(a => a.state != 1 /* Pending */) && active.some(a => a.hasResult()))\n active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* Inactive */) : a);\n for (let effect of tr.effects)\n if (effect.is(setSelectedEffect))\n open = open && open.setSelected(effect.value, this.id);\n return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);\n }\n get tooltip() { return this.open ? this.open.tooltip : null; }\n get attrs() { return this.open ? this.open.attrs : baseAttrs; }\n}\nfunction sameResults(a, b) {\n if (a == b)\n return true;\n for (let iA = 0, iB = 0;;) {\n while (iA < a.length && !a[iA].hasResult)\n iA++;\n while (iB < b.length && !b[iB].hasResult)\n iB++;\n let endA = iA == a.length, endB = iB == b.length;\n if (endA || endB)\n return endA == endB;\n if (a[iA++].result != b[iB++].result)\n return false;\n }\n}\nconst baseAttrs = {\n \"aria-autocomplete\": \"list\"\n};\nfunction makeAttrs(id, selected) {\n let result = {\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": id\n };\n if (selected > -1)\n result[\"aria-activedescendant\"] = id + \"-\" + selected;\n return result;\n}\nconst none = [];\nfunction getUserEvent(tr) {\n return tr.isUserEvent(\"input.type\") ? \"input\" : tr.isUserEvent(\"delete.backward\") ? \"delete\" : null;\n}\nclass ActiveSource {\n constructor(source, state, explicitPos = -1) {\n this.source = source;\n this.state = state;\n this.explicitPos = explicitPos;\n }\n hasResult() { return false; }\n update(tr, conf) {\n let event = getUserEvent(tr), value = this;\n if (event)\n value = value.handleUserEvent(tr, event, conf);\n else if (tr.docChanged)\n value = value.handleChange(tr);\n else if (tr.selection && value.state != 0 /* Inactive */)\n value = new ActiveSource(value.source, 0 /* Inactive */);\n for (let effect of tr.effects) {\n if (effect.is(startCompletionEffect))\n value = new ActiveSource(value.source, 1 /* Pending */, effect.value ? cur(tr.state) : -1);\n else if (effect.is(closeCompletionEffect))\n value = new ActiveSource(value.source, 0 /* Inactive */);\n else if (effect.is(setActiveEffect))\n for (let active of effect.value)\n if (active.source == value.source)\n value = active;\n }\n return value;\n }\n handleUserEvent(tr, type, conf) {\n return type == \"delete\" || !conf.activateOnTyping ? this.map(tr.changes) : new ActiveSource(this.source, 1 /* Pending */);\n }\n handleChange(tr) {\n return tr.changes.touchesRange(cur(tr.startState)) ? new ActiveSource(this.source, 0 /* Inactive */) : this.map(tr.changes);\n }\n map(changes) {\n return changes.empty || this.explicitPos < 0 ? this : new ActiveSource(this.source, this.state, changes.mapPos(this.explicitPos));\n }\n}\nclass ActiveResult extends ActiveSource {\n constructor(source, explicitPos, result, from, to) {\n super(source, 2 /* Result */, explicitPos);\n this.result = result;\n this.from = from;\n this.to = to;\n }\n hasResult() { return true; }\n handleUserEvent(tr, type, conf) {\n var _a;\n let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);\n let pos = cur(tr.state);\n if ((this.explicitPos < 0 ? pos <= from : pos < this.from) ||\n pos > to ||\n type == \"delete\" && cur(tr.startState) == this.from)\n return new ActiveSource(this.source, type == \"input\" && conf.activateOnTyping ? 1 /* Pending */ : 0 /* Inactive */);\n let explicitPos = this.explicitPos < 0 ? -1 : tr.changes.mapPos(this.explicitPos), updated;\n if (checkValid(this.result.validFor, tr.state, from, to))\n return new ActiveResult(this.source, explicitPos, this.result, from, to);\n if (this.result.update &&\n (updated = this.result.update(this.result, from, to, new CompletionContext(tr.state, pos, explicitPos >= 0))))\n return new ActiveResult(this.source, explicitPos, updated, updated.from, (_a = updated.to) !== null && _a !== void 0 ? _a : cur(tr.state));\n return new ActiveSource(this.source, 1 /* Pending */, explicitPos);\n }\n handleChange(tr) {\n return tr.changes.touchesRange(this.from, this.to) ? new ActiveSource(this.source, 0 /* Inactive */) : this.map(tr.changes);\n }\n map(mapping) {\n return mapping.empty ? this :\n new ActiveResult(this.source, this.explicitPos < 0 ? -1 : mapping.mapPos(this.explicitPos), this.result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));\n }\n}\nfunction checkValid(validFor, state, from, to) {\n if (!validFor)\n return false;\n let text = state.sliceDoc(from, to);\n return typeof validFor == \"function\" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);\n}\nconst setActiveEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(sources, mapping) { return sources.map(s => s.map(mapping)); }\n});\nconst setSelectedEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst completionState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return CompletionState.start(); },\n update(value, tr) { return value.update(tr); },\n provide: f => [\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.showTooltip.from(f, val => val.tooltip),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.contentAttributes.from(f, state => state.attrs)\n ]\n});\nfunction applyCompletion(view, option) {\n const apply = option.completion.apply || option.completion.label;\n let result = view.state.field(completionState).active.find(a => a.source == option.source);\n if (!(result instanceof ActiveResult))\n return false;\n if (typeof apply == \"string\")\n view.dispatch(Object.assign(Object.assign({}, insertCompletionText(view.state, apply, result.from, result.to)), { annotations: pickedCompletion.of(option.completion) }));\n else\n apply(view, option.completion, result.from, result.to);\n return true;\n}\n\n/**\nReturns a command that moves the completion selection forward or\nbackward by the given amount.\n*/\nfunction moveCompletionSelection(forward, by = \"option\") {\n return (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.open || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n let step = 1, tooltip;\n if (by == \"page\" && (tooltip = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.getTooltip)(view, cState.open.tooltip)))\n step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /\n tooltip.dom.querySelector(\"li\").offsetHeight) - 1);\n let { length } = cState.open.options;\n let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;\n if (selected < 0)\n selected = by == \"page\" ? 0 : length - 1;\n else if (selected >= length)\n selected = by == \"page\" ? length - 1 : 0;\n view.dispatch({ effects: setSelectedEffect.of(selected) });\n return true;\n };\n}\n/**\nAccept the current completion.\n*/\nconst acceptCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n return applyCompletion(view, cState.open.options[cState.open.selected]);\n};\n/**\nExplicitly start autocompletion.\n*/\nconst startCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState)\n return false;\n view.dispatch({ effects: startCompletionEffect.of(true) });\n return true;\n};\n/**\nClose the currently active completion.\n*/\nconst closeCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.active.some(a => a.state != 0 /* Inactive */))\n return false;\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n return true;\n};\nclass RunningQuery {\n constructor(active, context) {\n this.active = active;\n this.context = context;\n this.time = Date.now();\n this.updates = [];\n // Note that 'undefined' means 'not done yet', whereas 'null' means\n // 'query returned null'.\n this.done = undefined;\n }\n}\nconst DebounceTime = 50, MaxUpdateCount = 50, MinAbortTime = 1000;\nconst completionPlugin = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.debounceUpdate = -1;\n this.running = [];\n this.debounceAccept = -1;\n this.composing = 0 /* None */;\n for (let active of view.state.field(completionState).active)\n if (active.state == 1 /* Pending */)\n this.startQuery(active);\n }\n update(update) {\n let cState = update.state.field(completionState);\n if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)\n return;\n let doesReset = update.transactions.some(tr => {\n return (tr.selection || tr.docChanged) && !getUserEvent(tr);\n });\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (doesReset ||\n query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {\n for (let handler of query.context.abortListeners) {\n try {\n handler();\n }\n catch (e) {\n (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, e);\n }\n }\n query.context.abortListeners = null;\n this.running.splice(i--, 1);\n }\n else {\n query.updates.push(...update.transactions);\n }\n }\n if (this.debounceUpdate > -1)\n clearTimeout(this.debounceUpdate);\n this.debounceUpdate = cState.active.some(a => a.state == 1 /* Pending */ && !this.running.some(q => q.active.source == a.source))\n ? setTimeout(() => this.startUpdate(), DebounceTime) : -1;\n if (this.composing != 0 /* None */)\n for (let tr of update.transactions) {\n if (getUserEvent(tr) == \"input\")\n this.composing = 2 /* Changed */;\n else if (this.composing == 2 /* Changed */ && tr.selection)\n this.composing = 3 /* ChangedAndMoved */;\n }\n }\n startUpdate() {\n this.debounceUpdate = -1;\n let { state } = this.view, cState = state.field(completionState);\n for (let active of cState.active) {\n if (active.state == 1 /* Pending */ && !this.running.some(r => r.active.source == active.source))\n this.startQuery(active);\n }\n }\n startQuery(active) {\n let { state } = this.view, pos = cur(state);\n let context = new CompletionContext(state, pos, active.explicitPos == pos);\n let pending = new RunningQuery(active, context);\n this.running.push(pending);\n Promise.resolve(active.source(context)).then(result => {\n if (!pending.context.aborted) {\n pending.done = result || null;\n this.scheduleAccept();\n }\n }, err => {\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, err);\n });\n }\n scheduleAccept() {\n if (this.running.every(q => q.done !== undefined))\n this.accept();\n else if (this.debounceAccept < 0)\n this.debounceAccept = setTimeout(() => this.accept(), DebounceTime);\n }\n // For each finished query in this.running, try to create a result\n // or, if appropriate, restart the query.\n accept() {\n var _a;\n if (this.debounceAccept > -1)\n clearTimeout(this.debounceAccept);\n this.debounceAccept = -1;\n let updated = [];\n let conf = this.view.state.facet(completionConfig);\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (query.done === undefined)\n continue;\n this.running.splice(i--, 1);\n if (query.done) {\n let active = new ActiveResult(query.active.source, query.active.explicitPos, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : cur(query.updates.length ? query.updates[0].startState : this.view.state));\n // Replay the transactions that happened since the start of\n // the request and see if that preserves the result\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.hasResult()) {\n updated.push(active);\n continue;\n }\n }\n let current = this.view.state.field(completionState).active.find(a => a.source == query.active.source);\n if (current && current.state == 1 /* Pending */) {\n if (query.done == null) {\n // Explicitly failed. Should clear the pending status if it\n // hasn't been re-set in the meantime.\n let active = new ActiveSource(query.active.source, 0 /* Inactive */);\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.state != 1 /* Pending */)\n updated.push(active);\n }\n else {\n // Cleared by subsequent transactions. Restart.\n this.startQuery(current);\n }\n }\n }\n if (updated.length)\n this.view.dispatch({ effects: setActiveEffect.of(updated) });\n }\n}, {\n eventHandlers: {\n blur(event) {\n let state = this.view.state.field(completionState, false);\n if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {\n let dialog = state.open && (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.getTooltip)(this.view, state.open.tooltip);\n if (!dialog || !dialog.dom.contains(event.relatedTarget))\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n }\n },\n compositionstart() {\n this.composing = 1 /* Started */;\n },\n compositionend() {\n if (this.composing == 3 /* ChangedAndMoved */) {\n // Safari fires compositionend events synchronously, possibly\n // from inside an update, so dispatch asynchronously to avoid reentrancy\n setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);\n }\n this.composing = 0 /* None */;\n }\n }\n});\n\nconst baseTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.baseTheme({\n \".cm-tooltip.cm-tooltip-autocomplete\": {\n \"& > ul\": {\n fontFamily: \"monospace\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden auto\",\n maxWidth_fallback: \"700px\",\n maxWidth: \"min(700px, 95vw)\",\n minWidth: \"250px\",\n maxHeight: \"10em\",\n height: \"100%\",\n listStyle: \"none\",\n margin: 0,\n padding: 0,\n \"& > li, & > completion-section\": {\n padding: \"1px 3px\",\n lineHeight: 1.2\n },\n \"& > li\": {\n overflowX: \"hidden\",\n textOverflow: \"ellipsis\",\n cursor: \"pointer\"\n },\n \"& > completion-section\": {\n display: \"list-item\",\n borderBottom: \"1px solid silver\",\n paddingLeft: \"0.5em\",\n opacity: 0.7\n }\n }\n },\n \"&light .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#17c\",\n color: \"white\",\n },\n \"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#777\",\n },\n \"&dark .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#347\",\n color: \"white\",\n },\n \"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#444\",\n },\n \".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after\": {\n content: '\"···\"',\n opacity: 0.5,\n display: \"block\",\n textAlign: \"center\"\n },\n \".cm-tooltip.cm-completionInfo\": {\n position: \"absolute\",\n padding: \"3px 9px\",\n width: \"max-content\",\n maxWidth: `${400 /* Width */}px`,\n boxSizing: \"border-box\"\n },\n \".cm-completionInfo.cm-completionInfo-left\": { right: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-right\": { left: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-left-narrow\": { right: `${30 /* Margin */}px` },\n \".cm-completionInfo.cm-completionInfo-right-narrow\": { left: `${30 /* Margin */}px` },\n \"&light .cm-snippetField\": { backgroundColor: \"#00000022\" },\n \"&dark .cm-snippetField\": { backgroundColor: \"#ffffff22\" },\n \".cm-snippetFieldPosition\": {\n verticalAlign: \"text-top\",\n width: 0,\n height: \"1.15em\",\n display: \"inline-block\",\n margin: \"0 -0.7px -.7em\",\n borderLeft: \"1.4px dotted #888\"\n },\n \".cm-completionMatchedText\": {\n textDecoration: \"underline\"\n },\n \".cm-completionDetail\": {\n marginLeft: \"0.5em\",\n fontStyle: \"italic\"\n },\n \".cm-completionIcon\": {\n fontSize: \"90%\",\n width: \".8em\",\n display: \"inline-block\",\n textAlign: \"center\",\n paddingRight: \".6em\",\n opacity: \"0.6\",\n boxSizing: \"content-box\"\n },\n \".cm-completionIcon-function, .cm-completionIcon-method\": {\n \"&:after\": { content: \"'ƒ'\" }\n },\n \".cm-completionIcon-class\": {\n \"&:after\": { content: \"'○'\" }\n },\n \".cm-completionIcon-interface\": {\n \"&:after\": { content: \"'◌'\" }\n },\n \".cm-completionIcon-variable\": {\n \"&:after\": { content: \"'𝑥'\" }\n },\n \".cm-completionIcon-constant\": {\n \"&:after\": { content: \"'𝐶'\" }\n },\n \".cm-completionIcon-type\": {\n \"&:after\": { content: \"'𝑡'\" }\n },\n \".cm-completionIcon-enum\": {\n \"&:after\": { content: \"'∪'\" }\n },\n \".cm-completionIcon-property\": {\n \"&:after\": { content: \"'□'\" }\n },\n \".cm-completionIcon-keyword\": {\n \"&:after\": { content: \"'🔑\\uFE0E'\" } // Disable emoji rendering\n },\n \".cm-completionIcon-namespace\": {\n \"&:after\": { content: \"'▢'\" }\n },\n \".cm-completionIcon-text\": {\n \"&:after\": { content: \"'abc'\", fontSize: \"50%\", verticalAlign: \"middle\" }\n }\n});\n\nclass FieldPos {\n constructor(field, line, from, to) {\n this.field = field;\n this.line = line;\n this.from = from;\n this.to = to;\n }\n}\nclass FieldRange {\n constructor(field, from, to) {\n this.field = field;\n this.from = from;\n this.to = to;\n }\n map(changes) {\n let from = changes.mapPos(this.from, -1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackDel);\n let to = changes.mapPos(this.to, 1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackDel);\n return from == null || to == null ? null : new FieldRange(this.field, from, to);\n }\n}\nclass Snippet {\n constructor(lines, fieldPositions) {\n this.lines = lines;\n this.fieldPositions = fieldPositions;\n }\n instantiate(state, pos) {\n let text = [], lineStart = [pos];\n let lineObj = state.doc.lineAt(pos), baseIndent = /^\\s*/.exec(lineObj.text)[0];\n for (let line of this.lines) {\n if (text.length) {\n let indent = baseIndent, tabs = /^\\t*/.exec(line)[0].length;\n for (let i = 0; i < tabs; i++)\n indent += state.facet(_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.indentUnit);\n lineStart.push(pos + indent.length - tabs);\n line = indent + line.slice(tabs);\n }\n text.push(line);\n pos += line.length + 1;\n }\n let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));\n return { text, ranges };\n }\n static parse(template) {\n let fields = [];\n let lines = [], positions = [], m;\n for (let line of template.split(/\\r\\n?|\\n/)) {\n while (m = /[#$]\\{(?:(\\d+)(?::([^}]*))?|([^}]*))\\}/.exec(line)) {\n let seq = m[1] ? +m[1] : null, name = m[2] || m[3] || \"\", found = -1;\n for (let i = 0; i < fields.length; i++) {\n if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)\n found = i;\n }\n if (found < 0) {\n let i = 0;\n while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))\n i++;\n fields.splice(i, 0, { seq, name });\n found = i;\n for (let pos of positions)\n if (pos.field >= found)\n pos.field++;\n }\n positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));\n line = line.slice(0, m.index) + name + line.slice(m.index + m[0].length);\n }\n for (let esc; esc = /\\\\([{}])/.exec(line);) {\n line = line.slice(0, esc.index) + esc[1] + line.slice(esc.index + esc[0].length);\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > esc.index) {\n pos.from--;\n pos.to--;\n }\n }\n lines.push(line);\n }\n return new Snippet(lines, positions);\n }\n}\nlet fieldMarker = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.widget({ widget: /*@__PURE__*/new class extends _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.WidgetType {\n toDOM() {\n let span = document.createElement(\"span\");\n span.className = \"cm-snippetFieldPosition\";\n return span;\n }\n ignoreEvent() { return false; }\n } });\nlet fieldRange = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.mark({ class: \"cm-snippetField\" });\nclass ActiveSnippet {\n constructor(ranges, active) {\n this.ranges = ranges;\n this.active = active;\n this.deco = _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)));\n }\n map(changes) {\n let ranges = [];\n for (let r of this.ranges) {\n let mapped = r.map(changes);\n if (!mapped)\n return null;\n ranges.push(mapped);\n }\n return new ActiveSnippet(ranges, this.active);\n }\n selectionInsideField(sel) {\n return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));\n }\n}\nconst setActive = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(value, changes) { return value && value.map(changes); }\n});\nconst moveToField = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst snippetState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return null; },\n update(value, tr) {\n for (let effect of tr.effects) {\n if (effect.is(setActive))\n return effect.value;\n if (effect.is(moveToField) && value)\n return new ActiveSnippet(value.ranges, effect.value);\n }\n if (value && tr.docChanged)\n value = value.map(tr.changes);\n if (value && tr.selection && !value.selectionInsideField(tr.selection))\n value = null;\n return value;\n },\n provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.decorations.from(f, val => val ? val.deco : _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.none)\n});\nfunction fieldSelection(ranges, field) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges.filter(r => r.field == field).map(r => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(r.from, r.to)));\n}\n/**\nConvert a snippet template to a function that can\n[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written\nusing syntax like this:\n\n \"for (let ${index} = 0; ${index} < ${end}; ${index}++) {\\n\\t${}\\n}\"\n\nEach `${}` placeholder (you may also use `#{}`) indicates a field\nthat the user can fill in. Its name, if any, will be the default\ncontent for the field.\n\nWhen the snippet is activated by calling the returned function,\nthe code is inserted at the given position. Newlines in the\ntemplate are indented by the indentation of the start line, plus\none [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after\nthe newline.\n\nOn activation, (all instances of) the first field are selected.\nThe user can move between fields with Tab and Shift-Tab as long as\nthe fields are active. Moving to the last field or moving the\ncursor out of the current field deactivates the fields.\n\nThe order of fields defaults to textual order, but you can add\nnumbers to placeholders (`${1}` or `${1:defaultText}`) to provide\na custom order.\n\nTo include a literal `{` or `}` in your template, put a backslash\nin front of it. This will be removed and the brace will not be\ninterpreted as indicating a placeholder.\n*/\nfunction snippet(template) {\n let snippet = Snippet.parse(template);\n return (editor, completion, from, to) => {\n let { text, ranges } = snippet.instantiate(editor.state, from);\n let spec = {\n changes: { from, to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of(text) },\n scrollIntoView: true,\n annotations: completion ? pickedCompletion.of(completion) : undefined\n };\n if (ranges.length)\n spec.selection = fieldSelection(ranges, 0);\n if (ranges.length > 1) {\n let active = new ActiveSnippet(ranges, 0);\n let effects = spec.effects = [setActive.of(active)];\n if (editor.state.field(snippetState, false) === undefined)\n effects.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme]));\n }\n editor.dispatch(editor.state.update(spec));\n };\n}\nfunction moveField(dir) {\n return ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active || dir < 0 && active.active == 0)\n return false;\n let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);\n dispatch(state.update({\n selection: fieldSelection(active.ranges, next),\n effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next))\n }));\n return true;\n };\n}\n/**\nA command that clears the active snippet, if any.\n*/\nconst clearSnippet = ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active)\n return false;\n dispatch(state.update({ effects: setActive.of(null) }));\n return true;\n};\n/**\nMove to the next snippet field, if available.\n*/\nconst nextSnippetField = /*@__PURE__*/moveField(1);\n/**\nMove to the previous snippet field, if available.\n*/\nconst prevSnippetField = /*@__PURE__*/moveField(-1);\n/**\nCheck if there is an active snippet with a next field for\n`nextSnippetField` to move to.\n*/\nfunction hasNextSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.ranges.some(r => r.field == active.active + 1));\n}\n/**\nReturns true if there is an active snippet and a previous field\nfor `prevSnippetField` to move to.\n*/\nfunction hasPrevSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.active > 0);\n}\nconst defaultSnippetKeymap = [\n { key: \"Tab\", run: nextSnippetField, shift: prevSnippetField },\n { key: \"Escape\", run: clearSnippet }\n];\n/**\nA facet that can be used to configure the key bindings used by\nsnippets. The default binds Tab to\n[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to\n[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape\nto [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).\n*/\nconst snippetKeymap = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }\n});\nconst addSnippetKeymap = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.highest(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));\n/**\nCreate a completion from a snippet. Returns an object with the\nproperties from `completion`, plus an `apply` function that\napplies the snippet.\n*/\nfunction snippetCompletion(template, completion) {\n return Object.assign(Object.assign({}, completion), { apply: snippet(template) });\n}\nconst snippetPointerHandler = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.domEventHandlers({\n mousedown(event, view) {\n let active = view.state.field(snippetState, false), pos;\n if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)\n return false;\n let match = active.ranges.find(r => r.from <= pos && r.to >= pos);\n if (!match || match.field == active.active)\n return false;\n view.dispatch({\n selection: fieldSelection(active.ranges, match.field),\n effects: setActive.of(active.ranges.some(r => r.field > match.field) ? new ActiveSnippet(active.ranges, match.field) : null)\n });\n return true;\n }\n});\n\nfunction wordRE(wordChars) {\n let escaped = wordChars.replace(/[\\\\[.+*?(){|^$]/g, \"\\\\$&\");\n try {\n return new RegExp(`[\\\\p{Alphabetic}\\\\p{Number}_${escaped}]+`, \"ug\");\n }\n catch (_a) {\n return new RegExp(`[\\w${escaped}]`, \"g\");\n }\n}\nfunction mapRE(re, f) {\n return new RegExp(f(re.source), re.unicode ? \"u\" : \"\");\n}\nconst wordCaches = /*@__PURE__*/Object.create(null);\nfunction wordCache(wordChars) {\n return wordCaches[wordChars] || (wordCaches[wordChars] = new WeakMap);\n}\nfunction storeWords(doc, wordRE, result, seen, ignoreAt) {\n for (let lines = doc.iterLines(), pos = 0; !lines.next().done;) {\n let { value } = lines, m;\n wordRE.lastIndex = 0;\n while (m = wordRE.exec(value)) {\n if (!seen[m[0]] && pos + m.index != ignoreAt) {\n result.push({ type: \"text\", label: m[0] });\n seen[m[0]] = true;\n if (result.length >= 2000 /* MaxList */)\n return;\n }\n }\n pos += value.length + 1;\n }\n}\nfunction collectWords(doc, cache, wordRE, to, ignoreAt) {\n let big = doc.length >= 1000 /* MinCacheLen */;\n let cached = big && cache.get(doc);\n if (cached)\n return cached;\n let result = [], seen = Object.create(null);\n if (doc.children) {\n let pos = 0;\n for (let ch of doc.children) {\n if (ch.length >= 1000 /* MinCacheLen */) {\n for (let c of collectWords(ch, cache, wordRE, to - pos, ignoreAt - pos)) {\n if (!seen[c.label]) {\n seen[c.label] = true;\n result.push(c);\n }\n }\n }\n else {\n storeWords(ch, wordRE, result, seen, ignoreAt - pos);\n }\n pos += ch.length + 1;\n }\n }\n else {\n storeWords(doc, wordRE, result, seen, ignoreAt);\n }\n if (big && result.length < 2000 /* MaxList */)\n cache.set(doc, result);\n return result;\n}\n/**\nA completion source that will scan the document for words (using a\n[character categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer)), and\nreturn those as completions.\n*/\nconst completeAnyWord = context => {\n let wordChars = context.state.languageDataAt(\"wordChars\", context.pos).join(\"\");\n let re = wordRE(wordChars);\n let token = context.matchBefore(mapRE(re, s => s + \"$\"));\n if (!token && !context.explicit)\n return null;\n let from = token ? token.from : context.pos;\n let options = collectWords(context.state.doc, wordCache(wordChars), re, 50000 /* Range */, from);\n return { from, options, validFor: mapRE(re, s => \"^\" + s) };\n};\n\nconst defaults = {\n brackets: [\"(\", \"[\", \"{\", \"'\", '\"'],\n before: \")]}:;>\",\n stringPrefixes: []\n};\nconst closeBracketEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(value, mapping) {\n let mapped = mapping.mapPos(value, -1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackAfter);\n return mapped == null ? undefined : mapped;\n }\n});\nconst closedBracket = /*@__PURE__*/new class extends _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeValue {\n};\nclosedBracket.startSide = 1;\nclosedBracket.endSide = -1;\nconst bracketState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeSet.empty; },\n update(value, tr) {\n if (tr.selection) {\n let lineStart = tr.state.doc.lineAt(tr.selection.main.head).from;\n let prevLineStart = tr.startState.doc.lineAt(tr.startState.selection.main.head).from;\n if (lineStart != tr.changes.mapPos(prevLineStart, -1))\n value = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeSet.empty;\n }\n value = value.map(tr.changes);\n for (let effect of tr.effects)\n if (effect.is(closeBracketEffect))\n value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });\n return value;\n }\n});\n/**\nExtension to enable bracket-closing behavior. When a closeable\nbracket is typed, its closing bracket is immediately inserted\nafter the cursor. When closing a bracket directly in front of a\nclosing bracket inserted by the extension, the cursor moves over\nthat bracket.\n*/\nfunction closeBrackets() {\n return [inputHandler, bracketState];\n}\nconst definedClosing = \"()[]{}<>\";\nfunction closing(ch) {\n for (let i = 0; i < definedClosing.length; i += 2)\n if (definedClosing.charCodeAt(i) == ch)\n return definedClosing.charAt(i + 1);\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.fromCodePoint)(ch < 128 ? ch : ch + 1);\n}\nfunction config(state, pos) {\n return state.languageDataAt(\"closeBrackets\", pos)[0] || defaults;\n}\nconst android = typeof navigator == \"object\" && /*@__PURE__*//Android\\b/.test(navigator.userAgent);\nconst inputHandler = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.inputHandler.of((view, from, to, insert) => {\n if ((android ? view.composing : view.compositionStarted) || view.state.readOnly)\n return false;\n let sel = view.state.selection.main;\n if (insert.length > 2 || insert.length == 2 && (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(insert, 0)) == 1 ||\n from != sel.from || to != sel.to)\n return false;\n let tr = insertBracket(view.state, insert);\n if (!tr)\n return false;\n view.dispatch(tr);\n return true;\n});\n/**\nCommand that implements deleting a pair of matching brackets when\nthe cursor is between them.\n*/\nconst deleteBracketPair = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty) {\n let before = prevChar(state.doc, range.head);\n for (let token of tokens) {\n if (token == before && nextChar(state.doc, range.head) == closing((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(token, 0)))\n return { changes: { from: range.head - token.length, to: range.head + token.length },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head - token.length) };\n }\n }\n return { range: dont = range };\n });\n if (!dont)\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete.backward\" }));\n return !dont;\n};\n/**\nClose-brackets related key bindings. Binds Backspace to\n[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).\n*/\nconst closeBracketsKeymap = [\n { key: \"Backspace\", run: deleteBracketPair }\n];\n/**\nImplements the extension's behavior on text insertion. If the\ngiven string counts as a bracket in the language around the\nselection, and replacing the selection with it requires custom\nbehavior (inserting a closing version or skipping past a\npreviously-closed bracket), this function returns a transaction\nrepresenting that custom behavior. (You only need this if you want\nto programmatically insert brackets—the\n[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will\ntake care of running this for user input.)\n*/\nfunction insertBracket(state, bracket) {\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n for (let tok of tokens) {\n let closed = closing((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(tok, 0));\n if (bracket == tok)\n return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)\n : handleOpen(state, tok, closed, conf.before || defaults.before);\n if (bracket == closed && closedBracketAt(state, state.selection.main.from))\n return handleClose(state, tok, closed);\n }\n return null;\n}\nfunction closedBracketAt(state, pos) {\n let found = false;\n state.field(bracketState).between(0, state.doc.length, from => {\n if (from == pos)\n found = true;\n });\n return found;\n}\nfunction nextChar(doc, pos) {\n let next = doc.sliceString(pos, pos + 2);\n return next.slice(0, (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(next, 0)));\n}\nfunction prevChar(doc, pos) {\n let prev = doc.sliceString(pos - 2, pos);\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(prev, 0)) == prev.length ? prev : prev.slice(1);\n}\nfunction handleOpen(state, open, close, closeBefore) {\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],\n effects: closeBracketEffect.of(range.to + open.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor + open.length, range.head + open.length) };\n let next = nextChar(state.doc, range.head);\n if (!next || /\\s/.test(next) || closeBefore.indexOf(next) > -1)\n return { changes: { insert: open + close, from: range.head },\n effects: closeBracketEffect.of(range.head + open.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head + open.length) };\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction handleClose(state, _open, close) {\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty && nextChar(state.doc, range.head) == close)\n return { changes: { from: range.head, to: range.head + close.length, insert: close },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head + close.length) };\n return dont = { range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\n// Handles cases where the open and close token are the same, and\n// possibly triple quotes (as in `\"\"\"abc\"\"\"`-style quoting).\nfunction handleSame(state, token, allowTriple, config) {\n let stringPrefixes = config.stringPrefixes || defaults.stringPrefixes;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],\n effects: closeBracketEffect.of(range.to + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor + token.length, range.head + token.length) };\n let pos = range.head, next = nextChar(state.doc, pos), start;\n if (next == token) {\n if (nodeStart(state, pos)) {\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n else if (closedBracketAt(state, pos)) {\n let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;\n let content = isTriple ? token + token + token : token;\n return { changes: { from: pos, to: pos + content.length, insert: content },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + content.length) };\n }\n }\n else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&\n (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&\n nodeStart(state, start)) {\n return { changes: { insert: token + token + token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n else if (state.charCategorizer(pos)(next) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) {\n if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction nodeStart(state, pos) {\n let tree = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(state).resolveInner(pos + 1);\n return tree.parent && tree.from == pos;\n}\nfunction probablyInString(state, pos, quoteToken, prefixes) {\n let node = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(state).resolveInner(pos, -1);\n let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);\n for (let i = 0; i < 5; i++) {\n let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));\n let quotePos = start.indexOf(quoteToken);\n if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {\n let first = node.firstChild;\n while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {\n if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)\n return false;\n first = first.firstChild;\n }\n return true;\n }\n let parent = node.to == pos && node.parent;\n if (!parent)\n break;\n node = parent;\n }\n return false;\n}\nfunction canStartStringAt(state, pos, prefixes) {\n let charCat = state.charCategorizer(pos);\n if (charCat(state.sliceDoc(pos - 1, pos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word)\n return pos;\n for (let prefix of prefixes) {\n let start = pos - prefix.length;\n if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word)\n return start;\n }\n return -1;\n}\n\n/**\nReturns an extension that enables autocompletion.\n*/\nfunction autocompletion(config = {}) {\n return [\n completionState,\n completionConfig.of(config),\n completionPlugin,\n completionKeymapExt,\n baseTheme\n ];\n}\n/**\nBasic keybindings for autocompletion.\n\n - Ctrl-Space: [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)\n - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)\n - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`\n - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)\n*/\nconst completionKeymap = [\n { key: \"Ctrl-Space\", run: startCompletion },\n { key: \"Escape\", run: closeCompletion },\n { key: \"ArrowDown\", run: /*@__PURE__*/moveCompletionSelection(true) },\n { key: \"ArrowUp\", run: /*@__PURE__*/moveCompletionSelection(false) },\n { key: \"PageDown\", run: /*@__PURE__*/moveCompletionSelection(true, \"page\") },\n { key: \"PageUp\", run: /*@__PURE__*/moveCompletionSelection(false, \"page\") },\n { key: \"Enter\", run: acceptCompletion }\n];\nconst completionKeymapExt = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.highest(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));\n/**\nGet the current completion status. When completions are available,\nthis will return `\"active\"`. When completions are pending (in the\nprocess of being queried), this returns `\"pending\"`. Otherwise, it\nreturns `null`.\n*/\nfunction completionStatus(state) {\n let cState = state.field(completionState, false);\n return cState && cState.active.some(a => a.state == 1 /* Pending */) ? \"pending\"\n : cState && cState.active.some(a => a.state != 0 /* Inactive */) ? \"active\" : null;\n}\nconst completionArrayCache = /*@__PURE__*/new WeakMap;\n/**\nReturns the available completions as an array.\n*/\nfunction currentCompletions(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n if (!open || open.disabled)\n return [];\n let completions = completionArrayCache.get(open.options);\n if (!completions)\n completionArrayCache.set(open.options, completions = open.options.map(o => o.completion));\n return completions;\n}\n/**\nReturn the currently selected completion, if any.\n*/\nfunction selectedCompletion(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.options[open.selected].completion : null;\n}\n/**\nReturns the currently selected position in the active completion\nlist, or null if no completions are active.\n*/\nfunction selectedCompletionIndex(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.selected : null;\n}\n/**\nCreate an effect that can be attached to a transaction to change\nthe currently selected completion.\n*/\nfunction setSelectedCompletion(index) {\n return setSelectedEffect.of(index);\n}\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGNvZGVtaXJyb3IvYXV0b2Nvb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iAgICAgICAgbGV0IGFkamFjZW50VG8gPSAwLCBhZGphY2VudFN0YXJ0ID0gLTEsIGFkamFjZW50RW5kID0gLTE7XG4gICAgICAgIGxldCBoYXNMb3dlciA9IC9bYS16XS8udGVzdCh3b3JkKSwgd29yZEFkamFjZW50ID0gdHJ1ZTtcbiAgICAgICAgLy8gR28gb3ZlciB0aGUgb3B0aW9uJ3MgdGV4dCwgc2Nhbm5pbmcgZm9yIHRoZSB2YXJpb3VzIGtpbmRzIG9mIG1hdGNoZXNcbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGUgPSBNYXRoLm1pbih3b3JkLmxlbmd0aCwgMjAwKSwgcHJldlR5cGUgPSAwIC8qIE5vbldvcmQgKi87IGkgPCBlICYmIGJ5V29yZFRvIDwgbGVuOykge1xuICAgICAgICAgICAgbGV0IG5leHQgPSBjb2RlUG9pbnRBdCh3b3JkLCBpKTtcbiAgICAgICAgICAgIGlmIChkaXJlY3QgPCAwKSB7XG4gICAgICAgICAgICAgICAgaWYgKHByZWNpc2VUbyA8IGxlbiAmJiBuZXh0ID09IGNoYXJzW3ByZWNpc2VUb10pXG4gICAgICAgICAgICAgICAgICAgIHByZWNpc2VbcHJlY2lzZVRvKytdID0gaTtcbiAgICAgICAgICAgICAgICBpZiAoYWRqYWNlbnRUbyA8IGxlbikge1xuICAgICAgICAgICAgICAgICAgICBpZiAobmV4dCA9PSBjaGFyc1thZGphY2VudFRvXSB8fCBuZXh0ID09IGZvbGRlZFthZGphY2VudFRvXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGFkamFjZW50VG8gPT0gMClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhZGphY2VudFN0YXJ0ID0gaTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFkamFjZW50RW5kID0gaSArIDE7XG4gICAgICAgICAgICAgICAgICAgICAgICBhZGphY2VudFRvKys7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhZGphY2VudFRvID0gMDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGxldCBjaCwgdHlwZSA9IG5leHQgPCAweGZmXG4gICAgICAgICAgICAgICAgPyAobmV4dCA+PSA0OCAmJiBuZXh0IDw9IDU3IHx8IG5leHQgPj0gOTcgJiYgbmV4dCA8PSAxMjIgPyAyIC8qIExvd2VyICovIDogbmV4dCA+PSA2NSAmJiBuZXh0IDw9IDkwID8gMSAvKiBVcHBlciAqLyA6IDAgLyogTm9uV29yZCAqLylcbiAgICAgICAgICAgICAgICA6ICgoY2ggPSBmcm9tQ29kZVBvaW50KG5leHQpKSAhPSBjaC50b0xvd2VyQ2FzZSgpID8gMSAvKiBVcHBlciAqLyA6IGNoICE9IGNoLnRvVXBwZXJDYXNlKCkgPyAyIC8qIExvd2VyICovIDogMCAvKiBOb25Xb3JkICovKTtcbiAgICAgICAgICAgIGlmICghaSB8fCB0eXBlID09IDEgLyogVXBwZXIgKi8gJiYgaGFzTG93ZXIgfHwgcHJldlR5cGUgPT0gMCAvKiBOb25Xb3JkICovICYmIHR5cGUgIT0gMCAvKiBOb25Xb3JkICovKSB7XG4gICAgICAgICAgICAgICAgaWYgKGNoYXJzW2J5V29yZFRvXSA9PSBuZXh0IHx8IChmb2xkZWRbYnlXb3JkVG9dID09IG5leHQgJiYgKGJ5V29yZEZvbGRlZCA9IHRydWUpKSlcbiAgICAgICAgICAgICAgICAgICAgYnlXb3JkW2J5V29yZFRvKytdID0gaTtcbiAgICAgICAgICAgICAgICBlbHNlIGlmIChieVdvcmQubGVuZ3RoKVxuICAgICAgICAgICAgICAgICAgICB3b3JkQWRqYWNlbnQgPSBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHByZXZUeXBlID0gdHlwZTtcbiAgICAgICAgICAgIGkgKz0gY29kZVBvaW50U2l6ZShuZXh0KTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoYnlXb3JkVG8gPT0gbGVuICYmIGJ5V29yZFswXSA9PSAwICYmIHdvcmRBZGphY2VudClcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnJlc3VsdCgtMTAwIC8qIEJ5V29yZCAqLyArIChieVdvcmRGb2xkZWQgPyAtMjAwIC8qIENhc2VGb2xkICovIDogMCksIGJ5V29yZCwgd29yZCk7XG4gICAgICAgIGlmIChhZGphY2VudFRvID09IGxlbiAmJiBhZGphY2VudFN0YXJ0ID09IDApXG4gICAgICAgICAgICByZXR1cm4gdGhpcy5yZXQoLTIwMCAvKiBDYXNlRm9sZCAqLyAtIHdvcmQubGVuZ3RoICsgKGFkamFjZW50RW5kID09IHdvcmQubGVuZ3RoID8gMCA6IC0xMDAgLyogTm90RnVsbCAqLyksIFswLCBhZGphY2VudEVuZF0pO1xuICAgICAgICBpZiAoZGlyZWN0ID4gLTEpXG4gICAgICAgICAgICByZXR1cm4gdGhpcy5yZXQoLTcwMCAvKiBOb3RTdGFydCAqLyAtIHdvcmQubGVuZ3RoLCBbZGlyZWN0LCBkaXJlY3QgKyB0aGlzLnBhdHRlcm4ubGVuZ3RoXSk7XG4gICAgICAgIGlmIChhZGphY2VudFRvID09IGxlbilcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnJldCgtMjAwIC8qIENhc2VGb2xkICovICsgLTcwMCAvKiBOb3RTdGFydCAqLyAtIHdvcmQubGVuZ3RoLCBbYWRqYWNlbnRTdGFydCwgYWRqYWNlbnRFbmRdKTtcbiAgICAgICAgaWYgKGJ5V29yZFRvID09IGxlbilcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnJlc3VsdCgtMTAwIC8qIEJ5V29yZCAqLyArIChieVdvcmRGb2xkZWQgPyAtMjAwIC8qIENhc2VGb2xkICovIDogMCkgKyAtNzAwIC8qIE5vdFN0YXJ0ICovICtcbiAgICAgICAgICAgICAgICAod29yZEFkamFjZW50ID8gMCA6IC0xMTAwIC8qIEdhcCAqLyksIGJ5V29yZCwgd29yZCk7XG4gICAgICAgIHJldHVybiBjaGFycy5sZW5ndGggPT0gMiA/IGZhbHNlXG4gICAgICAgICAgICA6IHRoaXMucmVzdWx0KChhbnlbMF0gPyAtNzAwIC8qIE5vdFN0YXJ0ICovIDogMCkgKyAtMjAwIC8qIENhc2VGb2xkICovICsgLTExMDAgLyogR2FwICovLCBhbnksIHdvcmQpO1xuICAgIH1cbiAgICByZXN1bHQoc2NvcmUsIHBvc2l0aW9ucywgd29yZCkge1xuICAgICAgICBsZXQgcmVzdWx0ID0gW10sIGkgPSAwO1xuICAgICAgICBmb3IgKGxldCBwb3Mgb2YgcG9zaXRpb25zKSB7XG4gICAgICAgICAgICBsZXQgdG8gPSBwb3MgKyAodGhpcy5hc3RyYWwgPyBjb2RlUG9pbnRTaXplKGNvZGVQb2ludEF0KHdvcmQsIHBvcykpIDogMSk7XG4gICAgICAgICAgICBpZiAoaSAmJiByZXN1bHRbaSAtIDFdID09IHBvcylcbiAgICAgICAgICAgICAgICByZXN1bHRbaSAtIDFdID0gdG87XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXN1bHRbaSsrXSA9IHBvcztcbiAgICAgICAgICAgICAgICByZXN1bHRbaSsrXSA9IHRvO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLnJldChzY29yZSAtIHdvcmQubGVuZ3RoLCByZXN1bHQpO1xuICAgIH1cbn1cblxuY29uc3QgY29tcGxldGlvbkNvbmZpZyA9IC8qQF9fUFVSRV9fKi9GYWNldC5kZWZpbmUoe1xuICAgIGNvbWJpbmUoY29uZmlncykge1xuICAgICAgICByZXR1cm4gY29tYmluZUNvbmZpZyhjb25maWdzLCB7XG4gICAgICAgICAgICBhY3RpdmF0ZU9uVHlwaW5nOiB0cnVlLFxuICAgICAgICAgICAgc2VsZWN0T25PcGVuOiB0cnVlLFxuICAgICAgICAgICAgb3ZlcnJpZGU6IG51bGwsXG4gICAgICAgICAgICBjbG9zZU9uQmx1cjogdHJ1ZSxcbiAgICAgICAgICAgIG1heFJlbmRlcmVkT3B0aW9uczogMTAwLFxuICAgICAgICAgICAgZGVmYXVsdEtleW1hcDogdHJ1ZSxcbiAgICAgICAgICAgIHRvb2x0aXBDbGFzczogKCkgPT4gXCJcIixcbiAgICAgICAgICAgIG9wdGlvbkNsYXNzOiAoKSA9PiBcIlwiLFxuICAgICAgICAgICAgYWJvdmVDdXJzb3I6IGZhbHNlLFxuICAgICAgICAgICAgaWNvbnM6IHRydWUsXG4gICAgICAgICAgICBhZGRUb09wdGlvbnM6IFtdLFxuICAgICAgICAgICAgcG9zaXRpb25JbmZvOiBkZWZhdWx0UG9zaXRpb25JbmZvLFxuICAgICAgICAgICAgY29tcGFyZUNvbXBsZXRpb25zOiAoYSwgYikgPT4gYS5sYWJlbC5sb2NhbGVDb21wYXJlKGIubGFiZWwpLFxuICAgICAgICAgICAgaW50ZXJhY3Rpb25EZWxheTogNzVcbiAgICAgICAgfSwge1xuICAgICAgICAgICAgZGVmYXVsdEtleW1hcDogKGEsIGIpID0+IGEgJiYgYixcbiAgICAgICAgICAgIGNsb3NlT25CbHVyOiAoYSwgYikgPT4gYSAmJiBiLFxuICAgICAgICAgICAgaWNvbnM6IChhLCBiKSA9PiBhICYmIGIsXG4gICAgICAgICAgICB0b29sdGlwQ2xhc3M6IChhLCBiKSA9PiBjID0+IGpvaW5DbGFzcyhhKGMpLCBiKGMpKSxcbiAgICAgICAgICAgIG9wdGlvbkNsYXNzOiAoYSwgYikgPT4gYyA9PiBqb2luQ2xhc3MoYShjKSwgYihjKSksXG4gICAgICAgICAgICBhZGRUb09wdGlvbnM6IChhLCBiKSA9PiBhLmNvbmNhdChiKVxuICAgICAgICB9KTtcbiAgICB9XG59KTtcbmZ1bmN0aW9uIGpvaW5DbGFzcyhhLCBiKSB7XG4gICAgcmV0dXJuIGEgPyBiID8gYSArIFwiIFwiICs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IHtcbiAgICAgICAgICAgICAgICBsZXQgaWNvbiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgICAgICAgICAgaWNvbi5jbGFzc0xpc3QuYWRkKFwiY20tY29tcGxldGlvbkljb25cIik7XG4gICAgICAgICAgICAgICAgaWYgKGNvbXBsZXRpb24udHlwZSlcbiAgICAgICAgICAgICAgICAgICAgaWNvbi5jbGFzc0xpc3QuYWRkKC4uLmNvbXBsZXRpb24udHlwZS5zcGxpdCgvXFxzKy9nKS5tYXAoY2xzID0+IFwiY20tY29tcGxldGlvbkljb24tXCIgKyBjbHMpKTtcbiAgICAgICAgICAgICAgICBpY29uLnNldEF0dHJpYnV0ZShcImFyaWEtaGlkZGVuXCIsIFwidHJ1ZVwiKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gaWNvbjtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBwb3NpdGlvbjogMjBcbiAgICAgICAgfSk7XG4gICAgY29udGVudC5wdXNoKHtcbiAgICAgICAgcmVuZGVyKGNvbXBsZXRpb24sIF9zLCBtYXRjaCkge1xuICAgICAgICAgICAgbGV0IGxhYmVsRWx0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudChcInNwYW5cIik7XG4gICAgICAgICAgICBsYWJlbEVsdC5jbGFzc05hbWUgPSBcImNtLWNvbXBsZXRpb25MYWJlbFwiO1xuICAgICAgICAgICAgbGV0IGxhYmVsID0gY29tcGxldGlvbi5kaXNwbGF5TGFiZWwgfHwgY29tcGxldGlvbi5sYWJlbCwgb2ZmID0gMDtcbiAgICAgICAgICAgIGZvciAobGV0IGogPSAwOyBqIDwgbWF0Y2gubGVuZ3RoOykge1xuICAgICAgICAgICAgICAgIGxldCBmcm9tID0gbWF0Y2hbaisrXSwgdG8gPSBtYXRjaFtqKytdO1xuICAgICAgICAgICAgICAgIGlmIChmcm9tID4gb2ZmKVxuICAgICAgICAgICAgICAgICAgICBsYWJlbEVsdC5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShsYWJlbC5zbGljZShvZmYsIGZyb20pKSk7XG4gICAgICAgICAgICAgICAgbGV0IHNwYW4gPSBsYWJlbEVsdC5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwic3BhblwiKSk7XG4gICAgICAgICAgICAgICAgc3Bhbi5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShsYWJlbC5zbGljZShmcm9tLCB0bykpKTtcbiAgICAgICAgICAgICAgICBzcGFuLmNsYXNzTmFtZSA9IFwiY20tY29tcGxldGlvbk1hdGNoZWRUZXh0XCI7XG4gICAgICAgICAgICAgICAgb2ZmID0gdG87XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAob2ZmIDwgbGFiZWwubGVuZ3RoKVxuICAgICAgICAgICAgICAgIGxhYmVsRWx0LmFwcGVuZENoaWxkKGRvY3VtZW50LmNyZWF0ZVRleHROb2RlKGxhYmVsLnNsaWNlKG9mZikpKTtcbiAgICAgICAgICAgIHJldHVybiBsYWJlbEVsdDtcbiAgICAgICAgfSxcbiAgICAgICAgcG9zaXRpb246IDUwXG4gICAgfSwge1xuICAgICAgICByZW5kZXIoY29tcGxldGlvbikge1xuICAgICAgICAgICAgaWYgKCFjb21wbGV0aW9uLmRldGFpbClcbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGxldCBkZXRhaWxFbHQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwic3BhblwiKTtcbiAgICAgICAgICAgIGRldGFpbEVsdC5jbGFzc05hbWUgPSBcImNtLWNvbXBsZXRpb25EZXRhaWxcIjtcbiAgICAgICAgICAgIGRldGFpbEVsdC50ZXh0Q29udGVudCA9IGNvbXBsZXRpb24uZGV0YWlsO1xuICAgICAgICAgICAgcmV0dXJuIGRldGFpbEVsdDtcbiAgICAgICAgfSxcbiAgICAgICAgcG9za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Ckge1xuICAgICAgICAgICAgICAgIGluZm9SZXN1bHQudGhlbihvYmogPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAob2JqICYmIHRoaXMudmlldy5zdGF0ZS5maWVsZCh0aGlzLnN0YXRlRmllbGQsIGZhbHNlKSA9PSBjU3RhdGUpXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmFkZEluZm9QYW5lKG9iaiwgY29tcGxldGlvbik7XG4gICAgICAgICAgICAgICAgfSkuY2F0Y2goZSA9PiBsb2dFeGNlcHRpb24odGhpcy52aWV3LnN0YXRlLCBlLCBcImNvbXBsZXRpb24gaW5mb1wiKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmFkZEluZm9QYW5lKGluZm9SZXN1bHQsIGNvbXBsZXRpb24pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIGFkZEluZm9QYW5lKGNvbnRlbnQsIGNvbXBsZXRpb24pIHtcbiAgICAgICAgdGhpcy5kZXN0cm95SW5mbygpO1xuICAgICAgICBsZXQgd3JhcCA9IHRoaXMuaW5mbyA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgIHdyYXAuY2xhc3NOYW1lID0gXCJjbS10b29sdGlwIGNtLWNvbXBsZXRpb25JbmZvXCI7XG4gICAgICAgIGlmIChjb250ZW50Lm5vZGVUeXBlICE9IG51bGwpIHtcbiAgICAgICAgICAgIHdyYXAuYXBwZW5kQ2hpbGQoY29udGVudCk7XG4gICAgICAgICAgICB0aGlzLmluZm9EZXN0cm95ID0gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGxldCB7IGRvbSwgZGVzdHJveSB9ID0gY29udGVudDtcbiAgICAgICAgICAgIHdyYXAuYXBwZW5kQ2hpbGQoZG9tKTtcbiAgICAgICAgICAgIHRoaXMuaW5mb0Rlc3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ICAgICAgICAgIGxldCB7IGNvbXBsZXRpb24sIG1hdGNoIH0gPSBvcHRpb25zW2ldLCB7IHNlY3Rpb24gfSA9IGNvbXBsZXRpb247XG4gICAgICAgICAgICBpZiAoc2VjdGlvbikge1xuICAgICAgICAgICAgICAgIGxldCBuYW1lID0gdHlwZW9mIHNlY3Rpb24gPT0gXCJzdHJpbmdcIiA/IHNlY3Rpb24gOiBzZWN0aW9uLm5hbWU7XG4gICAgICAgICAgICAgICAgaWYgKG5hbWUgIT0gY3VyU2VjdGlvbiAmJiAoaSA+IHJhbmdlLmZyb20gfHwgcmFuZ2UuZnJvbSA9PSAwKSkge1xuICAgICAgICAgICAgICAgICAgICBjdXJTZWN0aW9uID0gbmFtZTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBzZWN0aW9uICE9IFwic3RyaW5nXCIgJiYgc2VjdGlvbi5oZWFkZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVsLmFwcGVuZENoaWxkKHNlY3Rpb24uaGVhZGVyKHNlY3Rpb24pKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBoZWFkZXIgPSB1bC5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwiY29tcGxldGlvbi1zZWN0aW9uXCIpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlci50ZXh0Q29udGVudCA9IG5hbWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjb25zdCBsaSA9IHVsLmFwcGVuZENoaWxkKGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJsaVwiKSk7XG4gICAgICAgICAgICBsaS5pZCA9IGlkICsgXCItXCIgKyBpO1xuICAgICAgICAgICAgbGkuc2V0QXR0cmlidXRlKFwicm9sZVwiLCBcIm9wdGlvblwiKTtcbiAgICAgICAgICAgIGxldCBjbHMgPSB0aGlzLm9wdGlvbkNsYXNzKGNvbXBsZXRpb24pO1xuICAgICAgICAgICAgaWYgKGNscylcbiAgICAgICAgICAgICAgICBsaS5jbGFzc05hbWUgPSBjbHM7XG4gICAgICAgICAgICBmb3IgKGxldCBzb3VyY2Ugb2YgdGhpcy5vcHRpb25Db250ZW50KSB7XG4gICAgICAgICAgICAgICAgbGV0IG5vZGUgPSBzb3VyY2UoY29tcGxldGlvbiwgdGhpcy52aWV3LnN0YXRlLCBtYXRjaCk7XG4gICAgICAgICAgICAgICAgaWYgKG5vZGUpXG4gICAgICAgICAgICAgICAgICAgIGxpLmFwcGVuZENoaWxkKG5vZGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChyYW5nZS5mcm9tKVxuICAgICAgICAgICAgdWwuY2xhc3NMaXN0LmFkZChcImNtLWNvbXBsZXRpb25MaXN0SW5jb21wbGV0ZVRvcFwiKTtcbiAgICAgICAgaWYgKHJhbmdlLnRvIDwgb3B0aW9ucy5sZW5ndGgpXG4gICAgICAgICAgICB1bC5jbGFzc0xpc3QuYWRkKFwiY20tY29tcGxldGlvbkxpc3RJbmNvbXBsZXRlQm90dG9tXCIpO1xuICAgICAgICByZXR1cm4gdWw7XG4gICAgfVxuICAgIGRlc3Ryb3lJbmZvKCkge1xuICAgICAgICBpZiAodGhpcy5pbmZvKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5pbmZvRGVzdHJveSlcbiAgICAgICAgICAgICAgICB0aGlzLmluZm9EZXN0cm95KCk7XG4gICAgICAgICAgICB0aGlzLmluZm8ucmVtb3ZlKCk7XG4gICAgICAgICAgICB0aGlzLmluZm8gPSBudWxsO1xuICAgICAgICB9XG4gICAgfVxuICAgIGRlc3Ryb3koKSB7XG4gICAgICAgIHRoaXMuZGVzdHJveUluZm8oKTtcbiAgICB9XG59XG4vLyBXZSBhbGxvY2F0ZSBhIG5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LCAxZTkgLSBvcHRpb25zLmxlbmd0aCkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGxldCBtYXRjaGVyID0gbmV3IEZ1enp5TWF0Y2hlcihzdGF0ZS5zbGljZURvYyhhLmZyb20sIGEudG8pKTtcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBvcHRpb24gb2YgYS5yZXN1bHQub3B0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgaWYgKG1hdGNoZXIubWF0Y2gob3B0aW9uLmxhYmVsKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG1hdGNoZWQgPSAhb3B0aW9uLmRpc3BsYXlMYWJlbCA/IG1hdGNoZXIubWF0Y2hlZCA6IGdldE1hdGNoID8gZ2V0TWF0Y2gob3B0aW9uLCBtYXRjaGVyLm1hdGNoZWQpIDogW107XG4gICAgICAgICAgICAgICAgICAgICAgICBhZGRPcHRpb24obmV3IE9wdGlvbihvcHRpb24sIGEuc291cmNlLCBtYXRjaGVkLCBtYXRjaGVyLnNjb3JlICsgKG9wdGlvbi5ib29zdCB8fCAwKSkpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICBpZiAoc2VjdGlvbnMpIHtcbiAgICAgICAgbGV0IHNlY3Rpb25PcmRlciA9IE9iamVjdC5jcmVhdGUobnVsbCksIHBvcyA9IDA7XG4gICAgICAgIGxldCBjbXAgPSAoYSwgYikgPT4geyB2YXIgX2EsIF9iOyByZXR1cm4gKChfYSA9IGEucmFuaykgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogMWU5KSAtICgoX2IgPSBiLnJhbmspICE9PSBudWxsICYmIF9iICE9PSB2b2lkIDAgPyBfYiA6IDFlOSkgfHwgKGEubmFtZSA8IGIubmFtZSA/IC0xIDogMSk7IH07XG4gICAgICAgIGZvciAobGV0IHMgb2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XRpb25TdGF0ZSkgPT0gY1N0YXRlKVxuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICBsZXQgZG9lc1Jlc2V0ID0gdXBkYXRlLnRyYW5zYWN0aW9ucy5zb21lKHRyID0+IHtcbiAgICAgICAgICAgIHJldHVybiAodHIuc2VsZWN0aW9uIHx8IHRyLmRvY0NoYW5nZWQpICYmICFnZXRVc2VyRXZlbnQodHIpO1xuICAgICAgICB9KTtcbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLnJ1bm5pbmcubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGxldCBxdWVyeSA9IHRoaXMucnVubmluZ1tpXTtcbiAgICAgICAgICAgIGlmIChkb2VzUmVzZXQgfHxcbiAgICAgICAgICAgICAgICBxdWVyeS51cGRhdGVzLmxlbmd0aCArIHVwZGF0ZS50cmFuc2FjdGlvbnMubGVuZ3RoID4gTWF4VXBkYXRlQ291bnQgJiYgRGF0ZS5ub3coKSAtIHF1ZXJ5LnRpbWUgPiBNaW5BYm9ydFRpbWUpIHtcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBoYW5kbGVyIG9mIHF1ZXJ5LmNvbnRleHQuYWJvcnRMaXN0ZW5lcnMpIHtcbiAgICAgICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbG9nRXhjZXB0aW9uKHRoaXMudmlldy5zdGF0ZSwgZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcXVlcnkuY29udGV4dC5hYm9ydExpc3RlbmVycyA9IG51bGw7XG4gICAgICAgICAgICAgICAgdGhpcy5ydW5uaW5nLnNwbGljZShpLS0sIDEpO1xuICAgICAgICAgICAgfVxu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0aXZlLmZpbmQoYSA9PiBhLnNvdXJjZSA9PSBxdWVyeS5hY3RpdmUuc291cmNlKTtcbiAgICAgICAgICAgIGlmIChjdXJyZW50ICYmIGN1cnJlbnQuc3RhdGUgPT0gMSAvKiBQZW5kaW5nICovKSB7XG4gICAgICAgICAgICAgICAgaWYgKHF1ZXJ5LmRvbmUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAvLyBFeHBsaWNpdGx5IGZhaWxlZC4gU2hvdWxkIGNsZWFyIHRoZSBwZW5kaW5nIHN0YXR1cyBpZiBpdFxuICAgICAgICAgICAgICAgICAgICAvLyBoYXNuJ3QgYmVlbiByZS1zZXQgaW4gdGhlIG1lYW50aW1lLlxuICAgICAgICAgICAgICAgICAgICBsZXQgYWN0aXZlID0gbmV3IEFjdGl2ZVNvdXJjZShxdWVyeS5hY3RpdmUuc291cmNlLCAwIC8qIEluYWN0aXZlICovKTtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgdHIgb2YgcXVlcnkudXBkYXRlcylcbiAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZSA9IGFjdGl2ZS51cGRhdGUodHIsIGNvbmYpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoYWN0aXZlLnN0YXRlICE9IDEgLyogUGVuZGluZyAqLylcbiAgICAgICAgICAgICAgICAgICAgICAgIHVwZGF0ZWQucHVzaChhY3RpdmUpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQ2xlYXJlZCBieSBzdWJzZXF1ZW50IHRyYW5zYWN0aW9ucy4gUmVzdGFydC5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zdGFydFF1ZXJ5KGN1cnJlbnQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAodXBkYXRlZC5sZW5ndGgpXG4gICAgICAgICAgICB0aGlzLnZpZXcuZGlzcGF0Y2goeyBlZmZlY3RzOiBzZXRBY3RpdmVFZmZlY3Qub2YodXBkYXRlZCkgfSk7XG4gICAgfVxufSwge1xuICAgIGV2ZW50SGFuZGxlcnM6IHtcbiAgICAgICAgYmx1cihldmVudCkge1xuICAgICAgICAgICAgbGV0IHN0YXRlID0gdGhpcy52aWV3LnN0YXRlLmZpZWxkKGNvbXBsZXRpb25TdGF0ZSwgZmFsc2UpO1xuICAgICAgICAgICAgaWYgKHN0YXRlICYmIHN0YXRlLnRvb2x0aXAgJiYgdGhpcy52aWV3LnN0YXRlLmZhY2V0KGNvbXBsZXRpb25Db25maWcpLmNsb3NlT25CbHVyKSB7XG4gICAgICAgICAgICAgICAgbGV0IGRpYWxvZyA9IHN0YXRlLm9wZW4gJiYgZ2V0VG9vbHRpcCh0aGlzLnZpZXcsIHN0YXRlLm9wZW4udG9vbHRpcCk7XG4gICAgICAgICAgICAgICAgaWYgKCFkaWFsb2cgfHwgIWRpYWxvZy5kb20uY29udGFpbnMoZXZlbnQucmVsYXRlZFRhcmdldCkpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmlldy5kaXNwYXRjaCh7IGVmZmVjdHM6IGNsb3NlQ29tcGxldGlvbkVmZmVjdC5vZihudWxsKSB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgY29tcG9zaXRpb25zdGFydCgpIHtcbiAgICAgICAgICAgIHRoaXMuY29tcG9zaW5nID0gMSAvKiBTdGFydGVkICovO1xuICAgICAgICB9LFxuICAgICAgICBjb21wb3NpdGlvbmVuZCgpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmNvbXBvc2luZyA9PSAzIC8qIENoYW5nZWRBbmRNb3ZlZCAqLykge1xuICAgICAgICAgICAgICAgIC8vIFNhZmFyaSBmaXJlcyBjb21wb3NpdGlvbmVuZCBldmVudHMgc3luY2hyb25vdXNseSwgcG9zc2libHlcbiAgICAgICAgICAgICAgICAvLyBmcm9tIGluc2l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BcIjFweCAzcHhcIixcbiAgICAgICAgICAgICAgICBsaW5lSGVpZ2h0OiAxLjJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIiYgPiBsaVwiOiB7XG4gICAgICAgICAgICAgICAgb3ZlcmZsb3dYOiBcImhpZGRlblwiLFxuICAgICAgICAgICAgICAgIHRleHRPdmVyZmxvdzogXCJlbGxpcHNpc1wiLFxuICAgICAgICAgICAgICAgIGN1cnNvcjogXCJwb2ludGVyXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIiYgPiBjb21wbGV0aW9uLXNlY3Rpb25cIjoge1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwibGlzdC1pdGVtXCIsXG4gICAgICAgICAgICAgICAgYm9yZGVyQm90dG9tOiBcIjFweCBzb2xpZCBzaWx2ZXJcIixcbiAgICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogXCIwLjVlbVwiLFxuICAgICAgICAgICAgICAgIG9wYWNpdHk6IDAuN1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSxcbiAgICBcIiZsaWdodCAuY20tdG9vbHRpcC1hdXRvY29tcGxldGUgdWwgbGlbYXJpYS1zZWxlY3RlZF1cIjoge1xuICAgICAgICBiYWNrZ3JvdW5kOiBcIiMxN2NcIixcbiAgICAgICAgY29sb3I6IFwid2hpdGVcIixcbiAgICB9LFxuICAgIFwiJmxpZ2h0IC5jbS10b29sdGlwLWF1dG9jb21wbGV0ZS1kaXNhYmxlZCB1bCBsaVthcmlhLXNlbGVjdGVkXVwiOiB7XG4gICAgICAgIGJhY2tncm91bmQ6IFwiIzc3N1wiLFxuICAgIH0sXG4gICAgXCImZGFyayAuY20tdG9vbHRpcC1hdXRvY29tcGxldGUgdWwgbGlbYXJpYS1zZWxlY3RlZF1cIjoge1xuICAgICAgICBiYWNrZ3JvdW5kOiBcIiMzNDdcIixcbiAgICAgICAgY29sb3I6IFwid2hpdGVcIixcbiAgICB9LFxuICAgIFwiJmR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IHRvID09IG51bGwgPyBudWxsIDogbmV3IEZpZWxkUmFuZ2UodGhpcy5maWVsZCwgZnJvbSwgdG8pO1xuICAgIH1cbn1cbmNsYXNzIFNuaXBwZXQge1xuICAgIGNvbnN0cnVjdG9yKGxpbmVzLCBmaWVsZFBvc2l0aW9ucykge1xuICAgICAgICB0aGlzLmxpbmVzID0gbGluZXM7XG4gICAgICAgIHRoaXMuZmllbGRQb3NpdGlvbnMgPSBmaWVsZFBvc2l0aW9ucztcbiAgICB9XG4gICAgaW5zdGFudGlhdGUoc3RhdGUsIHBvcykge1xuICAgICAgICBsZXQgdGV4dCA9IFtdLCBsaW5lU3RhcnQgPSBbcG9zXTtcbiAgICAgICAgbGV0IGxpbmVPYmogPSBzdGF0ZS5kb2MubGluZUF0KHBvcyksIGJhc2VJbmRlbnQgPSAvXlxccyovLmV4ZWMobGluZU9iai50ZXh0KVswXTtcbiAgICAgICAgZm9yIChsZXQgbGluZSBvZiB0aGlzLmxpbmVzKSB7XG4gICAgICAgICAgICBpZiAodGV4dC5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICBsZXQgaW5kZW50ID0gYmFzZUluZGVudCwgdGFicyA9IC9eXFx0Ki8uZXhlYyhsaW5lKVswXS5sZW5ndGg7XG4gICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0YWJzOyBpKyspXG4gICAgICAgICAgICAgICAgICAgIGluZGVudCArPSBzdGF0ZS5mYWNldChpbmRlbnRVbml0KTtcbiAgICAgICAgICAgICAgICBsaW5lU3RhcnQucHVzaChwb3MgKyBpbmRlbnQubGVuZ3RoIC0gdGFicyk7XG4gICAgICAgICAgICAgICAgbGluZSA9IGluZGVudCArIGxpbmUuc2xpY2UodGFicyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0ZXh0LnB1c2gobGluZSk7XG4gICAgICAgICAgICBwb3MgKz0gbGluZS5sZW5ndGggKyAxO1xuICAgICAgICB9XG4gICAgICAgIGxldCByYW5nZXM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ZWxkc1tpXS5zZXEgIT0gbnVsbCAmJiBmaWVsZHNbaV0uc2VxIDwgc2VxKSkpXG4gICAgICAgICAgICAgICAgICAgICAgICBpKys7XG4gICAgICAgICAgICAgICAgICAgIGZpZWxkcy5zcGxpY2UoaSwgMCwgeyBzZXEsIG5hbWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIGZvdW5kID0gaTtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgcG9zIG9mIHBvc2l0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwb3MuZmllbGQgPj0gZm91bmQpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcG9zLmZpZWxkKys7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHBvc2l0aW9ucy5wdXNoKG5ldyBGaWVsZFBvcyhmb3VuZCwgbGluZXMubGVuZ3RoLCBtLmluZGV4LCBtLmluZGV4ICsgbmFtZS5sZW5ndGgpKTtcbiAgICAgICAgICAgICAgICBsaW5lID0gbGluZS5zbGljZSgwLCBtLmluZGV4KSArIG5hbWUgKyBsaW5lLnNsaWNlKG0uaW5kZXggKyBtWzBdLmxlbmd0aCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBmb3IgKGxldCBlc2M7IGVzYyA9IC9cXFxcKFt7fV0pLy5leGVjKGxpbmUpOykge1xuICAgICAgICAgICAgICAgIGxpbmUgPSBsaW5lLnNsaWNlKDAsIGVzYy5pbmRleCkgKyBlc2NbMV0gKyBsaW5lLnNsaWNlKGVzYy5pbmRleCArIGVzY1swXS5sZW5ndGgpO1xuICAgICAgICAgICAgICAgIGZvciAobGV0IHBvcyBvZiBwb3NpdGlvbnMpXG4gICAgICAgICAgICAgICAgICAgIGlmIChwb3MubGluZSA9PSBsaW5lcy5sZW5ndGggJiYgcG9zLmZyb20gPiBlc2MuaW5kZXgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBvcy5mcm9tLS07XG4gICAgICAgICAgICAgIC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ICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcG9zICs9IHZhbHVlLmxlbmd0aCArIDE7XG4gICAgfVxufVxuZnVuY3Rpb24gY29sbGVjdFdvcmRzKGRvYywgY2FjaGUsIHdvcmRSRSwgdG8sIGlnbm9yZUF0KSB7XG4gICAgbGV0IGJpZyA9IGRvYy5sZW5ndGggPj0gMTAwMCAvKiBNaW5DYWNoZUxlbiAqLztcbiAgICBsZXQgY2FjaGVkID0gYmlnICYmIGNhY2hlLmdldChkb2MpO1xuICAgIGlmIChjYWNoZWQpXG4gICAgICAgIHJldHVybiBjYWNoZWQ7XG4gICAgbGV0IHJlc3VsdCA9IFtdLCBzZWVuID0gT2JqZWN0LmNyZWF0ZShudWxsKTtcbiAgICBpZiAoZG9jLmNoaWxkcmVuKSB7XG4gICAgICAgIGxldCBwb3MgPSAwO1xuICAgICAgICBmb3IgKGxldCBjaCBvZiBkb2MuY2hpbGRyZW4pIHtcbiAgICAgICAgICAgIGlmIChjaC5sZW5ndGggPj0gMTAwMCAvKiBNaW5DYWNoZUxlbiAqLykge1xuICAgICAgICAgICAgICAgIGZvciAobGV0IGMgb2YgY29sbGVjdFdvcmRzKGNoLCBjYWNoZSwgd29yZFJFLCB0byAtIHBvcywgaWdub3JlQXQgLSBwb3MpKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghc2VlbltjLmxhYmVsXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2VlbltjLmxhYmVsXSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXN1bHQucHVzaChjKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHN0b3JlV29yZHMoY2gsIHdvcmRSRSwgcmVzdWx0LCBzZWVuLCBpZ25vcmVBdCAtIHBvcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwb3MgKz0gY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0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@codemirror/autocomplete/dist/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@codemirror/commands/dist/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/@codemirror/commands/dist/index.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___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 */ \"blockComment\": () => (/* binding */ blockComment),\n/* harmony export */ \"blockUncomment\": () => (/* binding */ blockUncomment),\n/* harmony export */ \"copyLineDown\": () => (/* binding */ copyLineDown),\n/* harmony export */ \"copyLineUp\": () => (/* binding */ copyLineUp),\n/* harmony export */ \"cursorCharBackward\": () => (/* binding */ cursorCharBackward),\n/* harmony export */ \"cursorCharForward\": () => (/* binding */ cursorCharForward),\n/* harmony export */ \"cursorCharLeft\": () => (/* binding */ cursorCharLeft),\n/* harmony export */ \"cursorCharRight\": () => (/* binding */ cursorCharRight),\n/* harmony export */ \"cursorDocEnd\": () => (/* binding */ cursorDocEnd),\n/* harmony export */ \"cursorDocStart\": () => (/* binding */ cursorDocStart),\n/* harmony export */ \"cursorGroupBackward\": () => (/* binding */ cursorGroupBackward),\n/* harmony export */ \"cursorGroupForward\": () => (/* binding */ cursorGroupForward),\n/* harmony export */ \"cursorGroupLeft\": () => (/* binding */ cursorGroupLeft),\n/* harmony export */ \"cursorGroupRight\": () => (/* binding */ cursorGroupRight),\n/* harmony export */ \"cursorLineBoundaryBackward\": () => (/* binding */ cursorLineBoundaryBackward),\n/* harmony export */ \"cursorLineBoundaryForward\": () => (/* binding */ cursorLineBoundaryForward),\n/* harmony export */ \"cursorLineBoundaryLeft\": () => (/* binding */ cursorLineBoundaryLeft),\n/* harmony export */ \"cursorLineBoundaryRight\": () => (/* binding */ cursorLineBoundaryRight),\n/* harmony export */ \"cursorLineDown\": () => (/* binding */ cursorLineDown),\n/* harmony export */ \"cursorLineEnd\": () => (/* binding */ cursorLineEnd),\n/* harmony export */ \"cursorLineStart\": () => (/* binding */ cursorLineStart),\n/* harmony export */ \"cursorLineUp\": () => (/* binding */ cursorLineUp),\n/* harmony export */ \"cursorMatchingBracket\": () => (/* binding */ cursorMatchingBracket),\n/* harmony export */ \"cursorPageDown\": () => (/* binding */ cursorPageDown),\n/* harmony export */ \"cursorPageUp\": () => (/* binding */ cursorPageUp),\n/* harmony export */ \"cursorSubwordBackward\": () => (/* binding */ cursorSubwordBackward),\n/* harmony export */ \"cursorSubwordForward\": () => (/* binding */ cursorSubwordForward),\n/* harmony export */ \"cursorSyntaxLeft\": () => (/* binding */ cursorSyntaxLeft),\n/* harmony export */ \"cursorSyntaxRight\": () => (/* binding */ cursorSyntaxRight),\n/* harmony export */ \"defaultKeymap\": () => (/* binding */ defaultKeymap),\n/* harmony export */ \"deleteCharBackward\": () => (/* binding */ deleteCharBackward),\n/* harmony export */ \"deleteCharForward\": () => (/* binding */ deleteCharForward),\n/* harmony export */ \"deleteGroupBackward\": () => (/* binding */ deleteGroupBackward),\n/* harmony export */ \"deleteGroupForward\": () => (/* binding */ deleteGroupForward),\n/* harmony export */ \"deleteLine\": () => (/* binding */ deleteLine),\n/* harmony export */ \"deleteToLineEnd\": () => (/* binding */ deleteToLineEnd),\n/* harmony export */ \"deleteToLineStart\": () => (/* binding */ deleteToLineStart),\n/* harmony export */ \"deleteTrailingWhitespace\": () => (/* binding */ deleteTrailingWhitespace),\n/* harmony export */ \"emacsStyleKeymap\": () => (/* binding */ emacsStyleKeymap),\n/* harmony export */ \"history\": () => (/* binding */ history),\n/* harmony export */ \"historyField\": () => (/* binding */ historyField),\n/* harmony export */ \"historyKeymap\": () => (/* binding */ historyKeymap),\n/* harmony export */ \"indentLess\": () => (/* binding */ indentLess),\n/* harmony export */ \"indentMore\": () => (/* binding */ indentMore),\n/* harmony export */ \"indentSelection\": () => (/* binding */ indentSelection),\n/* harmony export */ \"indentWithTab\": () => (/* binding */ indentWithTab),\n/* harmony export */ \"insertBlankLine\": () => (/* binding */ insertBlankLine),\n/* harmony export */ \"insertNewline\": () => (/* binding */ insertNewline),\n/* harmony export */ \"insertNewlineAndIndent\": () => (/* binding */ insertNewlineAndIndent),\n/* harmony export */ \"insertTab\": () => (/* binding */ insertTab),\n/* harmony export */ \"invertedEffects\": () => (/* binding */ invertedEffects),\n/* harmony export */ \"isolateHistory\": () => (/* binding */ isolateHistory),\n/* harmony export */ \"lineComment\": () => (/* binding */ lineComment),\n/* harmony export */ \"lineUncomment\": () => (/* binding */ lineUncomment),\n/* harmony export */ \"moveLineDown\": () => (/* binding */ moveLineDown),\n/* harmony export */ \"moveLineUp\": () => (/* binding */ moveLineUp),\n/* harmony export */ \"redo\": () => (/* binding */ redo),\n/* harmony export */ \"redoDepth\": () => (/* binding */ redoDepth),\n/* harmony export */ \"redoSelection\": () => (/* binding */ redoSelection),\n/* harmony export */ \"selectAll\": () => (/* binding */ selectAll),\n/* harmony export */ \"selectCharBackward\": () => (/* binding */ selectCharBackward),\n/* harmony export */ \"selectCharForward\": () => (/* binding */ selectCharForward),\n/* harmony export */ \"selectCharLeft\": () => (/* binding */ selectCharLeft),\n/* harmony export */ \"selectCharRight\": () => (/* binding */ selectCharRight),\n/* harmony export */ \"selectDocEnd\": () => (/* binding */ selectDocEnd),\n/* harmony export */ \"selectDocStart\": () => (/* binding */ selectDocStart),\n/* harmony export */ \"selectGroupBackward\": () => (/* binding */ selectGroupBackward),\n/* harmony export */ \"selectGroupForward\": () => (/* binding */ selectGroupForward),\n/* harmony export */ \"selectGroupLeft\": () => (/* binding */ selectGroupLeft),\n/* harmony export */ \"selectGroupRight\": () => (/* binding */ selectGroupRight),\n/* harmony export */ \"selectLine\": () => (/* binding */ selectLine),\n/* harmony export */ \"selectLineBoundaryBackward\": () => (/* binding */ selectLineBoundaryBackward),\n/* harmony export */ \"selectLineBoundaryForward\": () => (/* binding */ selectLineBoundaryForward),\n/* harmony export */ \"selectLineBoundaryLeft\": () => (/* binding */ selectLineBoundaryLeft),\n/* harmony export */ \"selectLineBoundaryRight\": () => (/* binding */ selectLineBoundaryRight),\n/* harmony export */ \"selectLineDown\": () => (/* binding */ selectLineDown),\n/* harmony export */ \"selectLineEnd\": () => (/* binding */ selectLineEnd),\n/* harmony export */ \"selectLineStart\": () => (/* binding */ selectLineStart),\n/* harmony export */ \"selectLineUp\": () => (/* binding */ selectLineUp),\n/* harmony export */ \"selectMatchingBracket\": () => (/* binding */ selectMatchingBracket),\n/* harmony export */ \"selectPageDown\": () => (/* binding */ selectPageDown),\n/* harmony export */ \"selectPageUp\": () => (/* binding */ selectPageUp),\n/* harmony export */ \"selectParentSyntax\": () => (/* binding */ selectParentSyntax),\n/* harmony export */ \"selectSubwordBackward\": () => (/* binding */ selectSubwordBackward),\n/* harmony export */ \"selectSubwordForward\": () => (/* binding */ selectSubwordForward),\n/* harmony export */ \"selectSyntaxLeft\": () => (/* binding */ selectSyntaxLeft),\n/* harmony export */ \"selectSyntaxRight\": () => (/* binding */ selectSyntaxRight),\n/* harmony export */ \"simplifySelection\": () => (/* binding */ simplifySelection),\n/* harmony export */ \"splitLine\": () => (/* binding */ splitLine),\n/* harmony export */ \"standardKeymap\": () => (/* binding */ standardKeymap),\n/* harmony export */ \"toggleBlockComment\": () => (/* binding */ toggleBlockComment),\n/* harmony export */ \"toggleBlockCommentByLine\": () => (/* binding */ toggleBlockCommentByLine),\n/* harmony export */ \"toggleComment\": () => (/* binding */ toggleComment),\n/* harmony export */ \"toggleLineComment\": () => (/* binding */ toggleLineComment),\n/* harmony export */ \"transposeChars\": () => (/* binding */ transposeChars),\n/* harmony export */ \"undo\": () => (/* binding */ undo),\n/* harmony export */ \"undoDepth\": () => (/* binding */ undoDepth),\n/* harmony export */ \"undoSelection\": () => (/* binding */ undoSelection)\n/* harmony export */ });\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n\n\n\n\n\n/**\nComment or uncomment the current selection. Will use line comments\nif available, otherwise falling back to block comments.\n*/\nconst toggleComment = target => {\n let { state } = target, line = state.doc.lineAt(state.selection.main.from), config = getConfig(target.state, line.from);\n return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;\n};\nfunction command(f, option) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let tr = f(option, state);\n if (!tr)\n return false;\n dispatch(state.update(tr));\n return true;\n };\n}\n/**\nComment or uncomment the current selection using line comments.\nThe line comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleLineComment = /*@__PURE__*/command(changeLineComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using line comments.\n*/\nconst lineComment = /*@__PURE__*/command(changeLineComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using line comments.\n*/\nconst lineUncomment = /*@__PURE__*/command(changeLineComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the current selection using block comments.\nThe block comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleBlockComment = /*@__PURE__*/command(changeBlockComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using block comments.\n*/\nconst blockComment = /*@__PURE__*/command(changeBlockComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using block comments.\n*/\nconst blockUncomment = /*@__PURE__*/command(changeBlockComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the lines around the current selection using\nblock comments.\n*/\nconst toggleBlockCommentByLine = /*@__PURE__*/command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);\nfunction getConfig(state, pos) {\n let data = state.languageDataAt(\"commentTokens\", pos);\n return data.length ? data[0] : {};\n}\nconst SearchMargin = 50;\n/**\nDetermines if the given range is block-commented in the given\nstate.\n*/\nfunction findBlockComment(state, { open, close }, from, to) {\n let textBefore = state.sliceDoc(from - SearchMargin, from);\n let textAfter = state.sliceDoc(to, to + SearchMargin);\n let spaceBefore = /\\s*$/.exec(textBefore)[0].length, spaceAfter = /^\\s*/.exec(textAfter)[0].length;\n let beforeOff = textBefore.length - spaceBefore;\n if (textBefore.slice(beforeOff - open.length, beforeOff) == open &&\n textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {\n return { open: { pos: from - spaceBefore, margin: spaceBefore && 1 },\n close: { pos: to + spaceAfter, margin: spaceAfter && 1 } };\n }\n let startText, endText;\n if (to - from <= 2 * SearchMargin) {\n startText = endText = state.sliceDoc(from, to);\n }\n else {\n startText = state.sliceDoc(from, from + SearchMargin);\n endText = state.sliceDoc(to - SearchMargin, to);\n }\n let startSpace = /^\\s*/.exec(startText)[0].length, endSpace = /\\s*$/.exec(endText)[0].length;\n let endOff = endText.length - endSpace - close.length;\n if (startText.slice(startSpace, startSpace + open.length) == open &&\n endText.slice(endOff, endOff + close.length) == close) {\n return { open: { pos: from + startSpace + open.length,\n margin: /\\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0 },\n close: { pos: to - endSpace - close.length,\n margin: /\\s/.test(endText.charAt(endOff - 1)) ? 1 : 0 } };\n }\n return null;\n}\nfunction selectedLineRanges(state) {\n let ranges = [];\n for (let r of state.selection.ranges) {\n let fromLine = state.doc.lineAt(r.from);\n let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);\n let last = ranges.length - 1;\n if (last >= 0 && ranges[last].to > fromLine.from)\n ranges[last].to = toLine.to;\n else\n ranges.push({ from: fromLine.from + /^\\s*/.exec(fromLine.text)[0].length, to: toLine.to });\n }\n return ranges;\n}\n// Performs toggle, comment and uncomment of block comments in\n// languages that support them.\nfunction changeBlockComment(option, state, ranges = state.selection.ranges) {\n let tokens = ranges.map(r => getConfig(state, r.from).block);\n if (!tokens.every(c => c))\n return null;\n let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));\n if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {\n return { changes: state.changes(ranges.map((range, i) => {\n if (comments[i])\n return [];\n return [{ from: range.from, insert: tokens[i].open + \" \" }, { from: range.to, insert: \" \" + tokens[i].close }];\n })) };\n }\n else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {\n let changes = [];\n for (let i = 0, comment; i < comments.length; i++)\n if (comment = comments[i]) {\n let token = tokens[i], { open, close } = comment;\n changes.push({ from: open.pos - token.open.length, to: open.pos + open.margin }, { from: close.pos - close.margin, to: close.pos + token.close.length });\n }\n return { changes };\n }\n return null;\n}\n// Performs toggle, comment and uncomment of line comments.\nfunction changeLineComment(option, state, ranges = state.selection.ranges) {\n let lines = [];\n let prevLine = -1;\n for (let { from, to } of ranges) {\n let startI = lines.length, minIndent = 1e9;\n let token = getConfig(state, from).line;\n if (!token)\n continue;\n for (let pos = from; pos <= to;) {\n let line = state.doc.lineAt(pos);\n if (line.from > prevLine && (from == to || to > line.from)) {\n prevLine = line.from;\n let indent = /^\\s*/.exec(line.text)[0].length;\n let empty = indent == line.length;\n let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;\n if (indent < line.text.length && indent < minIndent)\n minIndent = indent;\n lines.push({ line, comment, token, indent, empty, single: false });\n }\n pos = line.to + 1;\n }\n if (minIndent < 1e9)\n for (let i = startI; i < lines.length; i++)\n if (lines[i].indent < lines[i].line.text.length)\n lines[i].indent = minIndent;\n if (lines.length == startI + 1)\n lines[startI].single = true;\n }\n if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {\n let changes = [];\n for (let { line, token, indent, empty, single } of lines)\n if (single || !empty)\n changes.push({ from: line.from + indent, insert: token + \" \" });\n let changeSet = state.changes(changes);\n return { changes: changeSet, selection: state.selection.map(changeSet, 1) };\n }\n else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {\n let changes = [];\n for (let { line, comment, token } of lines)\n if (comment >= 0) {\n let from = line.from + comment, to = from + token.length;\n if (line.text[to - line.from] == \" \")\n to++;\n changes.push({ from, to });\n }\n return { changes };\n }\n return null;\n}\n\nconst fromHistory = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nTransaction annotation that will prevent that transaction from\nbeing combined with other transactions in the undo history. Given\n`\"before\"`, it'll prevent merging with previous transactions. With\n`\"after\"`, subsequent transactions won't be combined with this\none. With `\"full\"`, the transaction is isolated on both sides.\n*/\nconst isolateHistory = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nThis facet provides a way to register functions that, given a\ntransaction, provide a set of effects that the history should\nstore when inverting the transaction. This can be used to\nintegrate some kinds of effects in the history, so that they can\nbe undone (and redone again).\n*/\nconst invertedEffects = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define();\nconst historyConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(configs, {\n minDepth: 100,\n newGroupDelay: 500,\n joinToEvent: (_t, isAdjacent) => isAdjacent,\n }, {\n minDepth: Math.max,\n newGroupDelay: Math.min,\n joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)\n });\n }\n});\nfunction changeEnd(changes) {\n let end = 0;\n changes.iterChangedRanges((_, to) => end = to);\n return end;\n}\nconst historyField_ = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() {\n return HistoryState.empty;\n },\n update(state, tr) {\n let config = tr.state.facet(historyConfig);\n let fromHist = tr.annotation(fromHistory);\n if (fromHist) {\n let selection = tr.docChanged ? _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.single(changeEnd(tr.changes)) : undefined;\n let item = HistEvent.fromTransaction(tr, selection), from = fromHist.side;\n let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;\n if (item)\n other = updateBranch(other, other.length, config.minDepth, item);\n else\n other = addSelection(other, tr.startState.selection);\n return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);\n }\n let isolate = tr.annotation(isolateHistory);\n if (isolate == \"full\" || isolate == \"before\")\n state = state.isolate();\n if (tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.addToHistory) === false)\n return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;\n let event = HistEvent.fromTransaction(tr);\n let time = tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.time), userEvent = tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.userEvent);\n if (event)\n state = state.addChanges(event, time, userEvent, config, tr);\n else if (tr.selection)\n state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);\n if (isolate == \"full\" || isolate == \"after\")\n state = state.isolate();\n return state;\n },\n toJSON(value) {\n return { done: value.done.map(e => e.toJSON()), undone: value.undone.map(e => e.toJSON()) };\n },\n fromJSON(json) {\n return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));\n }\n});\n/**\nCreate a history extension with the given configuration.\n*/\nfunction history(config = {}) {\n return [\n historyField_,\n historyConfig.of(config),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.domEventHandlers({\n beforeinput(e, view) {\n let command = e.inputType == \"historyUndo\" ? undo : e.inputType == \"historyRedo\" ? redo : null;\n if (!command)\n return false;\n e.preventDefault();\n return command(view);\n }\n })\n ];\n}\n/**\nThe state field used to store the history data. Should probably\nonly be used when you want to\n[serialize](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) or\n[deserialize](https://codemirror.net/6/docs/ref/#state.EditorState^fromJSON) state objects in a way\nthat preserves history.\n*/\nconst historyField = historyField_;\nfunction cmd(side, selection) {\n return function ({ state, dispatch }) {\n if (!selection && state.readOnly)\n return false;\n let historyState = state.field(historyField_, false);\n if (!historyState)\n return false;\n let tr = historyState.pop(side, state, selection);\n if (!tr)\n return false;\n dispatch(tr);\n return true;\n };\n}\n/**\nUndo a single group of history events. Returns false if no group\nwas available.\n*/\nconst undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);\n/**\nRedo a group of history events. Returns false if no group was\navailable.\n*/\nconst redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);\n/**\nUndo a change or selection change.\n*/\nconst undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);\n/**\nRedo a change or selection change.\n*/\nconst redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);\nfunction depth(side) {\n return function (state) {\n let histState = state.field(historyField_, false);\n if (!histState)\n return 0;\n let branch = side == 0 /* BranchName.Done */ ? histState.done : histState.undone;\n return branch.length - (branch.length && !branch[0].changes ? 1 : 0);\n };\n}\n/**\nThe amount of undoable change events available in a given state.\n*/\nconst undoDepth = /*@__PURE__*/depth(0 /* BranchName.Done */);\n/**\nThe amount of redoable change events available in a given state.\n*/\nconst redoDepth = /*@__PURE__*/depth(1 /* BranchName.Undone */);\n// History events store groups of changes or effects that need to be\n// undone/redone together.\nclass HistEvent {\n constructor(\n // The changes in this event. Normal events hold at least one\n // change or effect. But it may be necessary to store selection\n // events before the first change, in which case a special type of\n // instance is created which doesn't hold any changes, with\n // changes == startSelection == undefined\n changes, \n // The effects associated with this event\n effects, \n // Accumulated mapping (from addToHistory==false) that should be\n // applied to events below this one.\n mapped, \n // The selection before this event\n startSelection, \n // Stores selection changes after this event, to be used for\n // selection undo/redo.\n selectionsAfter) {\n this.changes = changes;\n this.effects = effects;\n this.mapped = mapped;\n this.startSelection = startSelection;\n this.selectionsAfter = selectionsAfter;\n }\n setSelAfter(after) {\n return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);\n }\n toJSON() {\n var _a, _b, _c;\n return {\n changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),\n mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),\n startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),\n selectionsAfter: this.selectionsAfter.map(s => s.toJSON())\n };\n }\n static fromJSON(json) {\n return new HistEvent(json.changes && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.ChangeSet.fromJSON(json.changes), [], json.mapped && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.ChangeDesc.fromJSON(json.mapped), json.startSelection && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.fromJSON));\n }\n // This does not check `addToHistory` and such, it assumes the\n // transaction needs to be converted to an item. Returns null when\n // there are no changes or effects in the transaction.\n static fromTransaction(tr, selection) {\n let effects = none;\n for (let invert of tr.startState.facet(invertedEffects)) {\n let result = invert(tr);\n if (result.length)\n effects = effects.concat(result);\n }\n if (!effects.length && tr.changes.empty)\n return null;\n return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);\n }\n static selection(selections) {\n return new HistEvent(undefined, none, undefined, undefined, selections);\n }\n}\nfunction updateBranch(branch, to, maxLen, newEvent) {\n let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;\n let newBranch = branch.slice(start, to);\n newBranch.push(newEvent);\n return newBranch;\n}\nfunction isAdjacent(a, b) {\n let ranges = [], isAdjacent = false;\n a.iterChangedRanges((f, t) => ranges.push(f, t));\n b.iterChangedRanges((_f, _t, f, t) => {\n for (let i = 0; i < ranges.length;) {\n let from = ranges[i++], to = ranges[i++];\n if (t >= from && f <= to)\n isAdjacent = true;\n }\n });\n return isAdjacent;\n}\nfunction eqSelectionShape(a, b) {\n return a.ranges.length == b.ranges.length &&\n a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;\n}\nfunction conc(a, b) {\n return !a.length ? b : !b.length ? a : a.concat(b);\n}\nconst none = [];\nconst MaxSelectionsPerEvent = 200;\nfunction addSelection(branch, selection) {\n if (!branch.length) {\n return [HistEvent.selection([selection])];\n }\n else {\n let lastEvent = branch[branch.length - 1];\n let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));\n if (sels.length && sels[sels.length - 1].eq(selection))\n return branch;\n sels.push(selection);\n return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));\n }\n}\n// Assumes the top item has one or more selectionAfter values\nfunction popSelection(branch) {\n let last = branch[branch.length - 1];\n let newBranch = branch.slice();\n newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));\n return newBranch;\n}\n// Add a mapping to the top event in the given branch. If this maps\n// away all the changes and effects in that item, drop it and\n// propagate the mapping to the next item.\nfunction addMappingToBranch(branch, mapping) {\n if (!branch.length)\n return branch;\n let length = branch.length, selections = none;\n while (length) {\n let event = mapEvent(branch[length - 1], mapping, selections);\n if (event.changes && !event.changes.empty || event.effects.length) { // Event survived mapping\n let result = branch.slice(0, length);\n result[length - 1] = event;\n return result;\n }\n else { // Drop this event, since there's no changes or effects left\n mapping = event.mapped;\n length--;\n selections = event.selectionsAfter;\n }\n }\n return selections.length ? [HistEvent.selection(selections)] : none;\n}\nfunction mapEvent(event, mapping, extraSelections) {\n let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);\n // Change-less events don't store mappings (they are always the last event in a branch)\n if (!event.changes)\n return HistEvent.selection(selections);\n let mappedChanges = event.changes.map(mapping), before = mapping.mapDesc(event.changes, true);\n let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;\n return new HistEvent(mappedChanges, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);\n}\nconst joinableUserEvent = /^(input\\.type|delete)($|\\.)/;\nclass HistoryState {\n constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {\n this.done = done;\n this.undone = undone;\n this.prevTime = prevTime;\n this.prevUserEvent = prevUserEvent;\n }\n isolate() {\n return this.prevTime ? new HistoryState(this.done, this.undone) : this;\n }\n addChanges(event, time, userEvent, config, tr) {\n let done = this.done, lastEvent = done[done.length - 1];\n if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes &&\n (!userEvent || joinableUserEvent.test(userEvent)) &&\n ((!lastEvent.selectionsAfter.length &&\n time - this.prevTime < config.newGroupDelay &&\n config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes))) ||\n // For compose (but not compose.start) events, always join with previous event\n userEvent == \"input.type.compose\")) {\n done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));\n }\n else {\n done = updateBranch(done, done.length, config.minDepth, event);\n }\n return new HistoryState(done, none, time, userEvent);\n }\n addSelection(selection, time, userEvent, newGroupDelay) {\n let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;\n if (last.length > 0 &&\n time - this.prevTime < newGroupDelay &&\n userEvent == this.prevUserEvent && userEvent && /^select($|\\.)/.test(userEvent) &&\n eqSelectionShape(last[last.length - 1], selection))\n return this;\n return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);\n }\n addMapping(mapping) {\n return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);\n }\n pop(side, state, selection) {\n let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;\n if (branch.length == 0)\n return null;\n let event = branch[branch.length - 1];\n if (selection && event.selectionsAfter.length) {\n return state.update({\n selection: event.selectionsAfter[event.selectionsAfter.length - 1],\n annotations: fromHistory.of({ side, rest: popSelection(branch) }),\n userEvent: side == 0 /* BranchName.Done */ ? \"select.undo\" : \"select.redo\",\n scrollIntoView: true\n });\n }\n else if (!event.changes) {\n return null;\n }\n else {\n let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);\n if (event.mapped)\n rest = addMappingToBranch(rest, event.mapped);\n return state.update({\n changes: event.changes,\n selection: event.startSelection,\n effects: event.effects,\n annotations: fromHistory.of({ side, rest }),\n filter: false,\n userEvent: side == 0 /* BranchName.Done */ ? \"undo\" : \"redo\",\n scrollIntoView: true\n });\n }\n }\n}\nHistoryState.empty = /*@__PURE__*/new HistoryState(none, none);\n/**\nDefault key bindings for the undo history.\n\n- Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).\n- Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).\n- Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).\n- Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).\n*/\nconst historyKeymap = [\n { key: \"Mod-z\", run: undo, preventDefault: true },\n { key: \"Mod-y\", mac: \"Mod-Shift-z\", run: redo, preventDefault: true },\n { linux: \"Ctrl-Shift-z\", run: redo, preventDefault: true },\n { key: \"Mod-u\", run: undoSelection, preventDefault: true },\n { key: \"Alt-u\", mac: \"Mod-Shift-u\", run: redoSelection, preventDefault: true }\n];\n\nfunction updateSel(sel, by) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(sel.ranges.map(by), sel.mainIndex);\n}\nfunction setSel(state, selection) {\n return state.update({ selection, scrollIntoView: true, userEvent: \"select\" });\n}\nfunction moveSel({ state, dispatch }, how) {\n let selection = updateSel(state.selection, how);\n if (selection.eq(state.selection))\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\nfunction rangeEnd(range, forward) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(forward ? range.to : range.from);\n}\nfunction cursorByChar(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));\n}\nfunction ltrAtCursor(view) {\n return view.textDirectionAt(view.state.selection.main.head) == _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Direction.LTR;\n}\n/**\nMove the selection one character to the left (which is backward in\nleft-to-right text, forward in right-to-left text).\n*/\nconst cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));\n/**\nMove the selection one character to the right.\n*/\nconst cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));\n/**\nMove the selection one character forward.\n*/\nconst cursorCharForward = view => cursorByChar(view, true);\n/**\nMove the selection one character backward.\n*/\nconst cursorCharBackward = view => cursorByChar(view, false);\nfunction cursorByGroup(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection to the left across one group of word or\nnon-word (but also non-space) characters.\n*/\nconst cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection one group to the right.\n*/\nconst cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));\n/**\nMove the selection one group forward.\n*/\nconst cursorGroupForward = view => cursorByGroup(view, true);\n/**\nMove the selection one group backward.\n*/\nconst cursorGroupBackward = view => cursorByGroup(view, false);\nfunction moveBySubword(view, range, forward) {\n let categorize = view.state.charCategorizer(range.from);\n return view.moveByChar(range, forward, start => {\n let cat = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Space, pos = range.from;\n let done = false, sawUpper = false, sawLower = false;\n let step = (next) => {\n if (done)\n return false;\n pos += forward ? next.length : -next.length;\n let nextCat = categorize(next), ahead;\n if (nextCat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word && next.charCodeAt(0) < 128 && /[\\W_]/.test(next))\n nextCat = -1; // Treat word punctuation specially\n if (cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Space)\n cat = nextCat;\n if (cat != nextCat)\n return false;\n if (cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) {\n if (next.toLowerCase() == next) {\n if (!forward && sawUpper)\n return false;\n sawLower = true;\n }\n else if (sawLower) {\n if (forward)\n return false;\n done = true;\n }\n else {\n if (sawUpper && forward && categorize(ahead = view.state.sliceDoc(pos, pos + 1)) == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word &&\n ahead.toLowerCase() == ahead)\n return false;\n sawUpper = true;\n }\n }\n return true;\n };\n step(start);\n return step;\n });\n}\nfunction cursorBySubword(view, forward) {\n return moveSel(view, range => range.empty ? moveBySubword(view, range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection one group or camel-case subword forward.\n*/\nconst cursorSubwordForward = view => cursorBySubword(view, true);\n/**\nMove the selection one group or camel-case subword backward.\n*/\nconst cursorSubwordBackward = view => cursorBySubword(view, false);\nfunction interestingNode(state, node, bracketProp) {\n if (node.type.prop(bracketProp))\n return true;\n let len = node.to - node.from;\n return len && (len > 2 || /[^\\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;\n}\nfunction moveBySyntax(state, start, forward) {\n let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveInner(start.head);\n let bracketProp = forward ? _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy : _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.openedBy;\n // Scan forward through child nodes to see if there's an interesting\n // node ahead.\n for (let at = start.head;;) {\n let next = forward ? pos.childAfter(at) : pos.childBefore(at);\n if (!next)\n break;\n if (interestingNode(state, next, bracketProp))\n pos = next;\n else\n at = forward ? next.to : next.from;\n }\n let bracket = pos.type.prop(bracketProp), match, newPos;\n if (bracket && (match = forward ? (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, pos.from, 1) : (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, pos.to, -1)) && match.matched)\n newPos = forward ? match.end.to : match.end.from;\n else\n newPos = forward ? pos.to : pos.from;\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(newPos, forward ? -1 : 1);\n}\n/**\nMove the cursor over the next syntactic element to the left.\n*/\nconst cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the cursor over the next syntactic element to the right.\n*/\nconst cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction cursorByLine(view, forward) {\n return moveSel(view, range => {\n if (!range.empty)\n return rangeEnd(range, forward);\n let moved = view.moveVertically(range, forward);\n return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);\n });\n}\n/**\nMove the selection one line up.\n*/\nconst cursorLineUp = view => cursorByLine(view, false);\n/**\nMove the selection one line down.\n*/\nconst cursorLineDown = view => cursorByLine(view, true);\nfunction pageInfo(view) {\n let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;\n let marginTop = 0, marginBottom = 0, height;\n if (selfScroll) {\n for (let source of view.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.scrollMargins)) {\n let margins = source(view);\n if (margins === null || margins === void 0 ? void 0 : margins.top)\n marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);\n if (margins === null || margins === void 0 ? void 0 : margins.bottom)\n marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);\n }\n height = view.scrollDOM.clientHeight - marginTop - marginBottom;\n }\n else {\n height = (view.dom.ownerDocument.defaultView || window).innerHeight;\n }\n return { marginTop, marginBottom, selfScroll,\n height: Math.max(view.defaultLineHeight, height - 5) };\n}\nfunction cursorByPage(view, forward) {\n let page = pageInfo(view);\n let { state } = view, selection = updateSel(state.selection, range => {\n return range.empty ? view.moveVertically(range, forward, page.height)\n : rangeEnd(range, forward);\n });\n if (selection.eq(state.selection))\n return false;\n let effect;\n if (page.selfScroll) {\n let startPos = view.coordsAtPos(state.selection.main.head);\n let scrollRect = view.scrollDOM.getBoundingClientRect();\n let scrollTop = scrollRect.top + page.marginTop, scrollBottom = scrollRect.bottom - page.marginBottom;\n if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom)\n effect = _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.scrollIntoView(selection.main.head, { y: \"start\", yMargin: startPos.top - scrollTop });\n }\n view.dispatch(setSel(state, selection), { effects: effect });\n return true;\n}\n/**\nMove the selection one page up.\n*/\nconst cursorPageUp = view => cursorByPage(view, false);\n/**\nMove the selection one page down.\n*/\nconst cursorPageDown = view => cursorByPage(view, true);\nfunction moveByLineBoundary(view, start, forward) {\n let line = view.lineBlockAt(start.head), moved = view.moveToLineBoundary(start, forward);\n if (moved.head == start.head && moved.head != (forward ? line.to : line.from))\n moved = view.moveToLineBoundary(start, forward, false);\n if (!forward && moved.head == line.from && line.length) {\n let space = /^\\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;\n if (space && start.head != line.from + space)\n moved = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(line.from + space);\n }\n return moved;\n}\n/**\nMove the selection to the next line wrap point, or to the end of\nthe line if there isn't one left on this line.\n*/\nconst cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection to previous line wrap point, or failing that to\nthe start of the line. If the line is indented, and the cursor\nisn't already at the end of the indentation, this will move to the\nend of the indentation instead of the start of the line.\n*/\nconst cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection one line wrap point to the left.\n*/\nconst cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection one line wrap point to the right.\n*/\nconst cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection to the start of the line.\n*/\nconst cursorLineStart = view => moveSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));\n/**\nMove the selection to the end of the line.\n*/\nconst cursorLineEnd = view => moveSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));\nfunction toMatchingBracket(state, dispatch, extend) {\n let found = false, selection = updateSel(state.selection, range => {\n let matching = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head, -1)\n || (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head, 1)\n || (range.head > 0 && (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head - 1, 1))\n || (range.head < state.doc.length && (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head + 1, -1));\n if (!matching || !matching.end)\n return range;\n found = true;\n let head = matching.start.from == range.head ? matching.end.to : matching.end.from;\n return extend ? _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor, head) : _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(head);\n });\n if (!found)\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\n/**\nMove the selection to the bracket matching the one it is currently\non, if any.\n*/\nconst cursorMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, false);\n/**\nExtend the selection to the bracket matching the one the selection\nhead is currently on, if any.\n*/\nconst selectMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, true);\nfunction extendSel(view, how) {\n let selection = updateSel(view.state.selection, range => {\n let head = how(range);\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);\n });\n if (selection.eq(view.state.selection))\n return false;\n view.dispatch(setSel(view.state, selection));\n return true;\n}\nfunction selectByChar(view, forward) {\n return extendSel(view, range => view.moveByChar(range, forward));\n}\n/**\nMove the selection head one character to the left, while leaving\nthe anchor in place.\n*/\nconst selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));\n/**\nMove the selection head one character to the right.\n*/\nconst selectCharRight = view => selectByChar(view, ltrAtCursor(view));\n/**\nMove the selection head one character forward.\n*/\nconst selectCharForward = view => selectByChar(view, true);\n/**\nMove the selection head one character backward.\n*/\nconst selectCharBackward = view => selectByChar(view, false);\nfunction selectByGroup(view, forward) {\n return extendSel(view, range => view.moveByGroup(range, forward));\n}\n/**\nMove the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to\nthe left.\n*/\nconst selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection head one group to the right.\n*/\nconst selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));\n/**\nMove the selection head one group forward.\n*/\nconst selectGroupForward = view => selectByGroup(view, true);\n/**\nMove the selection head one group backward.\n*/\nconst selectGroupBackward = view => selectByGroup(view, false);\nfunction selectBySubword(view, forward) {\n return extendSel(view, range => moveBySubword(view, range, forward));\n}\n/**\nMove the selection head one group or camel-case subword forward.\n*/\nconst selectSubwordForward = view => selectBySubword(view, true);\n/**\nMove the selection head one group or subword backward.\n*/\nconst selectSubwordBackward = view => selectBySubword(view, false);\n/**\nMove the selection head over the next syntactic element to the left.\n*/\nconst selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the selection head over the next syntactic element to the right.\n*/\nconst selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction selectByLine(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward));\n}\n/**\nMove the selection head one line up.\n*/\nconst selectLineUp = view => selectByLine(view, false);\n/**\nMove the selection head one line down.\n*/\nconst selectLineDown = view => selectByLine(view, true);\nfunction selectByPage(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));\n}\n/**\nMove the selection head one page up.\n*/\nconst selectPageUp = view => selectByPage(view, false);\n/**\nMove the selection head one page down.\n*/\nconst selectPageDown = view => selectByPage(view, true);\n/**\nMove the selection head to the next line boundary.\n*/\nconst selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection head to the previous line boundary.\n*/\nconst selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection head one line boundary to the left.\n*/\nconst selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection head one line boundary to the right.\n*/\nconst selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection head to the start of the line.\n*/\nconst selectLineStart = view => extendSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).from));\n/**\nMove the selection head to the end of the line.\n*/\nconst selectLineEnd = view => extendSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).to));\n/**\nMove the selection to the start of the document.\n*/\nconst cursorDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: 0 }));\n return true;\n};\n/**\nMove the selection to the end of the document.\n*/\nconst cursorDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.doc.length }));\n return true;\n};\n/**\nMove the selection head to the start of the document.\n*/\nconst selectDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: 0 }));\n return true;\n};\n/**\nMove the selection head to the end of the document.\n*/\nconst selectDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: state.doc.length }));\n return true;\n};\n/**\nSelect the entire document.\n*/\nconst selectAll = ({ state, dispatch }) => {\n dispatch(state.update({ selection: { anchor: 0, head: state.doc.length }, userEvent: \"select\" }));\n return true;\n};\n/**\nExpand the selection to cover entire lines.\n*/\nconst selectLine = ({ state, dispatch }) => {\n let ranges = selectedLineBlocks(state).map(({ from, to }) => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(from, Math.min(to + 1, state.doc.length)));\n dispatch(state.update({ selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges), userEvent: \"select\" }));\n return true;\n};\n/**\nSelect the next syntactic construct that is larger than the\nselection. Note that this will only work insofar as the language\n[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full\nsyntax tree.\n*/\nconst selectParentSyntax = ({ state, dispatch }) => {\n let selection = updateSel(state.selection, range => {\n var _a;\n let context = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveInner(range.head, 1);\n while (!((context.from < range.from && context.to >= range.to) ||\n (context.to > range.to && context.from <= range.from) ||\n !((_a = context.parent) === null || _a === void 0 ? void 0 : _a.parent)))\n context = context.parent;\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(context.to, context.from);\n });\n dispatch(setSel(state, selection));\n return true;\n};\n/**\nSimplify the current selection. When multiple ranges are selected,\nreduce it to its main range. Otherwise, if the selection is\nnon-empty, convert it to a cursor selection.\n*/\nconst simplifySelection = ({ state, dispatch }) => {\n let cur = state.selection, selection = null;\n if (cur.ranges.length > 1)\n selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create([cur.main]);\n else if (!cur.main.empty)\n selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create([_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(cur.main.head)]);\n if (!selection)\n return false;\n dispatch(setSel(state, selection));\n return true;\n};\nfunction deleteBy(target, by) {\n if (target.state.readOnly)\n return false;\n let event = \"delete.selection\", { state } = target;\n let changes = state.changeByRange(range => {\n let { from, to } = range;\n if (from == to) {\n let towards = by(from);\n if (towards < from) {\n event = \"delete.backward\";\n towards = skipAtomic(target, towards, false);\n }\n else if (towards > from) {\n event = \"delete.forward\";\n towards = skipAtomic(target, towards, true);\n }\n from = Math.min(from, towards);\n to = Math.max(to, towards);\n }\n else {\n from = skipAtomic(target, from, false);\n to = skipAtomic(target, to, true);\n }\n return from == to ? { range } : { changes: { from, to }, range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(from) };\n });\n if (changes.changes.empty)\n return false;\n target.dispatch(state.update(changes, {\n scrollIntoView: true,\n userEvent: event,\n effects: event == \"delete.selection\" ? _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.announce.of(state.phrase(\"Selection deleted\")) : undefined\n }));\n return true;\n}\nfunction skipAtomic(target, pos, forward) {\n if (target instanceof _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView)\n for (let ranges of target.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.atomicRanges).map(f => f(target)))\n ranges.between(pos, pos, (from, to) => {\n if (from < pos && to > pos)\n pos = forward ? to : from;\n });\n return pos;\n}\nconst deleteByChar = (target, forward) => deleteBy(target, pos => {\n let { state } = target, line = state.doc.lineAt(pos), before, targetPos;\n if (!forward && pos > line.from && pos < line.from + 200 &&\n !/[^ \\t]/.test(before = line.text.slice(0, pos - line.from))) {\n if (before[before.length - 1] == \"\\t\")\n return pos - 1;\n let col = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.countColumn)(before, state.tabSize), drop = col % (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state) || (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state);\n for (let i = 0; i < drop && before[before.length - 1 - i] == \" \"; i++)\n pos--;\n targetPos = pos;\n }\n else {\n targetPos = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, forward, forward) + line.from;\n if (targetPos == pos && line.number != (forward ? state.doc.lines : 1))\n targetPos += forward ? 1 : -1;\n }\n return targetPos;\n});\n/**\nDelete the selection, or, for cursor selections, the character\nbefore the cursor.\n*/\nconst deleteCharBackward = view => deleteByChar(view, false);\n/**\nDelete the selection or the character after the cursor.\n*/\nconst deleteCharForward = view => deleteByChar(view, true);\nconst deleteByGroup = (target, forward) => deleteBy(target, start => {\n let pos = start, { state } = target, line = state.doc.lineAt(pos);\n let categorize = state.charCategorizer(pos);\n for (let cat = null;;) {\n if (pos == (forward ? line.to : line.from)) {\n if (pos == start && line.number != (forward ? state.doc.lines : 1))\n pos += forward ? 1 : -1;\n break;\n }\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, forward) + line.from;\n let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);\n let nextCat = categorize(nextChar);\n if (cat != null && nextCat != cat)\n break;\n if (nextChar != \" \" || pos != start)\n cat = nextCat;\n pos = next;\n }\n return pos;\n});\n/**\nDelete the selection or backward until the end of the next\n[group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of\nwhitespace when they consist of a single space.\n*/\nconst deleteGroupBackward = target => deleteByGroup(target, false);\n/**\nDelete the selection or forward until the end of the next group.\n*/\nconst deleteGroupForward = target => deleteByGroup(target, true);\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe end of the line. If the cursor is directly at the end of the\nline, delete the line break after it.\n*/\nconst deleteToLineEnd = view => deleteBy(view, pos => {\n let lineEnd = view.lineBlockAt(pos).to;\n return pos < lineEnd ? lineEnd : Math.min(view.state.doc.length, pos + 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe start of the line. If the cursor is directly at the start of the\nline, delete the line break before it.\n*/\nconst deleteToLineStart = view => deleteBy(view, pos => {\n let lineStart = view.lineBlockAt(pos).from;\n return pos > lineStart ? lineStart : Math.max(0, pos - 1);\n});\n/**\nDelete all whitespace directly before a line end from the\ndocument.\n*/\nconst deleteTrailingWhitespace = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let pos = 0, prev = \"\", iter = state.doc.iter();;) {\n iter.next();\n if (iter.lineBreak || iter.done) {\n let trailing = prev.search(/\\s+$/);\n if (trailing > -1)\n changes.push({ from: pos - (prev.length - trailing), to: pos });\n if (iter.done)\n break;\n prev = \"\";\n }\n else {\n prev = iter.value;\n }\n pos += iter.value.length;\n }\n if (!changes.length)\n return false;\n dispatch(state.update({ changes, userEvent: \"delete\" }));\n return true;\n};\n/**\nReplace each selection range with a line break, leaving the cursor\non the line before the break.\n*/\nconst splitLine = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n return { changes: { from: range.from, to: range.to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of([\"\", \"\"]) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.from) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nFlip the characters before and after the cursor(s).\n*/\nconst transposeChars = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n if (!range.empty || range.from == 0 || range.from == state.doc.length)\n return { range };\n let pos = range.from, line = state.doc.lineAt(pos);\n let from = pos == line.from ? pos - 1 : (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, false) + line.from;\n let to = pos == line.to ? pos + 1 : (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, true) + line.from;\n return { changes: { from, to, insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos)) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(to) };\n });\n if (changes.changes.empty)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"move.character\" }));\n return true;\n};\nfunction selectedLineBlocks(state) {\n let blocks = [], upto = -1;\n for (let range of state.selection.ranges) {\n let startLine = state.doc.lineAt(range.from), endLine = state.doc.lineAt(range.to);\n if (!range.empty && range.to == endLine.from)\n endLine = state.doc.lineAt(range.to - 1);\n if (upto >= startLine.number) {\n let prev = blocks[blocks.length - 1];\n prev.to = endLine.to;\n prev.ranges.push(range);\n }\n else {\n blocks.push({ from: startLine.from, to: endLine.to, ranges: [range] });\n }\n upto = endLine.number + 1;\n }\n return blocks;\n}\nfunction moveLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [], ranges = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward ? block.to == state.doc.length : block.from == 0)\n continue;\n let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);\n let size = nextLine.length + 1;\n if (forward) {\n changes.push({ from: block.to, to: nextLine.to }, { from: block.from, insert: nextLine.text + state.lineBreak });\n for (let r of block.ranges)\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));\n }\n else {\n changes.push({ from: nextLine.from, to: block.from }, { from: block.to, insert: state.lineBreak + nextLine.text });\n for (let r of block.ranges)\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(r.anchor - size, r.head - size));\n }\n }\n if (!changes.length)\n return false;\n dispatch(state.update({\n changes,\n scrollIntoView: true,\n selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges, state.selection.mainIndex),\n userEvent: \"move.line\"\n }));\n return true;\n}\n/**\nMove the selected lines up one line.\n*/\nconst moveLineUp = ({ state, dispatch }) => moveLine(state, dispatch, false);\n/**\nMove the selected lines down one line.\n*/\nconst moveLineDown = ({ state, dispatch }) => moveLine(state, dispatch, true);\nfunction copyLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward)\n changes.push({ from: block.from, insert: state.doc.slice(block.from, block.to) + state.lineBreak });\n else\n changes.push({ from: block.to, insert: state.lineBreak + state.doc.slice(block.from, block.to) });\n }\n dispatch(state.update({ changes, scrollIntoView: true, userEvent: \"input.copyline\" }));\n return true;\n}\n/**\nCreate a copy of the selected lines. Keep the selection in the top copy.\n*/\nconst copyLineUp = ({ state, dispatch }) => copyLine(state, dispatch, false);\n/**\nCreate a copy of the selected lines. Keep the selection in the bottom copy.\n*/\nconst copyLineDown = ({ state, dispatch }) => copyLine(state, dispatch, true);\n/**\nDelete selected lines.\n*/\nconst deleteLine = view => {\n if (view.state.readOnly)\n return false;\n let { state } = view, changes = state.changes(selectedLineBlocks(state).map(({ from, to }) => {\n if (from > 0)\n from--;\n else if (to < state.doc.length)\n to++;\n return { from, to };\n }));\n let selection = updateSel(state.selection, range => view.moveVertically(range, true)).map(changes);\n view.dispatch({ changes, selection, scrollIntoView: true, userEvent: \"delete.line\" });\n return true;\n};\n/**\nReplace the selection with a newline.\n*/\nconst insertNewline = ({ state, dispatch }) => {\n dispatch(state.update(state.replaceSelection(state.lineBreak), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\nfunction isBetweenBrackets(state, pos) {\n if (/\\(\\)|\\[\\]|\\{\\}/.test(state.sliceDoc(pos - 1, pos + 1)))\n return { from: pos, to: pos };\n let context = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveInner(pos);\n let before = context.childBefore(pos), after = context.childAfter(pos), closedBy;\n if (before && after && before.to <= pos && after.from >= pos &&\n (closedBy = before.type.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 &&\n state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from)\n return { from: before.to, to: after.from };\n return null;\n}\n/**\nReplace the selection with a newline and indent the newly created\nline(s). If the current line consists only of whitespace, this\nwill also delete that whitespace. When the cursor is between\nmatching brackets, an additional newline will be inserted after\nthe cursor.\n*/\nconst insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);\n/**\nCreate a blank, indented line below the current line.\n*/\nconst insertBlankLine = /*@__PURE__*/newlineAndIndent(true);\nfunction newlineAndIndent(atEof) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n let { from, to } = range, line = state.doc.lineAt(from);\n let explode = !atEof && from == to && isBetweenBrackets(state, from);\n if (atEof)\n from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;\n let cx = new _codemirror_language__WEBPACK_IMPORTED_MODULE_3__.IndentContext(state, { simulateBreak: from, simulateDoubleBreak: !!explode });\n let indent = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentation)(cx, from);\n if (indent == null)\n indent = /^\\s*/.exec(state.doc.lineAt(from).text)[0].length;\n while (to < line.to && /\\s/.test(line.text[to - line.from]))\n to++;\n if (explode)\n ({ from, to } = explode);\n else if (from > line.from && from < line.from + 100 && !/\\S/.test(line.text.slice(0, from)))\n from = line.from;\n let insert = [\"\", (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, indent)];\n if (explode)\n insert.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, cx.lineIndent(line.from, -1)));\n return { changes: { from, to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of(insert) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(from + 1 + insert[1].length) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n };\n}\nfunction changeBySelectedLine(state, f) {\n let atLine = -1;\n return state.changeByRange(range => {\n let changes = [];\n for (let pos = range.from; pos <= range.to;) {\n let line = state.doc.lineAt(pos);\n if (line.number > atLine && (range.empty || range.to > line.from)) {\n f(line, changes, range);\n atLine = line.number;\n }\n pos = line.to + 1;\n }\n let changeSet = state.changes(changes);\n return { changes,\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1)) };\n });\n}\n/**\nAuto-indent the selected lines. This uses the [indentation service\nfacet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent\ninformation.\n*/\nconst indentSelection = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let updated = Object.create(null);\n let context = new _codemirror_language__WEBPACK_IMPORTED_MODULE_3__.IndentContext(state, { overrideIndentation: start => {\n let found = updated[start];\n return found == null ? -1 : found;\n } });\n let changes = changeBySelectedLine(state, (line, changes, range) => {\n let indent = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentation)(context, line.from);\n if (indent == null)\n return;\n if (!/\\S/.test(line.text))\n indent = 0;\n let cur = /^\\s*/.exec(line.text)[0];\n let norm = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, indent);\n if (cur != norm || range.from < line.from + cur.length) {\n updated[line.from] = indent;\n changes.push({ from: line.from, to: line.from + cur.length, insert: norm });\n }\n });\n if (!changes.changes.empty)\n dispatch(state.update(changes, { userEvent: \"indent\" }));\n return true;\n};\n/**\nAdd a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected\nlines.\n*/\nconst indentMore = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n changes.push({ from: line.from, insert: state.facet(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentUnit) });\n }), { userEvent: \"input.indent\" }));\n return true;\n};\n/**\nRemove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all\nselected lines.\n*/\nconst indentLess = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n let space = /^\\s*/.exec(line.text)[0];\n if (!space)\n return;\n let col = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.countColumn)(space, state.tabSize), keep = 0;\n let insert = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, Math.max(0, col - (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state)));\n while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep))\n keep++;\n changes.push({ from: line.from + keep, to: line.from + space.length, insert: insert.slice(keep) });\n }), { userEvent: \"delete.dedent\" }));\n return true;\n};\n/**\nInsert a tab character at the cursor or, if something is selected,\nuse [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) to indent the entire\nselection.\n*/\nconst insertTab = ({ state, dispatch }) => {\n if (state.selection.ranges.some(r => !r.empty))\n return indentMore({ state, dispatch });\n dispatch(state.update(state.replaceSelection(\"\\t\"), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nArray of key bindings containing the Emacs-style bindings that are\navailable on macOS by default.\n\n - Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)\n - Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)\n - Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)\n - Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)\n - Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)\n*/\nconst emacsStyleKeymap = [\n { key: \"Ctrl-b\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Ctrl-f\", run: cursorCharRight, shift: selectCharRight },\n { key: \"Ctrl-p\", run: cursorLineUp, shift: selectLineUp },\n { key: \"Ctrl-n\", run: cursorLineDown, shift: selectLineDown },\n { key: \"Ctrl-a\", run: cursorLineStart, shift: selectLineStart },\n { key: \"Ctrl-e\", run: cursorLineEnd, shift: selectLineEnd },\n { key: \"Ctrl-d\", run: deleteCharForward },\n { key: \"Ctrl-h\", run: deleteCharBackward },\n { key: \"Ctrl-k\", run: deleteToLineEnd },\n { key: \"Ctrl-Alt-h\", run: deleteGroupBackward },\n { key: \"Ctrl-o\", run: splitLine },\n { key: \"Ctrl-t\", run: transposeChars },\n { key: \"Ctrl-v\", run: cursorPageDown },\n];\n/**\nAn array of key bindings closely sticking to platform-standard or\nwidely used bindings. (This includes the bindings from\n[`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`\nproperty changed to `mac`.)\n\n - ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)\n - Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)\n - Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)\n - End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)\n - Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)\n - Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)\n - Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)\n - Cmd-Backspace (macOS): [`deleteToLineStart`](https://codemirror.net/6/docs/ref/#commands.deleteToLineStart).\n - Cmd-Delete (macOS): [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd).\n*/\nconst standardKeymap = /*@__PURE__*/[\n { key: \"ArrowLeft\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Mod-ArrowLeft\", mac: \"Alt-ArrowLeft\", run: cursorGroupLeft, shift: selectGroupLeft, preventDefault: true },\n { mac: \"Cmd-ArrowLeft\", run: cursorLineBoundaryLeft, shift: selectLineBoundaryLeft, preventDefault: true },\n { key: \"ArrowRight\", run: cursorCharRight, shift: selectCharRight, preventDefault: true },\n { key: \"Mod-ArrowRight\", mac: \"Alt-ArrowRight\", run: cursorGroupRight, shift: selectGroupRight, preventDefault: true },\n { mac: \"Cmd-ArrowRight\", run: cursorLineBoundaryRight, shift: selectLineBoundaryRight, preventDefault: true },\n { key: \"ArrowUp\", run: cursorLineUp, shift: selectLineUp, preventDefault: true },\n { mac: \"Cmd-ArrowUp\", run: cursorDocStart, shift: selectDocStart },\n { mac: \"Ctrl-ArrowUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"ArrowDown\", run: cursorLineDown, shift: selectLineDown, preventDefault: true },\n { mac: \"Cmd-ArrowDown\", run: cursorDocEnd, shift: selectDocEnd },\n { mac: \"Ctrl-ArrowDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"PageUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"PageDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"Home\", run: cursorLineBoundaryBackward, shift: selectLineBoundaryBackward, preventDefault: true },\n { key: \"Mod-Home\", run: cursorDocStart, shift: selectDocStart },\n { key: \"End\", run: cursorLineBoundaryForward, shift: selectLineBoundaryForward, preventDefault: true },\n { key: \"Mod-End\", run: cursorDocEnd, shift: selectDocEnd },\n { key: \"Enter\", run: insertNewlineAndIndent },\n { key: \"Mod-a\", run: selectAll },\n { key: \"Backspace\", run: deleteCharBackward, shift: deleteCharBackward },\n { key: \"Delete\", run: deleteCharForward },\n { key: \"Mod-Backspace\", mac: \"Alt-Backspace\", run: deleteGroupBackward },\n { key: \"Mod-Delete\", mac: \"Alt-Delete\", run: deleteGroupForward },\n { mac: \"Mod-Backspace\", run: deleteToLineStart },\n { mac: \"Mod-Delete\", run: deleteToLineEnd }\n].concat(/*@__PURE__*/emacsStyleKeymap.map(b => ({ mac: b.key, run: b.run, shift: b.shift })));\n/**\nThe default keymap. Includes all bindings from\n[`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:\n\n- Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)\n- Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)\n- Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)\n- Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)\n- Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)\n- Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)\n- Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)\n- Ctrl-Enter (Cmd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)\n- Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)\n- Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)\n- Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)\n- Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)\n- Ctrl-Alt-\\\\ (Cmd-Alt-\\\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)\n- Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)\n- Shift-Ctrl-\\\\ (Shift-Cmd-\\\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)\n- Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).\n- Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).\n*/\nconst defaultKeymap = /*@__PURE__*/[\n { key: \"Alt-ArrowLeft\", mac: \"Ctrl-ArrowLeft\", run: cursorSyntaxLeft, shift: selectSyntaxLeft },\n { key: \"Alt-ArrowRight\", mac: \"Ctrl-ArrowRight\", run: cursorSyntaxRight, shift: selectSyntaxRight },\n { key: \"Alt-ArrowUp\", run: moveLineUp },\n { key: \"Shift-Alt-ArrowUp\", run: copyLineUp },\n { key: \"Alt-ArrowDown\", run: moveLineDown },\n { key: \"Shift-Alt-ArrowDown\", run: copyLineDown },\n { key: \"Escape\", run: simplifySelection },\n { key: \"Mod-Enter\", run: insertBlankLine },\n { key: \"Alt-l\", mac: \"Ctrl-l\", run: selectLine },\n { key: \"Mod-i\", run: selectParentSyntax, preventDefault: true },\n { key: \"Mod-[\", run: indentLess },\n { key: \"Mod-]\", run: indentMore },\n { key: \"Mod-Alt-\\\\\", run: indentSelection },\n { key: \"Shift-Mod-k\", run: deleteLine },\n { key: \"Shift-Mod-\\\\\", run: cursorMatchingBracket },\n { key: \"Mod-/\", run: toggleComment },\n { key: \"Alt-A\", run: toggleBlockComment }\n].concat(standardKeymap);\n/**\nA binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and\nShift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).\nPlease see the [Tab example](../../examples/tab/) before using\nthis.\n*/\nconst indentWithTab = { key: \"Tab\", run: indentMore, shift: indentLess };\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGNvZGVtaXJyb3IvY29tbWFuZHMvZGlzdC9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBc007QUFDN0k7QUFDZ0Y7QUFDaEc7O0FBRXpDO0FBQ0E7QUF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5mcm9tID4gcHJldkxpbmUgJiYgKGZyb20gPT0gdG8gfHwgdG8gPiBsaW5lLmZyb20pKSB7XG4gICAgICAgICAgICAgICAgcHJldkxpbmUgPSBsaW5lLmZyb207XG4gICAgICAgICAgICAgICAgbGV0IGluZGVudCA9IC9eXFxzKi8uZXhlYyhsaW5lLnRleHQpWzBdLmxlbmd0aDtcbiAgICAgICAgICAgICAgICBsZXQgZW1wdHkgPSBpbmRlbnQgPT0gbGluZS5sZW5ndGg7XG4gICAgICAgICAgICAgICAgbGV0IGNvbW1lbnQgPSBsaW5lLnRleHQuc2xpY2UoaW5kZW50LCBpbmRlbnQgKyB0b2tlbi5sZW5ndGgpID09IHRva2VuID8gaW5kZW50IDogLTE7XG4gICAgICAgICAgICAgICAgaWYgKGluZGVudCA8IGxpbmUudGV4dC5sZW5ndGggJiYgaW5kZW50IDwgbWluSW5kZW50KVxuICAgICAgICAgICAgICAgICAgICBtaW5JbmRlbnQgPSBpbmRlbnQ7XG4gICAgICAgICAgICAgICAgbGluZXMucHVzaCh7IGxpbmUsIGNvbW1lbnQsIHRva2VuLCBpbmRlbnQsIGVtcHR5LCBzaW5nbGU6IGZhbHNlIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcG9zID0gbGluZS50byArIDE7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG1pbkluZGVudCA8IDFlOSlcbiAgICAgICAgICAgIGZvciAobGV0IGkgPSBzdGFydEk7IGkgPCBsaW5lcy5sZW5ndGg7IGkrKylcbiAgICAgICAgICAgICAgICBpZiAobGluZXNbaV0uaW5kZW50IDwgbGluZXNbaV0ubGluZS50ZXh0Lmxlbmd0aClcbiAgICAgICAgICAgICAgICAgICAgbGluZXNbaV0uaW5kZW50ID0gbWluSW5kZW50O1xuICAgICAgICBpZiAobGluZXMubGVuZ3RoID09IHN0YXJ0SSArIDEpXG4gICAgICAgICAgICBsaW5lc1tzdGFydEldLnNpbmdsZSA9IHRydWU7XG4gICAgfVxuICAgI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AgICAgICAgICAgICAgIHVzZXJFdmVudDogc2lkZSA9PSAwIC8qIEJyYW5jaE5hbWUuRG9uZSAqLyA/IFwic2VsZWN0LnVuZG9cIiA6IFwic2VsZWN0LnJlZG9cIixcbiAgICAgICAgICAgICAgICBzY3JvbGxJbnRvVmlldzogdHJ1ZVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZiAoIWV2ZW50LmNoYW5nZXMpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgbGV0IHJlc3QgPSBicmFuY2gubGVuZ3RoID09IDEgPyBub25lIDogYnJhbmNoLnNsaWNlKDAsIGJyYW5jaC5sZW5ndGggLSAxKTtcbiAgICAgICAgICAgIGlmIChldmVudC5tYXBwZWQpXG4gICAgICAgICAgICAgICAgcmVzdCA9IGFkZE1hcHBpbmdUb0JyYW5jaChyZXN0LCBldmVudC5tYXBwZWQpO1xuICAgICAgICAgICAgcmV0dXJuIHN0YXRlLnVwZGF0ZSh7XG4gICAgICAgICAgICAgICAgY2hhbmdlczogZXZlbnQuY2hhbmdlcyxcbiAgICAgICAgICAgICAgICBzZWxlY3Rpb246IGV2ZW50LnN0YXJ0U2VsZWN0aW9uLFxuICAgICAgICAgICAgICAgIGVmZmVjdHM6IGV2ZW50LmVmZmVjdHMsXG4gICAgICAgICAgICAgICAgYW5ub3RhdGlvbnM6IGZyb21IaXN0b3J5Lm9mKHsgc2lkZSwgcmVzdCB9KSxcbiAgICAgICAgICAgICAgICBmaWx0ZXI6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHVzZXJFdmVudDogc2lkZSA9PSAwIC8qIEJyYW5jaE5hbWUuRG9uZSAqLyA/IFwidW5kb1wiIDogXCJyZWRvXCIsXG4gICAgICAgICAgICAgICAgc2Nyb2xsSW50b1ZpZXc6IHRydWVcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfV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UsIHBvcyA9IHJhbmdlLmZyb207XG4gICAgICAgIGxldCBkb25lID0gZmFsc2UsIHNhd1VwcGVyID0gZmFsc2UsIHNhd0xvd2VyID0gZmFsc2U7XG4gICAgICAgIGxldCBzdGVwID0gKG5leHQpID0+IHtcbiAgICAgICAgICAgIGlmIChkb25lKVxuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIHBvcyArPSBmb3J3YXJkID8gbmV4dC5sZW5ndGggOiAtbmV4dC5sZW5ndGg7XG4gICAgICAgICAgICBsZXQgbmV4dENhdCA9IGNhdGVnb3JpemUobmV4dCksIGFoZWFkO1xuICAgICAgICAgICAgaWYgKG5leHRDYXQgPT0gQ2hhckNhdGVnb3J5LldvcmQgJiYgbmV4dC5jaGFyQ29kZUF0KDApIDwgMTI4ICYmIC9bXFxXX10vLnRlc3QobmV4dCkpXG4gICAgICAgICAgICAgICAgbmV4dENhdCA9IC0xOyAvLyBUcmVhdCB3b3JkIHB1bmN0dWF0aW9uIHNwZWNpYWxseVxuICAgICAgICAgICAgaWYgKGNhdCA9PSBDaGFyQ2F0ZWdvcnkuU3BhY2UpXG4gICAgICAgICAgICAgICAgY2F0ID0gbmV4dENhdDtcbiAgICAgICAgICAgIGlmIChjYXQgIT0gbmV4dENhdClcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICBpZiAoY2F0ID09IENoYXJDYXRlZ29yeS5Xb3JkKSB7XG4gICAgICAgICAgICAgICAgaWYgKG5leHQudG9Mb3dlckNhc2UoKSA9PSBuZXh0KSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghZm9yd2FyZCAmJiBzYXdVcHBlcilcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgc2F3TG93ZXIgPSB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIGlmIChzYXdMb3dlcikge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZm9yd2FyZClcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgZG9uZSA9IHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAoc2F3VXBwZXIgJiYgZm9yd2FyZCAmJiBjYXRlZ29yaXplKGFoZWFkID0gdmlldy5zdGF0ZS5zbGljZURvYyhwb3MsIHBvcyArIDEpKSA9PSBDaGFyQ2F0ZWdvcnkuV29yZCAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgYWhlYWQudG9Mb3dlckNhc2UoKSA9PSBhaGVhZClcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgc2F3VXBwZXIgPSB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9O1xuICAgICAgICBzdGVwKHN0YXJ0KTtcbiAgICAgICAgcmV0dXJuIHN0ZXA7XG4gICAgfSk7XG59XG5mdW5jdGlvbiBjdXJzb3JCeVN1YndvcmQodmlldywgZm9yd2FyZCkge1xuICAgIHJldHVybiBtb3ZlU2VsKHZpZXcsIHJhbmdlID0+IHJhbmdlLmVtcHR5ID8gbW92ZUJ5U3Vid29yZCh2aWV3LCByYW5nZSwgZm9yd2FyZCkgOiByYW5nZUVuZChyYW5nZSwgZm9yd2FyZCkpO1xufVxuLyoqXG5Nb3ZlIHRoZSBzZWxlY3Rpb24gb25lIGdyb3VwIG9yIGNhbWVsLWNhc2Ugc3Vid29yZCBmb3J3YXJkLlxuKi9cbmNvbnN0IGN1cnNvclN1YndvcmRGb3J3YXJkID0gdmlldyA9PiBjdXJzb3JCeVN1YndvcmQodmlldywgdHJ1ZSk7XG4vKipcbk1vdmUgdGhlIHNlb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Zyb20gPT0gMClcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICBsZXQgbmV4dExpbmUgPSBzdGF0ZS5kb2MubGluZUF0KGZvcndhcmQgPyBibG9jay50byArIDEgOiBibG9jay5mcm9tIC0gMSk7XG4gICAgICAgIGxldCBzaXplID0gbmV4dExpbmUubGVuZ3RoICsgMTtcbiAgICAgICAgaWYgKGZvcndhcmQpIHtcbiAgICAgICAgICAgIGNoYW5nZXMucHVzaCh7IGZyb206IGJsb2NrLnRvLCB0bzogbmV4dExpbmUudG8gfSwgeyBmcm9tOiBibG9jay5mcm9tLCBpbnNlcnQ6IG5leHRMaW5lLnRleHQgKyBzdGF0ZS5saW5lQnJlYWsgfSk7XG4gICAgICAgICAgICBmb3IgKGxldCByIG9mIGJsb2NrLnJhbmdlcylcbiAgICAgICAgICAgICAgICByYW5nZXMucHVzaChFZGl0b3JTZWxlY3Rpb24ucmFuZ2UoTWF0aC5taW4oc3RhdGUuZG9jLmxlbmd0aCwgci5hbmNob3IgKyBzaXplKSwgTWF0aC5taW4oc3RhdGUuZG9jLmxlbmd0aCwgci5oZWFkICsgc2l6ZSkpKTtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGNoYW5nZXMucHVzaCh7IGZyb206IG5leHRMaW5lLmZyb20sIHRvOiBibG9jay5mcm9tIH0sIHsgZnJvbTogYmxvY2sudG8sIGluc2VydDogc3RhdGUubGluZUJyZWFrICsgbmV4dExpbmUudGV4dCB9KTtcbiAgICAgICAgICAgIGZvciAobGV0IHIgb2YgYmxvY2sucmFuZ2VzKVxuICAgICAgICAgICAgICAgIHJhbmdlcy5wdXNoKEVkaXRvclNlbGVjdGlvbi5yYW5nZShyLmFuY2hvciAtIHNpemUsIHIuaGVhZCAtIHNpemUpKTtcbiAgICAgICAgfVxuICAgIH1cbiAgICBpZiAoIWNoYW5nZXMubGVuZ3RoKVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgZGlzcGF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07XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@codemirror/commands/dist/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@codemirror/lang-css/dist/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/@codemirror/lang-css/dist/index.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___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 */ \"css\": () => (/* binding */ css),\n/* harmony export */ \"cssCompletionSource\": () => (/* binding */ cssCompletionSource),\n/* harmony export */ \"cssLanguage\": () => (/* binding */ cssLanguage),\n/* harmony export */ \"defineCSSCompletionSource\": () => (/* binding */ defineCSSCompletionSource)\n/* harmony export */ });\n/* harmony import */ var _lezer_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/css */ \"./node_modules/@lezer/css/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n\n\n\n\nlet _properties = null;\nfunction properties() {\n if (!_properties && typeof document == \"object\" && document.body) {\n let { style } = document.body, names = [], seen = new Set;\n for (let prop in style)\n if (prop != \"cssText\" && prop != \"cssFloat\") {\n if (typeof style[prop] == \"string\") {\n if (/[A-Z]/.test(prop))\n prop = prop.replace(/[A-Z]/g, ch => \"-\" + ch.toLowerCase());\n if (!seen.has(prop)) {\n names.push(prop);\n seen.add(prop);\n }\n }\n }\n _properties = names.sort().map(name => ({ type: \"property\", label: name }));\n }\n return _properties || [];\n}\nconst pseudoClasses = /*@__PURE__*/[\n \"active\", \"after\", \"any-link\", \"autofill\", \"backdrop\", \"before\",\n \"checked\", \"cue\", \"default\", \"defined\", \"disabled\", \"empty\",\n \"enabled\", \"file-selector-button\", \"first\", \"first-child\",\n \"first-letter\", \"first-line\", \"first-of-type\", \"focus\",\n \"focus-visible\", \"focus-within\", \"fullscreen\", \"has\", \"host\",\n \"host-context\", \"hover\", \"in-range\", \"indeterminate\", \"invalid\",\n \"is\", \"lang\", \"last-child\", \"last-of-type\", \"left\", \"link\", \"marker\",\n \"modal\", \"not\", \"nth-child\", \"nth-last-child\", \"nth-last-of-type\",\n \"nth-of-type\", \"only-child\", \"only-of-type\", \"optional\", \"out-of-range\",\n \"part\", \"placeholder\", \"placeholder-shown\", \"read-only\", \"read-write\",\n \"required\", \"right\", \"root\", \"scope\", \"selection\", \"slotted\", \"target\",\n \"target-text\", \"valid\", \"visited\", \"where\"\n].map(name => ({ type: \"class\", label: name }));\nconst values = /*@__PURE__*/[\n \"above\", \"absolute\", \"activeborder\", \"additive\", \"activecaption\", \"after-white-space\",\n \"ahead\", \"alias\", \"all\", \"all-scroll\", \"alphabetic\", \"alternate\", \"always\",\n \"antialiased\", \"appworkspace\", \"asterisks\", \"attr\", \"auto\", \"auto-flow\", \"avoid\", \"avoid-column\",\n \"avoid-page\", \"avoid-region\", \"axis-pan\", \"background\", \"backwards\", \"baseline\", \"below\",\n \"bidi-override\", \"blink\", \"block\", \"block-axis\", \"bold\", \"bolder\", \"border\", \"border-box\",\n \"both\", \"bottom\", \"break\", \"break-all\", \"break-word\", \"bullets\", \"button\", \"button-bevel\",\n \"buttonface\", \"buttonhighlight\", \"buttonshadow\", \"buttontext\", \"calc\", \"capitalize\",\n \"caps-lock-indicator\", \"caption\", \"captiontext\", \"caret\", \"cell\", \"center\", \"checkbox\", \"circle\",\n \"cjk-decimal\", \"clear\", \"clip\", \"close-quote\", \"col-resize\", \"collapse\", \"color\", \"color-burn\",\n \"color-dodge\", \"column\", \"column-reverse\", \"compact\", \"condensed\", \"contain\", \"content\",\n \"contents\", \"content-box\", \"context-menu\", \"continuous\", \"copy\", \"counter\", \"counters\", \"cover\",\n \"crop\", \"cross\", \"crosshair\", \"currentcolor\", \"cursive\", \"cyclic\", \"darken\", \"dashed\", \"decimal\",\n \"decimal-leading-zero\", \"default\", \"default-button\", \"dense\", \"destination-atop\", \"destination-in\",\n \"destination-out\", \"destination-over\", \"difference\", \"disc\", \"discard\", \"disclosure-closed\",\n \"disclosure-open\", \"document\", \"dot-dash\", \"dot-dot-dash\", \"dotted\", \"double\", \"down\", \"e-resize\",\n \"ease\", \"ease-in\", \"ease-in-out\", \"ease-out\", \"element\", \"ellipse\", \"ellipsis\", \"embed\", \"end\",\n \"ethiopic-abegede-gez\", \"ethiopic-halehame-aa-er\", \"ethiopic-halehame-gez\", \"ew-resize\", \"exclusion\",\n \"expanded\", \"extends\", \"extra-condensed\", \"extra-expanded\", \"fantasy\", \"fast\", \"fill\", \"fill-box\",\n \"fixed\", \"flat\", \"flex\", \"flex-end\", \"flex-start\", \"footnotes\", \"forwards\", \"from\",\n \"geometricPrecision\", \"graytext\", \"grid\", \"groove\", \"hand\", \"hard-light\", \"help\", \"hidden\", \"hide\",\n \"higher\", \"highlight\", \"highlighttext\", \"horizontal\", \"hsl\", \"hsla\", \"hue\", \"icon\", \"ignore\",\n \"inactiveborder\", \"inactivecaption\", \"inactivecaptiontext\", \"infinite\", \"infobackground\", \"infotext\",\n \"inherit\", \"initial\", \"inline\", \"inline-axis\", \"inline-block\", \"inline-flex\", \"inline-grid\",\n \"inline-table\", \"inset\", \"inside\", \"intrinsic\", \"invert\", \"italic\", \"justify\", \"keep-all\",\n \"landscape\", \"large\", \"larger\", \"left\", \"level\", \"lighter\", \"lighten\", \"line-through\", \"linear\",\n \"linear-gradient\", \"lines\", \"list-item\", \"listbox\", \"listitem\", \"local\", \"logical\", \"loud\", \"lower\",\n \"lower-hexadecimal\", \"lower-latin\", \"lower-norwegian\", \"lowercase\", \"ltr\", \"luminosity\", \"manipulation\",\n \"match\", \"matrix\", \"matrix3d\", \"medium\", \"menu\", \"menutext\", \"message-box\", \"middle\", \"min-intrinsic\",\n \"mix\", \"monospace\", \"move\", \"multiple\", \"multiple_mask_images\", \"multiply\", \"n-resize\", \"narrower\",\n \"ne-resize\", \"nesw-resize\", \"no-close-quote\", \"no-drop\", \"no-open-quote\", \"no-repeat\", \"none\",\n \"normal\", \"not-allowed\", \"nowrap\", \"ns-resize\", \"numbers\", \"numeric\", \"nw-resize\", \"nwse-resize\",\n \"oblique\", \"opacity\", \"open-quote\", \"optimizeLegibility\", \"optimizeSpeed\", \"outset\", \"outside\",\n \"outside-shape\", \"overlay\", \"overline\", \"padding\", \"padding-box\", \"painted\", \"page\", \"paused\",\n \"perspective\", \"pinch-zoom\", \"plus-darker\", \"plus-lighter\", \"pointer\", \"polygon\", \"portrait\",\n \"pre\", \"pre-line\", \"pre-wrap\", \"preserve-3d\", \"progress\", \"push-button\", \"radial-gradient\", \"radio\",\n \"read-only\", \"read-write\", \"read-write-plaintext-only\", \"rectangle\", \"region\", \"relative\", \"repeat\",\n \"repeating-linear-gradient\", \"repeating-radial-gradient\", \"repeat-x\", \"repeat-y\", \"reset\", \"reverse\",\n \"rgb\", \"rgba\", \"ridge\", \"right\", \"rotate\", \"rotate3d\", \"rotateX\", \"rotateY\", \"rotateZ\", \"round\",\n \"row\", \"row-resize\", \"row-reverse\", \"rtl\", \"run-in\", \"running\", \"s-resize\", \"sans-serif\", \"saturation\",\n \"scale\", \"scale3d\", \"scaleX\", \"scaleY\", \"scaleZ\", \"screen\", \"scroll\", \"scrollbar\", \"scroll-position\",\n \"se-resize\", \"self-start\", \"self-end\", \"semi-condensed\", \"semi-expanded\", \"separate\", \"serif\", \"show\",\n \"single\", \"skew\", \"skewX\", \"skewY\", \"skip-white-space\", \"slide\", \"slider-horizontal\",\n \"slider-vertical\", \"sliderthumb-horizontal\", \"sliderthumb-vertical\", \"slow\", \"small\", \"small-caps\",\n \"small-caption\", \"smaller\", \"soft-light\", \"solid\", \"source-atop\", \"source-in\", \"source-out\",\n \"source-over\", \"space\", \"space-around\", \"space-between\", \"space-evenly\", \"spell-out\", \"square\", \"start\",\n \"static\", \"status-bar\", \"stretch\", \"stroke\", \"stroke-box\", \"sub\", \"subpixel-antialiased\", \"svg_masks\",\n \"super\", \"sw-resize\", \"symbolic\", \"symbols\", \"system-ui\", \"table\", \"table-caption\", \"table-cell\",\n \"table-column\", \"table-column-group\", \"table-footer-group\", \"table-header-group\", \"table-row\",\n \"table-row-group\", \"text\", \"text-bottom\", \"text-top\", \"textarea\", \"textfield\", \"thick\", \"thin\",\n \"threeddarkshadow\", \"threedface\", \"threedhighlight\", \"threedlightshadow\", \"threedshadow\", \"to\", \"top\",\n \"transform\", \"translate\", \"translate3d\", \"translateX\", \"translateY\", \"translateZ\", \"transparent\",\n \"ultra-condensed\", \"ultra-expanded\", \"underline\", \"unidirectional-pan\", \"unset\", \"up\", \"upper-latin\",\n \"uppercase\", \"url\", \"var\", \"vertical\", \"vertical-text\", \"view-box\", \"visible\", \"visibleFill\",\n \"visiblePainted\", \"visibleStroke\", \"visual\", \"w-resize\", \"wait\", \"wave\", \"wider\", \"window\", \"windowframe\",\n \"windowtext\", \"words\", \"wrap\", \"wrap-reverse\", \"x-large\", \"x-small\", \"xor\", \"xx-large\", \"xx-small\"\n].map(name => ({ type: \"keyword\", label: name })).concat(/*@__PURE__*/[\n \"aliceblue\", \"antiquewhite\", \"aqua\", \"aquamarine\", \"azure\", \"beige\",\n \"bisque\", \"black\", \"blanchedalmond\", \"blue\", \"blueviolet\", \"brown\",\n \"burlywood\", \"cadetblue\", \"chartreuse\", \"chocolate\", \"coral\", \"cornflowerblue\",\n \"cornsilk\", \"crimson\", \"cyan\", \"darkblue\", \"darkcyan\", \"darkgoldenrod\",\n \"darkgray\", \"darkgreen\", \"darkkhaki\", \"darkmagenta\", \"darkolivegreen\",\n \"darkorange\", \"darkorchid\", \"darkred\", \"darksalmon\", \"darkseagreen\",\n \"darkslateblue\", \"darkslategray\", \"darkturquoise\", \"darkviolet\",\n \"deeppink\", \"deepskyblue\", \"dimgray\", \"dodgerblue\", \"firebrick\",\n \"floralwhite\", \"forestgreen\", \"fuchsia\", \"gainsboro\", \"ghostwhite\",\n \"gold\", \"goldenrod\", \"gray\", \"grey\", \"green\", \"greenyellow\", \"honeydew\",\n \"hotpink\", \"indianred\", \"indigo\", \"ivory\", \"khaki\", \"lavender\",\n \"lavenderblush\", \"lawngreen\", \"lemonchiffon\", \"lightblue\", \"lightcoral\",\n \"lightcyan\", \"lightgoldenrodyellow\", \"lightgray\", \"lightgreen\", \"lightpink\",\n \"lightsalmon\", \"lightseagreen\", \"lightskyblue\", \"lightslategray\",\n \"lightsteelblue\", \"lightyellow\", \"lime\", \"limegreen\", \"linen\", \"magenta\",\n \"maroon\", \"mediumaquamarine\", \"mediumblue\", \"mediumorchid\", \"mediumpurple\",\n \"mediumseagreen\", \"mediumslateblue\", \"mediumspringgreen\", \"mediumturquoise\",\n \"mediumvioletred\", \"midnightblue\", \"mintcream\", \"mistyrose\", \"moccasin\",\n \"navajowhite\", \"navy\", \"oldlace\", \"olive\", \"olivedrab\", \"orange\", \"orangered\",\n \"orchid\", \"palegoldenrod\", \"palegreen\", \"paleturquoise\", \"palevioletred\",\n \"papayawhip\", \"peachpuff\", \"peru\", \"pink\", \"plum\", \"powderblue\",\n \"purple\", \"rebeccapurple\", \"red\", \"rosybrown\", \"royalblue\", \"saddlebrown\",\n \"salmon\", \"sandybrown\", \"seagreen\", \"seashell\", \"sienna\", \"silver\", \"skyblue\",\n \"slateblue\", \"slategray\", \"snow\", \"springgreen\", \"steelblue\", \"tan\",\n \"teal\", \"thistle\", \"tomato\", \"turquoise\", \"violet\", \"wheat\", \"white\",\n \"whitesmoke\", \"yellow\", \"yellowgreen\"\n].map(name => ({ type: \"constant\", label: name })));\nconst tags = /*@__PURE__*/[\n \"a\", \"abbr\", \"address\", \"article\", \"aside\", \"b\", \"bdi\", \"bdo\", \"blockquote\", \"body\",\n \"br\", \"button\", \"canvas\", \"caption\", \"cite\", \"code\", \"col\", \"colgroup\", \"dd\", \"del\",\n \"details\", \"dfn\", \"dialog\", \"div\", \"dl\", \"dt\", \"em\", \"figcaption\", \"figure\", \"footer\",\n \"form\", \"header\", \"hgroup\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"html\", \"i\", \"iframe\",\n \"img\", \"input\", \"ins\", \"kbd\", \"label\", \"legend\", \"li\", \"main\", \"meter\", \"nav\", \"ol\", \"output\",\n \"p\", \"pre\", \"ruby\", \"section\", \"select\", \"small\", \"source\", \"span\", \"strong\", \"sub\", \"summary\",\n \"sup\", \"table\", \"tbody\", \"td\", \"template\", \"textarea\", \"tfoot\", \"th\", \"thead\", \"tr\", \"u\", \"ul\"\n].map(name => ({ type: \"type\", label: name }));\nconst identifier = /^(\\w[\\w-]*|-\\w[\\w-]*|)$/, variable = /^-(-[\\w-]*)?$/;\nfunction isVarArg(node, doc) {\n var _a;\n if (node.name == \"(\" || node.type.isError)\n node = node.parent || node;\n if (node.name != \"ArgList\")\n return false;\n let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;\n if ((callee === null || callee === void 0 ? void 0 : callee.name) != \"Callee\")\n return false;\n return doc.sliceString(callee.from, callee.to) == \"var\";\n}\nconst VariablesByNode = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_1__.NodeWeakMap();\nconst declSelector = [\"Declaration\"];\nfunction astTop(node) {\n for (let cur = node;;) {\n if (cur.type.isTop)\n return cur;\n if (!(cur = cur.parent))\n return node;\n }\n}\nfunction variableNames(doc, node, isVariable) {\n if (node.to - node.from > 4096) {\n let known = VariablesByNode.get(node);\n if (known)\n return known;\n let result = [], seen = new Set, cursor = node.cursor(_lezer_common__WEBPACK_IMPORTED_MODULE_1__.IterMode.IncludeAnonymous);\n if (cursor.firstChild())\n do {\n for (let option of variableNames(doc, cursor.node, isVariable))\n if (!seen.has(option.label)) {\n seen.add(option.label);\n result.push(option);\n }\n } while (cursor.nextSibling());\n VariablesByNode.set(node, result);\n return result;\n }\n else {\n let result = [], seen = new Set;\n node.cursor().iterate(node => {\n var _a;\n if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == \":\") {\n let name = doc.sliceString(node.from, node.to);\n if (!seen.has(name)) {\n seen.add(name);\n result.push({ label: name, type: \"variable\" });\n }\n }\n });\n return result;\n }\n}\n/**\nCreate a completion source for a CSS dialect, providing a\npredicate for determining what kind of syntax node can act as a\ncompletable variable. This is used by language modes like Sass and\nLess to reuse this package's completion logic.\n*/\nconst defineCSSCompletionSource = (isVariable) => context => {\n let { state, pos } = context, node = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_2__.syntaxTree)(state).resolveInner(pos, -1);\n let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == \"-\";\n if (node.name == \"PropertyName\" ||\n (isDash || node.name == \"TagName\") && /^(Block|Styles)$/.test(node.resolve(node.to).name))\n return { from: node.from, options: properties(), validFor: identifier };\n if (node.name == \"ValueName\")\n return { from: node.from, options: values, validFor: identifier };\n if (node.name == \"PseudoClassName\")\n return { from: node.from, options: pseudoClasses, validFor: identifier };\n if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))\n return { from: isVariable(node) || isDash ? node.from : pos,\n options: variableNames(state.doc, astTop(node), isVariable),\n validFor: variable };\n if (node.name == \"TagName\") {\n for (let { parent } = node; parent; parent = parent.parent)\n if (parent.name == \"Block\")\n return { from: node.from, options: properties(), validFor: identifier };\n return { from: node.from, options: tags, validFor: identifier };\n }\n if (!context.explicit)\n return null;\n let above = node.resolve(pos), before = above.childBefore(pos);\n if (before && before.name == \":\" && above.name == \"PseudoClassSelector\")\n return { from: pos, options: pseudoClasses, validFor: identifier };\n if (before && before.name == \":\" && above.name == \"Declaration\" || above.name == \"ArgList\")\n return { from: pos, options: values, validFor: identifier };\n if (above.name == \"Block\" || above.name == \"Styles\")\n return { from: pos, options: properties(), validFor: identifier };\n return null;\n};\n/**\nCSS property, variable, and value keyword completion source.\n*/\nconst cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == \"VariableName\");\n\n/**\nA language provider based on the [Lezer CSS\nparser](https://github.com/lezer-parser/css), extended with\nhighlighting and indentation information.\n*/\nconst cssLanguage = /*@__PURE__*/_codemirror_language__WEBPACK_IMPORTED_MODULE_2__.LRLanguage.define({\n name: \"css\",\n parser: /*@__PURE__*/_lezer_css__WEBPACK_IMPORTED_MODULE_0__.parser.configure({\n props: [\n /*@__PURE__*/_codemirror_language__WEBPACK_IMPORTED_MODULE_2__.indentNodeProp.add({\n Declaration: /*@__PURE__*/(0,_codemirror_language__WEBPACK_IMPORTED_MODULE_2__.continuedIndent)()\n }),\n /*@__PURE__*/_codemirror_language__WEBPACK_IMPORTED_MODULE_2__.foldNodeProp.add({\n Block: _codemirror_language__WEBPACK_IMPORTED_MODULE_2__.foldInside\n })\n ]\n }),\n languageData: {\n commentTokens: { block: { open: \"/*\", close: \"*/\" } },\n indentOnInput: /^\\s*\\}$/,\n wordChars: \"-\"\n }\n});\n/**\nLanguage support for CSS.\n*/\nfunction css() {\n return new _codemirror_language__WEBPACK_IMPORTED_MODULE_2__.LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));\n}\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGNvZGVtaXJyb3IvbGFuZy1jc3MvZGlzdC9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQW9DO0FBQ3NHO0FBQ3BGOztBQUV0RDtBQUNBO0FBQ0E7QUFDQSxjQUFjLFFBQVE7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUN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GlmIChrbm93bilcbiAgICAgICAgICAgIHJldHVybiBrbm93bjtcbiAgICAgICAgbGV0IHJlc3VsdCA9IFtdLCBzZWVuID0gbmV3IFNldCwgY3Vyc29yID0gbm9kZS5jdXJzb3IoSXRlck1vZGUuSW5jbHVkZUFub255bW91cyk7XG4gICAgICAgIGlmIChjdXJzb3IuZmlyc3RDaGlsZCgpKVxuICAgICAgICAgICAgZG8ge1xuICAgICAgICAgICAgICAgIGZvciAobGV0IG9wdGlvbiBvZiB2YXJpYWJsZU5hbWVzKGRvYywgY3Vyc29yLm5vZGUsIGlzVmFyaWFibGUpKVxuICAgICAgICAgICAgICAgICAgICBpZiAoIXNlZW4uaGFzKG9wdGlvbi5sYWJlbCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlZW4uYWRkKG9wdGlvbi5sYWJlbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXN1bHQucHVzaChvcHRpb24pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IHdoaWxlIChjdXJzb3IubmV4dFNpYmxpbmcoKSk7XG4gICAgICAgIFZhcmlhYmxlc0J5Tm9kZS5zZXQobm9kZSwgcmVzdWx0KTtcbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICAgIGxldCByZXN1bHQgPSBbXSwgc2VlbiA9IG5ldyBTZXQ7XG4gICAgICAgIG5vZGUuY3Vyc29yKCkuaXRlcmF0ZShub2RlID0+IHtcbiAgICAgICAgICAgIHZhciBfYTtcbiAgICAgICAgICAgIGlmIChpc1ZhcmlhYmxlKG5vZGUpICYmIG5vZGUubWF0Y2hDb250ZXh0KGRlY2xTZWxlY3RvcikgJiYgKChfYSA9IG5vZGUubm9kZS5uZXh0U2libGluZykgPT09IG51bGwgfHwgX2EgPT09IHZvaWQgMCA/IHZvaWQgMCA6IF9hLm5hbWUpID09IFwiOlwiKSB7XG4gICAgICAgICAgICAgICAgbGV0IG5hbW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ogXCItXCJcbiAgICB9XG59KTtcbi8qKlxuTGFuZ3VhZ2Ugc3VwcG9ydCBmb3IgQ1NTLlxuKi9cbmZ1bmN0aW9uIGNzcygpIHtcbiAgICByZXR1cm4gbmV3IExhbmd1YWdlU3VwcG9ydChjc3NMYW5ndWFnZSwgY3NzTGFuZ3VhZ2UuZGF0YS5vZih7IGF1dG9jb21wbGV0ZTogY3NzQ29tcGxldGlvblNvdXJjZSB9KSk7XG59XG5cbmV4cG9ydCB7IGNzcywgY3NzQ29tcGxldGlvblNvdXJjZSwgY3NzTGFuZ3VhZ2UsIGRlZmluZUNTU0NvbXBsZXRpb25Tb3VyY2UgfTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@codemirror/lang-css/dist/index.js\n"); - -/***/ }), - -/***/ "./node_modules/@codemirror/lang-html/dist/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@codemirror/lang-html/dist/index.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___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 */ \"autoCloseTags\": () => (/* binding */ autoCloseTags),\n/* harmony export */ \"html\": () => (/* binding */ html),\n/* harmony export */ \"htmlCompletionSource\": () => (/* binding */ htmlCompletionSource),\n/* harmony export */ \"htmlCompletionSourceWith\": () => (/* binding */ htmlCompletionSourceWith),\n/* harmony export */ \"htmlLanguage\": () => (/* binding */ htmlLanguage),\n/* harmony export */ \"htmlPlain\": () => (/* binding */ htmlPlain)\n/* harmony export */ });\n/* harmony import */ var _lezer_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/html */ \"./node_modules/@lezer/html/dist/index.js\");\n/* harmony import */ var _codemirror_lang_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/lang-css */ \"./node_modules/@codemirror/lang-css/dist/index.js\");\n/* harmony import */ var _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/lang-javascript */ \"./node_modules/@codemirror/lang-javascript/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n\n\n\n\n\n\n\nconst Targets = [\"_blank\", \"_self\", \"_top\", \"_parent\"];\nconst Charsets = [\"ascii\", \"utf-8\", \"utf-16\", \"latin1\", \"latin1\"];\nconst Methods = [\"get\", \"post\", \"put\", \"delete\"];\nconst Encs = [\"application/x-www-form-urlencoded\", \"multipart/form-data\", \"text/plain\"];\nconst Bool = [\"true\", \"false\"];\nconst S = {}; // Empty tag spec\nconst Tags = {\n a: {\n attrs: {\n href: null, ping: null, type: null,\n media: null,\n target: Targets,\n hreflang: null\n }\n },\n abbr: S,\n address: S,\n area: {\n attrs: {\n alt: null, coords: null, href: null, target: null, ping: null,\n media: null, hreflang: null, type: null,\n shape: [\"default\", \"rect\", \"circle\", \"poly\"]\n }\n },\n article: S,\n aside: S,\n audio: {\n attrs: {\n src: null, mediagroup: null,\n crossorigin: [\"anonymous\", \"use-credentials\"],\n preload: [\"none\", \"metadata\", \"auto\"],\n autoplay: [\"autoplay\"],\n loop: [\"loop\"],\n controls: [\"controls\"]\n }\n },\n b: S,\n base: { attrs: { href: null, target: Targets } },\n bdi: S,\n bdo: S,\n blockquote: { attrs: { cite: null } },\n body: S,\n br: S,\n button: {\n attrs: {\n form: null, formaction: null, name: null, value: null,\n autofocus: [\"autofocus\"],\n disabled: [\"autofocus\"],\n formenctype: Encs,\n formmethod: Methods,\n formnovalidate: [\"novalidate\"],\n formtarget: Targets,\n type: [\"submit\", \"reset\", \"button\"]\n }\n },\n canvas: { attrs: { width: null, height: null } },\n caption: S,\n center: S,\n cite: S,\n code: S,\n col: { attrs: { span: null } },\n colgroup: { attrs: { span: null } },\n command: {\n attrs: {\n type: [\"command\", \"checkbox\", \"radio\"],\n label: null, icon: null, radiogroup: null, command: null, title: null,\n disabled: [\"disabled\"],\n checked: [\"checked\"]\n }\n },\n data: { attrs: { value: null } },\n datagrid: { attrs: { disabled: [\"disabled\"], multiple: [\"multiple\"] } },\n datalist: { attrs: { data: null } },\n dd: S,\n del: { attrs: { cite: null, datetime: null } },\n details: { attrs: { open: [\"open\"] } },\n dfn: S,\n div: S,\n dl: S,\n dt: S,\n em: S,\n embed: { attrs: { src: null, type: null, width: null, height: null } },\n eventsource: { attrs: { src: null } },\n fieldset: { attrs: { disabled: [\"disabled\"], form: null, name: null } },\n figcaption: S,\n figure: S,\n footer: S,\n form: {\n attrs: {\n action: null, name: null,\n \"accept-charset\": Charsets,\n autocomplete: [\"on\", \"off\"],\n enctype: Encs,\n method: Methods,\n novalidate: [\"novalidate\"],\n target: Targets\n }\n },\n h1: S, h2: S, h3: S, h4: S, h5: S, h6: S,\n head: {\n children: [\"title\", \"base\", \"link\", \"style\", \"meta\", \"script\", \"noscript\", \"command\"]\n },\n header: S,\n hgroup: S,\n hr: S,\n html: {\n attrs: { manifest: null }\n },\n i: S,\n iframe: {\n attrs: {\n src: null, srcdoc: null, name: null, width: null, height: null,\n sandbox: [\"allow-top-navigation\", \"allow-same-origin\", \"allow-forms\", \"allow-scripts\"],\n seamless: [\"seamless\"]\n }\n },\n img: {\n attrs: {\n alt: null, src: null, ismap: null, usemap: null, width: null, height: null,\n crossorigin: [\"anonymous\", \"use-credentials\"]\n }\n },\n input: {\n attrs: {\n alt: null, dirname: null, form: null, formaction: null,\n height: null, list: null, max: null, maxlength: null, min: null,\n name: null, pattern: null, placeholder: null, size: null, src: null,\n step: null, value: null, width: null,\n accept: [\"audio/*\", \"video/*\", \"image/*\"],\n autocomplete: [\"on\", \"off\"],\n autofocus: [\"autofocus\"],\n checked: [\"checked\"],\n disabled: [\"disabled\"],\n formenctype: Encs,\n formmethod: Methods,\n formnovalidate: [\"novalidate\"],\n formtarget: Targets,\n multiple: [\"multiple\"],\n readonly: [\"readonly\"],\n required: [\"required\"],\n type: [\"hidden\", \"text\", \"search\", \"tel\", \"url\", \"email\", \"password\", \"datetime\", \"date\", \"month\",\n \"week\", \"time\", \"datetime-local\", \"number\", \"range\", \"color\", \"checkbox\", \"radio\",\n \"file\", \"submit\", \"image\", \"reset\", \"button\"]\n }\n },\n ins: { attrs: { cite: null, datetime: null } },\n kbd: S,\n keygen: {\n attrs: {\n challenge: null, form: null, name: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n keytype: [\"RSA\"]\n }\n },\n label: { attrs: { for: null, form: null } },\n legend: S,\n li: { attrs: { value: null } },\n link: {\n attrs: {\n href: null, type: null,\n hreflang: null,\n media: null,\n sizes: [\"all\", \"16x16\", \"16x16 32x32\", \"16x16 32x32 64x64\"]\n }\n },\n map: { attrs: { name: null } },\n mark: S,\n menu: { attrs: { label: null, type: [\"list\", \"context\", \"toolbar\"] } },\n meta: {\n attrs: {\n content: null,\n charset: Charsets,\n name: [\"viewport\", \"application-name\", \"author\", \"description\", \"generator\", \"keywords\"],\n \"http-equiv\": [\"content-language\", \"content-type\", \"default-style\", \"refresh\"]\n }\n },\n meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },\n nav: S,\n noscript: S,\n object: {\n attrs: {\n data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,\n typemustmatch: [\"typemustmatch\"]\n }\n },\n ol: { attrs: { reversed: [\"reversed\"], start: null, type: [\"1\", \"a\", \"A\", \"i\", \"I\"] },\n children: [\"li\", \"script\", \"template\", \"ul\", \"ol\"] },\n optgroup: { attrs: { disabled: [\"disabled\"], label: null } },\n option: { attrs: { disabled: [\"disabled\"], label: null, selected: [\"selected\"], value: null } },\n output: { attrs: { for: null, form: null, name: null } },\n p: S,\n param: { attrs: { name: null, value: null } },\n pre: S,\n progress: { attrs: { value: null, max: null } },\n q: { attrs: { cite: null } },\n rp: S,\n rt: S,\n ruby: S,\n samp: S,\n script: {\n attrs: {\n type: [\"text/javascript\"],\n src: null,\n async: [\"async\"],\n defer: [\"defer\"],\n charset: Charsets\n }\n },\n section: S,\n select: {\n attrs: {\n form: null, name: null, size: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n multiple: [\"multiple\"]\n }\n },\n slot: { attrs: { name: null } },\n small: S,\n source: { attrs: { src: null, type: null, media: null } },\n span: S,\n strong: S,\n style: {\n attrs: {\n type: [\"text/css\"],\n media: null,\n scoped: null\n }\n },\n sub: S,\n summary: S,\n sup: S,\n table: S,\n tbody: S,\n td: { attrs: { colspan: null, rowspan: null, headers: null } },\n template: S,\n textarea: {\n attrs: {\n dirname: null, form: null, maxlength: null, name: null, placeholder: null,\n rows: null, cols: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n readonly: [\"readonly\"],\n required: [\"required\"],\n wrap: [\"soft\", \"hard\"]\n }\n },\n tfoot: S,\n th: { attrs: { colspan: null, rowspan: null, headers: null, scope: [\"row\", \"col\", \"rowgroup\", \"colgroup\"] } },\n thead: S,\n time: { attrs: { datetime: null } },\n title: S,\n tr: S,\n track: {\n attrs: {\n src: null, label: null, default: null,\n kind: [\"subtitles\", \"captions\", \"descriptions\", \"chapters\", \"metadata\"],\n srclang: null\n }\n },\n ul: { children: [\"li\", \"script\", \"template\", \"ul\", \"ol\"] },\n var: S,\n video: {\n attrs: {\n src: null, poster: null, width: null, height: null,\n crossorigin: [\"anonymous\", \"use-credentials\"],\n preload: [\"auto\", \"metadata\", \"none\"],\n autoplay: [\"autoplay\"],\n mediagroup: [\"movie\"],\n muted: [\"muted\"],\n controls: [\"controls\"]\n }\n },\n wbr: S\n};\nconst GlobalAttrs = {\n accesskey: null,\n class: null,\n contenteditable: Bool,\n contextmenu: null,\n dir: [\"ltr\", \"rtl\", \"auto\"],\n draggable: [\"true\", \"false\", \"auto\"],\n dropzone: [\"copy\", \"move\", \"link\", \"string:\", \"file:\"],\n hidden: [\"hidden\"],\n id: null,\n inert: [\"inert\"],\n itemid: null,\n itemprop: null,\n itemref: null,\n itemscope: [\"itemscope\"],\n itemtype: null,\n lang: [\"ar\", \"bn\", \"de\", \"en-GB\", \"en-US\", \"es\", \"fr\", \"hi\", \"id\", \"ja\", \"pa\", \"pt\", \"ru\", \"tr\", \"zh\"],\n spellcheck: Bool,\n autocorrect: Bool,\n autocapitalize: Bool,\n style: null,\n tabindex: null,\n title: null,\n translate: [\"yes\", \"no\"],\n rel: [\"stylesheet\", \"alternate\", \"author\", \"bookmark\", \"help\", \"license\", \"next\", \"nofollow\", \"noreferrer\", \"prefetch\", \"prev\", \"search\", \"tag\"],\n role: /*@__PURE__*/\"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer\".split(\" \"),\n \"aria-activedescendant\": null,\n \"aria-atomic\": Bool,\n \"aria-autocomplete\": [\"inline\", \"list\", \"both\", \"none\"],\n \"aria-busy\": Bool,\n \"aria-checked\": [\"true\", \"false\", \"mixed\", \"undefined\"],\n \"aria-controls\": null,\n \"aria-describedby\": null,\n \"aria-disabled\": Bool,\n \"aria-dropeffect\": null,\n \"aria-expanded\": [\"true\", \"false\", \"undefined\"],\n \"aria-flowto\": null,\n \"aria-grabbed\": [\"true\", \"false\", \"undefined\"],\n \"aria-haspopup\": Bool,\n \"aria-hidden\": Bool,\n \"aria-invalid\": [\"true\", \"false\", \"grammar\", \"spelling\"],\n \"aria-label\": null,\n \"aria-labelledby\": null,\n \"aria-level\": null,\n \"aria-live\": [\"off\", \"polite\", \"assertive\"],\n \"aria-multiline\": Bool,\n \"aria-multiselectable\": Bool,\n \"aria-owns\": null,\n \"aria-posinset\": null,\n \"aria-pressed\": [\"true\", \"false\", \"mixed\", \"undefined\"],\n \"aria-readonly\": Bool,\n \"aria-relevant\": null,\n \"aria-required\": Bool,\n \"aria-selected\": [\"true\", \"false\", \"undefined\"],\n \"aria-setsize\": null,\n \"aria-sort\": [\"ascending\", \"descending\", \"none\", \"other\"],\n \"aria-valuemax\": null,\n \"aria-valuemin\": null,\n \"aria-valuenow\": null,\n \"aria-valuetext\": null\n};\nconst eventAttributes = /*@__PURE__*/(\"beforeunload copy cut dragstart dragover dragleave dragenter dragend \" +\n \"drag paste focus blur change click load mousedown mouseenter mouseleave \" +\n \"mouseup keydown keyup resize scroll unload\").split(\" \").map(n => \"on\" + n);\nfor (let a of eventAttributes)\n GlobalAttrs[a] = null;\nclass Schema {\n constructor(extraTags, extraAttrs) {\n this.tags = Object.assign(Object.assign({}, Tags), extraTags);\n this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);\n this.allTags = Object.keys(this.tags);\n this.globalAttrNames = Object.keys(this.globalAttrs);\n }\n}\nSchema.default = /*@__PURE__*/new Schema;\nfunction elementName(doc, tree, max = doc.length) {\n if (!tree)\n return \"\";\n let tag = tree.firstChild;\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, Math.min(name.to, max)) : \"\";\n}\nfunction findParentElement(tree, skip = false) {\n for (; tree; tree = tree.parent)\n if (tree.name == \"Element\") {\n if (skip)\n skip = false;\n else\n return tree;\n }\n return null;\n}\nfunction allowedChildren(doc, tree, schema) {\n let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];\n return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;\n}\nfunction openTags(doc, tree) {\n let open = [];\n for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {\n let tagName = elementName(doc, parent);\n if (tagName && parent.lastChild.name == \"CloseTag\")\n break;\n if (tagName && open.indexOf(tagName) < 0 && (tree.name == \"EndTag\" || tree.from >= parent.firstChild.to))\n open.push(tagName);\n }\n return open;\n}\nconst identifier = /^[:\\-\\.\\w\\u00b7-\\uffff]*$/;\nfunction completeTag(state, schema, tree, from, to) {\n let end = /\\s*>/.test(state.sliceDoc(to, to + 5)) ? \"\" : \">\";\n let parent = findParentElement(tree, true);\n return { from, to,\n options: allowedChildren(state.doc, parent, schema).map(tagName => ({ label: tagName, type: \"type\" })).concat(openTags(state.doc, tree).map((tag, i) => ({ label: \"/\" + tag, apply: \"/\" + tag + end,\n type: \"type\", boost: 99 - i }))),\n validFor: /^\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/ };\n}\nfunction completeCloseTag(state, tree, from, to) {\n let end = /\\s*>/.test(state.sliceDoc(to, to + 5)) ? \"\" : \">\";\n return { from, to,\n options: openTags(state.doc, tree).map((tag, i) => ({ label: tag, apply: tag + end, type: \"type\", boost: 99 - i })),\n validFor: identifier };\n}\nfunction completeStartTag(state, schema, tree, pos) {\n let options = [], level = 0;\n for (let tagName of allowedChildren(state.doc, tree, schema))\n options.push({ label: \"<\" + tagName, type: \"type\" });\n for (let open of openTags(state.doc, tree))\n options.push({ label: \"\", type: \"type\", boost: 99 - level++ });\n return { from: pos, to: pos, options, validFor: /^<\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/ };\n}\nfunction completeAttrName(state, schema, tree, from, to) {\n let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;\n let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];\n let names = info && info.globalAttrs === false ? localAttrs\n : localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;\n return { from, to,\n options: names.map(attrName => ({ label: attrName, type: \"property\" })),\n validFor: identifier };\n}\nfunction completeAttrValue(state, schema, tree, from, to) {\n var _a;\n let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild(\"AttributeName\");\n let options = [], token = undefined;\n if (nameNode) {\n let attrName = state.sliceDoc(nameNode.from, nameNode.to);\n let attrs = schema.globalAttrs[attrName];\n if (!attrs) {\n let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;\n attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];\n }\n if (attrs) {\n let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = '\"', quoteEnd = '\"';\n if (/^['\"]/.test(base)) {\n token = base[0] == '\"' ? /^[^\"]*$/ : /^[^']*$/;\n quoteStart = \"\";\n quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? \"\" : base[0];\n base = base.slice(1);\n from++;\n }\n else {\n token = /^[^\\s<>='\"]*$/;\n }\n for (let value of attrs)\n options.push({ label: value, apply: quoteStart + value + quoteEnd, type: \"constant\" });\n }\n }\n return { from, to, options, validFor: token };\n}\nfunction htmlCompletionFor(schema, context) {\n let { state, pos } = context, tree = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.syntaxTree)(state).resolveInner(pos, -1), around = tree.resolve(pos);\n for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {\n let last = before.lastChild;\n if (!last || !last.type.isError || last.from < last.to)\n break;\n around = tree = before;\n scan = last.from;\n }\n if (tree.name == \"TagName\") {\n return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos)\n : completeTag(state, schema, tree, tree.from, pos);\n }\n else if (tree.name == \"StartTag\") {\n return completeTag(state, schema, tree, pos, pos);\n }\n else if (tree.name == \"StartCloseTag\" || tree.name == \"IncompleteCloseTag\") {\n return completeCloseTag(state, tree, pos, pos);\n }\n else if (context.explicit && (tree.name == \"OpenTag\" || tree.name == \"SelfClosingTag\") || tree.name == \"AttributeName\") {\n return completeAttrName(state, schema, tree, tree.name == \"AttributeName\" ? tree.from : pos, pos);\n }\n else if (tree.name == \"Is\" || tree.name == \"AttributeValue\" || tree.name == \"UnquotedAttributeValue\") {\n return completeAttrValue(state, schema, tree, tree.name == \"Is\" ? pos : tree.from, pos);\n }\n else if (context.explicit && (around.name == \"Element\" || around.name == \"Text\" || around.name == \"Document\")) {\n return completeStartTag(state, schema, tree, pos);\n }\n else {\n return null;\n }\n}\n/**\nHTML tag completion. Opens and closes tags and attributes in a\ncontext-aware way.\n*/\nfunction htmlCompletionSource(context) {\n return htmlCompletionFor(Schema.default, context);\n}\n/**\nCreate a completion source for HTML extended with additional tags\nor attributes.\n*/\nfunction htmlCompletionSourceWith(config) {\n let { extraTags, extraGlobalAttributes: extraAttrs } = config;\n let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;\n return (context) => htmlCompletionFor(schema, context);\n}\n\nconst defaultNesting = [\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/typescript\" || attrs.lang == \"ts\",\n parser: _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__.typescriptLanguage.parser },\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/babel\" || attrs.type == \"text/jsx\",\n parser: _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__.jsxLanguage.parser },\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/typescript-jsx\",\n parser: _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__.tsxLanguage.parser },\n { tag: \"script\",\n attrs(attrs) {\n return !attrs.type || /^(?:text|application)\\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);\n },\n parser: _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__.javascriptLanguage.parser },\n { tag: \"style\",\n attrs(attrs) {\n return (!attrs.lang || attrs.lang == \"css\") && (!attrs.type || /^(text\\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));\n },\n parser: _codemirror_lang_css__WEBPACK_IMPORTED_MODULE_3__.cssLanguage.parser }\n];\nconst defaultAttrs = /*@__PURE__*/[\n { name: \"style\",\n parser: /*@__PURE__*/_codemirror_lang_css__WEBPACK_IMPORTED_MODULE_3__.cssLanguage.parser.configure({ top: \"Styles\" }) }\n].concat(/*@__PURE__*/eventAttributes.map(name => ({ name, parser: _codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_2__.javascriptLanguage.parser })));\n/**\nA language provider based on the [Lezer HTML\nparser](https://github.com/lezer-parser/html), extended with the\nJavaScript and CSS parsers to parse the content of `