"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MathQuill = void 0;

var _jquery = _interopRequireDefault(require("jquery"));

var _mathquill = _interopRequireDefault(require("node-mathquill/build/mathquill"));

require("node-mathquill/build/mathquill.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// Moved these files here because exports-loader is only valid when built
// using webpack, but this project is being built using babel.
// The MathQuill IIFE explicitly looks for jQuery at window.jQuery.
// This means that
//    A) window must exist (browser env only)
//    B) jQuery is being loaded via <script src=".../jquery">
//
window.jQuery = window.jQuery || _jquery.default;
window.MathQuill = window.MathQuill || _mathquill.default;
const MathQuill = window.MathQuill || _mathquill.default; // // [FS] IRAD-1010 2020-07-24
// // With the latest to generate export default MathQuill these options need to
// // be passed into exports loader.  Moved this from webpack config to here, so
// // that package could load fine with other application.
// const MQLoader = require('exports-loader?exports=default|MathQuill&type=module!node-mathquill/build/mathquill.js');
// export const MathQuill = MQLoader.default;

exports.MathQuill = MathQuill;