// Licensed to Cloudera, Inc. under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import $ from 'jquery';
import '../jquery/jquery.migration';

import 'jquery-contextmenu'; // TODO: Remove, it's only used for "old" query builder
import 'jquery.cookie';
import 'jquery-form';
import '../jquery/plugins/jquery.selectize';
import 'selectize-plugin-clear';

import 'jquery-ui/ui/widgets/autocomplete';
import 'jquery-ui/ui/widgets/mouse';
import 'jquery-ui/ui/widgets/draggable';
import 'jquery-ui/ui/widgets/droppable';
import 'jquery-ui/ui/widgets/resizable';
import 'jquery-ui/ui/widgets/sortable';

import '../ext/jquery.chosen.1.0.0.min';
import '../ext/jquery.dataTables.1.8.2.min';
import '../ext/jquery.select2.3.5.1.min';

import '../jquery/plugins/jquery.datatables.sorting';
import '../jquery/plugins/jquery.delayedinput';
import '../jquery/plugins/jquery.filechooser';
import '../jquery/plugins/jquery.hdfs.autocomplete';
import '../jquery/plugins/jquery.hiveautocomplete';
import '../jquery/plugins/jquery.horizontalscrollbar';
import '../jquery/plugins/jquery.huedatatable';
import '../jquery/plugins/jquery.notify';
import '../jquery/plugins/jquery.rowselector';
import '../jquery/plugins/jquery.scrollleft';
import '../jquery/plugins/jquery.scrollup';
import '../jquery/plugins/jquery.selector';
import '../jquery/plugins/jquery.tableextender';
import '../jquery/plugins/jquery.tableextender2';
import '../jquery/plugins/jquery.tablescroller';
import '../jquery/plugins/jquery.titleupdater';

window.$ = $;
window.jQuery = $;

export default $;
