"use strict";(self.webpackChunkjupyterlab_hide_code=self.webpackChunkjupyterlab_hide_code||[]).push([[462],{462:(e,t,n)=>{n.r(t),n.d(t,{ButtonExtension:()=>u,default:()=>d});var o=n(129),r=n(148),a=n(125),i=n(379),s=n.n(i),c=n(760);s()(c.Z,{insert:"head",singleton:!1}),c.Z.locals;const l={id:"jupyterlab-hide-code",autoStart:!0,activate:e=>{e.docRegistry.addWidgetExtension("Notebook",new u),console.log("JupyterLab extension jupyterlab-hide-code is activated!")}};class u{createNew(e,t){const n=new r.ToolbarButton({className:"myButton",iconClass:"fa fa-sm fa-eye-slash fontawesome-colors",onClick:()=>{a.NotebookActions.runAll(e.content,t.sessionContext),e.content.widgets.forEach((e=>{"code"===e.model.type&&e.layout.widgets[1].hide()})),n.hide(),i.show()},tooltip:"Hide Input"}),i=new r.ToolbarButton({className:"myButton",iconClass:"fa fa-sm fa-eye fontawesome-colors",onClick:()=>{e.content.widgets.forEach((e=>{"code"===e.model.type&&e.layout.widgets[1].show()})),n.show(),i.hide()},tooltip:"Show Input"});return i.hide(),e.toolbar.insertItem(11,"hideInput",n),e.toolbar.insertItem(11,"showInput",i),new o.DisposableDelegate((()=>{n.dispose(),i.dispose()}))}}const d=l},150:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(645),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".fontawesome-colors {\n    color: gray;\n}",""]);const a=r},760:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(645),r=n.n(o),a=n(150),i=r()((function(e){return e[1]}));i.i(a.Z),i.push([e.id,"\n",""]);const s=i},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(r[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},379:(e,t,n)=>{var o,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function i(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var s=e[r],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=i(u),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:m(f,t),references:1}),o.push(u)}return o}function c(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var a=n.nc;a&&(o.nonce=a)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=r(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var a=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t,n){var o=n.css,r=n.media,a=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,p=0;function m(e,t){var n,o,r;if(t.singleton){var a=p++;n=h||(h=c(t)),o=d.bind(null,n,a,!1),r=d.bind(null,n,a,!0)}else n=c(t),o=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=i(n[o]);a[r].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=i(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=c}}}}}]);