// let $ = jQuery;
import $ from 'jquery';

window.BOLDGRID = window.BOLDGRID || {};
BOLDGRID.EDITOR.$window = $( window );

// Require jquery plugins.
import 'istyping';
import '@boldgrid/fourpan';
import 'textselect';
import 'jquery-slimscroll';
import 'wp-color-picker-alpha/src/wp-color-picker-alpha.js';

import 'jquery-ui-dist/jquery-ui.structure.css';
import 'jquery-ui-dist/jquery-ui.theme.css';
import '../css/font-family-controls.min.css';
import '../scss/_material-reset.scss';

// Import Libs.
import './builder/tinymce/wp-mce-draggable';
import './builder/util';
import './builder/controls';

// Require all Builder files.
function requireAll( r ) {
	r.keys().forEach( r );
}
requireAll( require.context( './builder/', true, /\.js$/ ) );
