"use strict";(self.webpackChunkjupyterlab_hidecell=self.webpackChunkjupyterlab_hidecell||[]).push([[568],{568:(e,l,d)=>{d.r(l),d.d(l,{default:()=>i});var o=d(308),c=d(122),t=d(838);const a=["hide-input","hide-output","hide-cell","remove-input","remove-output","remove-cell"],m=(e,l)=>{(0,t.apply_on_cells)(e,t.Scope.All,(e=>{l?(0,t.md_insert)(e,"tags","hidecell-debug"):(0,t.md_remove)(e,"tags","hidecell-debug")}))},i={id:"jupyterlab-hidecell:plugin",autoStart:!0,requires:[o.ICommandPalette,c.INotebookTracker],activate:(e,l,d)=>{let o;console.log("extension jupyterlab-hidecell is activating");for(const c of a){o=`hidecell:toggle-${c}`,e.commands.addCommand(o,{label:`toggle tag ${c} on active cell`,execute:()=>(0,t.apply_on_cells)(d,t.Scope.Active,(e=>{(0,t.md_toggle_multi)(e,"tags",c,a)}))}),l.addItem({command:o,category:"hidecell"});const[m,i]=c.split("-");e.commands.addKeyBinding({command:o,keys:["Accel 0",`${m[0].toUpperCase()}`,`${i[0].toUpperCase()}`],selector:".jp-Notebook"})}o="hidecell:debug-on",e.commands.addCommand(o,{label:"hidecell debug on: show cell parts regardless of their tags",execute:()=>m(d,!0)}),l.addItem({command:o,category:"hidecell"}),e.commands.addKeyBinding({command:o,keys:["Accel 0","N"],selector:".jp-Notebook"}),o="hidecell:debug-off",e.commands.addCommand(o,{label:"hidecell debug off",execute:()=>m(d,!1)}),l.addItem({command:o,category:"hidecell"}),e.commands.addKeyBinding({command:o,keys:["Accel 0","F"],selector:".jp-Notebook"})}}}}]);