{"code":"(window.webpackJsonpGUI=window.webpackJsonpGUI||[]).push([[38],{1570:function(t,e,s){\"use strict\";s.r(e),s.d(e,\"resources\",(function(){return a}));const a={\"userscript.js\":async function(t){let{addon:e,msg:s,console:a}=t;const c=await e.tab.traps.getBlockly(),n=c.Variables.createVariable;c.Variables.createVariable=function(t,s,a){if(!e.self.disabled){const e=s;s=s=>{if(s){const e=t.isFlyout?t:t.getFlyout();e.setCheckboxState&&e.setCheckboxState(s,!1)}e&&e(s)}}return n.call(this,t,s,a)}}}}}]);","name":"js/pentapod/addon-entry-hide-new-variables.726d1d2846d036ea4f3e.js","input":"(window[\"webpackJsonpGUI\"] = window[\"webpackJsonpGUI\"] || []).push([[38],{\n\n/***/ 1570:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, \"resources\", function() { return /* binding */ resources; });\n\n// CONCATENATED MODULE: ./src/addons/addons/hide-new-variables/userscript.js\n/* harmony default export */ var userscript = (async function (_ref) {\n let {\n addon,\n msg,\n console\n } = _ref;\n const ScratchBlocks = await addon.tab.traps.getBlockly();\n const originalCreateVariable = ScratchBlocks.Variables.createVariable;\n // https://github.com/scratchfoundation/scratch-blocks/blob/893c7e7ad5bfb416eaed75d9a1c93bdce84e36ab/core/variables.js#L277\n ScratchBlocks.Variables.createVariable = function (workspace, opt_callback, opt_type) {\n if (!addon.self.disabled) {\n const originalCallback = opt_callback;\n opt_callback = variableBlockId => {\n if (variableBlockId) {\n const flyout = workspace.isFlyout ? workspace : workspace.getFlyout();\n if (flyout.setCheckboxState) {\n flyout.setCheckboxState(variableBlockId, false);\n }\n }\n if (originalCallback) {\n originalCallback(variableBlockId);\n }\n };\n }\n return originalCreateVariable.call(this, workspace, opt_callback, opt_type);\n };\n});\n// CONCATENATED MODULE: ./src/addons/addons/hide-new-variables/_runtime_entry.js\n/* generated by pull.js */\n\nconst resources = {\n \"userscript.js\": userscript\n};\n\n/***/ })\n\n}]);","inputSourceMap":null}