1var GUI = 2(window["webpackJsonpGUI"] = window["webpackJsonpGUI"] || []).push([["gui"],{ 3 4/***/ "./node_modules/css-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./src/playground/index.css": 5/*!*****************************************************************************************************************!*\ 6 !*** ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/src??postcss!./src/playground/index.css ***! 7 \*****************************************************************************************************************/ 8/*! no static exports found */ 9/***/ (function(module, exports, __webpack_require__) { 10 11exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); 12// imports 13 14 15// module 16exports.push([module.i, "html,\nbody,\n.index_app_3Qs6X {\n /* probably unecessary, transitional until layout is refactored */\n width: 100%; \n height: 100%;\n margin: 0;\n\n /* Setting min height/width makes the UI scroll below those sizes */\n min-width: 1024px;\n min-height: 640px; /* Min height to fit sprite/backdrop button */\n}\n\n/* @todo: move globally? Safe / side FX, for blocks particularly? */\n\n* { -webkit-box-sizing: border-box; box-sizing: border-box; }\n", ""]); 17 18// exports 19exports.locals = { 20 "app": "index_app_3Qs6X" 21}; 22 23/***/ }), 24
25/***/ "./src/playground/index.css": 26/*!**********************************!*\ 27 !*** ./src/playground/index.css ***! 28 \**********************************/ 29/*! no static exports found */ 30/***/ (function(module, exports, __webpack_require__) { 31 32 33var content = __webpack_require__(/*! !../../node_modules/css-loader??ref--5-1!../../node_modules/postcss-loader/src??postcss!./index.css */ "./node_modules/css-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./src/playground/index.css"); 34 35if(typeof content === 'string') content = [[module.i, content, '']]; 36 37var transform; 38var insertInto; 39 40 41 42var options = {"hmr":true} 43 44options.transform = transform 45options.insertInto = undefined; 46 47var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); 48 49if(content.locals) module.exports = content.locals; 50 51if(false) {} 52 53/***/ }), 54
55/***/ "./src/playground/index.jsx": 56/*!**********************************!*\ 57 !*** ./src/playground/index.jsx ***! 58 \**********************************/ 59/*! no exports provided */ 60/***/ (function(module, __webpack_exports__, __webpack_require__) { 61 62"use strict"; 63__webpack_require__.r(__webpack_exports__); 64/* harmony import */ var es6_object_assign_auto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! es6-object-assign/auto */ "./node_modules/es6-object-assign/auto.js"); 65/* harmony import */ var es6_object_assign_auto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(es6_object_assign_auto__WEBPACK_IMPORTED_MODULE_0__); 66/* harmony import */ var core_js_fn_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/fn/array/includes */ "./node_modules/core-js/fn/array/includes.js"); 67/* harmony import */ var core_js_fn_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_fn_array_includes__WEBPACK_IMPORTED_MODULE_1__); 68/* harmony import */ var core_js_fn_promise_finally__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/fn/promise/finally */ "./node_modules/core-js/fn/promise/finally.js"); 69/* harmony import */ var core_js_fn_promise_finally__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_fn_promise_finally__WEBPACK_IMPORTED_MODULE_2__); 70/* harmony import */ var intl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! intl */ "./node_modules/intl/index.js"); 71/* harmony import */ var intl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(intl__WEBPACK_IMPORTED_MODULE_3__); 72/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 73/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); 74/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); 75/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_5__); 76/* harmony import */ var _lib_app_state_hoc_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lib/app-state-hoc.jsx */ "./src/lib/app-state-hoc.jsx"); 77/* harmony import */ var _components_browser_modal_browser_modal_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/browser-modal/browser-modal.jsx */ "./src/components/browser-modal/browser-modal.jsx"); 78/* harmony import */ var _lib_supported_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lib/supported-browser */ "./src/lib/supported-browser.js"); 79/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./index.css */ "./src/playground/index.css"); 80/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__); 81// Polyfills 82 83 84 85 // For Safari 9 86 87 88 89 90 91 92 93var appTarget = document.createElement('div'); 94appTarget.className = _index_css__WEBPACK_IMPORTED_MODULE_9___default.a.app; 95document.body.appendChild(appTarget); 96 97if (Object(_lib_supported_browser__WEBPACK_IMPORTED_MODULE_8__["default"])()) { 98 // require needed here to avoid importing unsupported browser-crashing code 99 // at the top level 100 __webpack_require__(/*! ./render-gui.jsx */ "./src/playground/render-gui.jsx").default(appTarget); 101} else { 102 _components_browser_modal_browser_modal_jsx__WEBPACK_IMPORTED_MODULE_7__["default"].setAppElement(appTarget); 103 var WrappedBrowserModalComponent = Object(_lib_app_state_hoc_jsx__WEBPACK_IMPORTED_MODULE_6__["default"])(_components_browser_modal_browser_modal_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], true 104 /* localesOnly */ 105 ); 106 107 var handleBack = function handleBack() {}; // eslint-disable-next-line react/jsx-no-bind 108 109 110 react_dom__WEBPACK_IMPORTED_MODULE_5___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(WrappedBrowserModalComponent, { 111 onBack: handleBack 112 }), appTarget); 113} 114 115/***/ }), 116
117/***/ "./src/playground/render-gui.jsx": 118/*!***************************************!*\ 119 !*** ./src/playground/render-gui.jsx ***! 120 \***************************************/ 121/*! exports provided: default */ 122/***/ (function(module, __webpack_exports__, __webpack_require__) { 123 124"use strict"; 125__webpack_require__.r(__webpack_exports__); 126/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 127/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 128/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); 129/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); 130/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/index.js"); 131/* harmony import */ var _lib_app_state_hoc_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lib/app-state-hoc.jsx */ "./src/lib/app-state-hoc.jsx"); 132/* harmony import */ var _containers_gui_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../containers/gui.jsx */ "./src/containers/gui.jsx"); 133/* harmony import */ var _lib_hash_parser_hoc_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../lib/hash-parser-hoc.jsx */ "./src/lib/hash-parser-hoc.jsx"); 134/* harmony import */ var _lib_log_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lib/log.js */ "./src/lib/log.js"); 135function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 136 137 138 139 140 141 142 143 144 145var onClickLogo = function onClickLogo() { 146 window.location = 'https://scratch.mit.edu'; 147}; 148 149var handleTelemetryModalCancel = function handleTelemetryModalCancel() { 150 Object(_lib_log_js__WEBPACK_IMPORTED_MODULE_6__["default"])('User canceled telemetry modal'); 151}; 152 153var handleTelemetryModalOptIn = function handleTelemetryModalOptIn() { 154 Object(_lib_log_js__WEBPACK_IMPORTED_MODULE_6__["default"])('User opted into telemetry'); 155}; 156 157var handleTelemetryModalOptOut = function handleTelemetryModalOptOut() { 158 Object(_lib_log_js__WEBPACK_IMPORTED_MODULE_6__["default"])('User opted out of telemetry'); 159}; 160/* 161 * Render the GUI playground. This is a separate function because importing anything 162 * that instantiates the VM causes unsupported browsers to crash 163 * {object} appTarget - the DOM element to render to 164 */ 165 166 167/* harmony default export */ __webpack_exports__["default"] = (function (appTarget) { 168 _containers_gui_jsx__WEBPACK_IMPORTED_MODULE_4__["default"].setAppElement(appTarget); // note that redux's 'compose' function is just being used as a general utility to make 169 // the hierarchy of HOC constructor calls clearer here; it has nothing to do with redux's 170 // ability to compose reducers. 171 172 var WrappedGui = Object(redux__WEBPACK_IMPORTED_MODULE_2__["compose"])(_lib_app_state_hoc_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], _lib_hash_parser_hoc_jsx__WEBPACK_IMPORTED_MODULE_5__["default"])(_containers_gui_jsx__WEBPACK_IMPORTED_MODULE_4__["default"]); // TODO a hack for testing the backpack, allow backpack host to be set by url param 173 174 var backpackHostMatches = window.location.href.match(/[?&]backpack_host=([^&]*)&?/); 175 var backpackHost = backpackHostMatches ? backpackHostMatches[1] : null; 176 var scratchDesktopMatches = window.location.href.match(/[?&]isScratchDesktop=([^&]+)/); 177 var simulateScratchDesktop; 178 179 if (scratchDesktopMatches) { 180 try { 181 // parse 'true' into `true`, 'false' into `false`, etc. 182 simulateScratchDesktop = JSON.parse(scratchDesktopMatches[1]); 183 } catch (_unused) { 184 // it's not JSON so just use the string 185 // note that a typo like "falsy" will be treated as true 186 simulateScratchDesktop = scratchDesktopMatches[1]; 187 } 188 } 189 190 if (false) {} 191 192 react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render( // important: this is checking whether `simulateScratchDesktop` is truthy, not just defined! 193 simulateScratchDesktop ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WrappedGui, { 194 canEditTitle: true,
195 isScratchDesktop: true, 196 showTelemetryModal: true, 197 canSave: false, 198 onTelemetryModalCancel: handleTelemetryModalCancel, 199 onTelemetryModalOptIn: handleTelemetryModalOptIn, 200 onTelemetryModalOptOut: handleTelemetryModalOptOut 201 }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WrappedGui, { 202 canEditTitle: true, 203 backpackVisible: true, 204 showComingSoon: true, 205 backpackHost: backpackHost, 206 canSave: false, 207 onClickLogo: onClickLogo 208 }), appTarget); 209}); 210 211/***/ })
211, 212 213/***/ 1: 214/*!*******************************************!*\ 215 !*** ./locale-data/complete.js (ignored) ***! 216 \*******************************************/ 217/*! no static exports found */ 218/***/ (function(module, exports) { 219 220/* (ignored) */ 221 222/***/ }) 223 224},[["./src/playground/index.jsx","lib.min"]]]); 225//# sourceMappingURL=gui.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.