export class Sidebar { static _ ( ) { return new Sidebar ( ) ; } open ( ) { var self = this ; var drawer = document . getElementsByTagName ( 'minds-sidebar' ) [ 0 ] ; if ( drawer . classList . contains ( 'is-visible' ) ) { return this . close ( ) ; } drawer . classList . add ( 'is-visible' ) ; } close ( ) { var drawer = document . getElementsByTagName ( 'minds-sidebar' ) [ 0 ] ; drawer . classList . remove ( 'is-visible' ) ; } }