/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/packs/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ({ /***/ "./app/javascript/packs/active_admin.js": /*!**********************************************!*\ !*** ./app/javascript/packs/active_admin.js ***! \**********************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _stylesheets_active_admin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../stylesheets/active_admin */ "./app/javascript/stylesheets/active_admin.scss"); /* harmony import */ var _stylesheets_active_admin__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylesheets_active_admin__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _activeadmin_activeadmin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @activeadmin/activeadmin */ "./node_modules/@activeadmin/activeadmin/app/assets/javascripts/active_admin/base.js"); /* harmony import */ var _activeadmin_activeadmin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_activeadmin_activeadmin__WEBPACK_IMPORTED_MODULE_1__); // Load Active Admin's styles into Webpacker, // see `active_admin.scss` for customization. /***/ }), /***/ "./app/javascript/packs/active_admin.scss": /*!************************************************!*\ !*** ./app/javascript/packs/active_admin.scss ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "./app/javascript/stylesheets/active_admin.scss": /*!******************************************************!*\ !*** ./app/javascript/stylesheets/active_admin.scss ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "./node_modules/@activeadmin/activeadmin/app/assets/javascripts/active_admin/base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@activeadmin/activeadmin/app/assets/javascripts/active_admin/base.js ***! \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } /** * Warning: This file is auto-generated, do not modify. Instead, make your changes in 'app/javascript/active_admin/' and run `yarn build` */ //= require jquery3 //= require jquery-ui/widgets/datepicker //= require jquery-ui/widgets/dialog //= require jquery-ui/widgets/sortable //= require jquery-ui/widgets/tabs //= require jquery-ui/widget //= require jquery_ujs //= require_self (function (global, factory) { ( false ? undefined : _typeof(exports)) === "object" && typeof module !== "undefined" ? factory(exports, __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! jquery-ui/ui/widgets/datepicker */ "./node_modules/jquery-ui/ui/widgets/datepicker.js"), __webpack_require__(/*! jquery-ui/ui/widgets/dialog */ "./node_modules/jquery-ui/ui/widgets/dialog.js"), __webpack_require__(/*! jquery-ui/ui/widgets/sortable */ "./node_modules/jquery-ui/ui/widgets/sortable.js"), __webpack_require__(/*! jquery-ui/ui/widgets/tabs */ "./node_modules/jquery-ui/ui/widgets/tabs.js"), __webpack_require__(/*! jquery-ui/ui/widget */ "./node_modules/jquery-ui/ui/widget.js"), __webpack_require__(/*! jquery-ujs */ "./node_modules/jquery-ujs/src/rails.js")) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! jquery-ui/ui/widgets/datepicker */ "./node_modules/jquery-ui/ui/widgets/datepicker.js"), __webpack_require__(/*! jquery-ui/ui/widgets/dialog */ "./node_modules/jquery-ui/ui/widgets/dialog.js"), __webpack_require__(/*! jquery-ui/ui/widgets/sortable */ "./node_modules/jquery-ui/ui/widgets/sortable.js"), __webpack_require__(/*! jquery-ui/ui/widgets/tabs */ "./node_modules/jquery-ui/ui/widgets/tabs.js"), __webpack_require__(/*! jquery-ui/ui/widget */ "./node_modules/jquery-ui/ui/widget.js"), __webpack_require__(/*! jquery-ujs */ "./node_modules/jquery-ujs/src/rails.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : (undefined); })(this, function (exports) { "use strict"; $.fn.serializeObject = function () { return this.serializeArray().reduce(function (obj, item) { obj[item.name] = item.value; return obj; }, {}); }; $.ui.dialog.prototype._focusTabbable = function () { this.uiDialog.focus(); }; function ModalDialog(message, inputs, callback) { var html = '
"; var form = $(html).appendTo("body"); $("body").trigger("modal_dialog:before_open", [form]); form.dialog({ modal: true, open: function open(_event, _ui) { $("body").trigger("modal_dialog:after_open", [form]); }, dialogClass: "active_admin_dialog", buttons: { OK: function OK() { callback($(this).serializeObject()); $(this).dialog("close"); }, Cancel: function Cancel() { $(this).dialog("close").remove(); } } }); } var onDOMReady$2 = function onDOMReady() { $(".batch_actions_selector li a").off("click confirm:complete"); $(".batch_actions_selector li a").on("click", function (event) { var _this = this; var message; event.stopPropagation(); event.preventDefault(); if (message = $(this).data("confirm")) { ModalDialog(message, $(this).data("inputs"), function (inputs) { $(_this).trigger("confirm:complete", inputs); }); } else { $(this).trigger("confirm:complete"); } }); $(".batch_actions_selector li a").on("confirm:complete", function (event, inputs) { var val; if (val = JSON.stringify(inputs)) { $("#batch_action_inputs").removeAttr("disabled").val(val); } else { $("#batch_action_inputs").attr("disabled", "disabled"); } $("#batch_action").val($(this).data("action")); $("#collection_selection").submit(); }); if ($(".batch_actions_selector").length && $(":checkbox.toggle_all").length) { if ($(".paginated_collection table.index_table").length) { $(".paginated_collection table.index_table").tableCheckboxToggler(); } else { $(".paginated_collection").checkboxToggler(); } $(document).on("change", ".paginated_collection :checkbox", function () { if ($(".paginated_collection :checkbox:checked").length && $(".dropdown_menu_list").children().length) { $(".batch_actions_selector").each(function () { $(this).aaDropdownMenu("enable"); }); } else { $(".batch_actions_selector").each(function () { $(this).aaDropdownMenu("disable"); }); } }); } }; $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2); var CheckboxToggler = function () { function CheckboxToggler(options, container) { this.options = options; this.container = container; this._init(); this._bind(); } var _proto = CheckboxToggler.prototype; _proto.option = function option(_key, _value) {}; _proto._init = function _init() { if (!this.container) { throw new Error("Container element not found"); } else { this.$container = $(this.container); } if (!this.$container.find(".toggle_all").length) { throw new Error('"toggle all" checkbox not found'); } else { this.toggle_all_checkbox = this.$container.find(".toggle_all"); } this.checkboxes = this.$container.find(":checkbox").not(this.toggle_all_checkbox); }; _proto._bind = function _bind() { var _this = this; this.checkboxes.change(function (event) { return _this._didChangeCheckbox(event.target); }); this.toggle_all_checkbox.change(function () { return _this._didChangeToggleAllCheckbox(); }); }; _proto._didChangeCheckbox = function _didChangeCheckbox(_checkbox) { var numChecked = this.checkboxes.filter(":checked").length; var allChecked = numChecked === this.checkboxes.length; var someChecked = numChecked > 0 && numChecked < this.checkboxes.length; this.toggle_all_checkbox.prop({ checked: allChecked, indeterminate: someChecked }); }; _proto._didChangeToggleAllCheckbox = function _didChangeToggleAllCheckbox() { var setting = this.toggle_all_checkbox.prop("checked"); this.checkboxes.prop({ checked: setting }); return setting; }; return CheckboxToggler; }(); $.widget.bridge("checkboxToggler", CheckboxToggler); (function ($) { $(document).on("focus", "input.datepicker:not(.hasDatepicker)", function () { var input = $(this); if (input[0].type === "date") { return; } var defaults = { dateFormat: "yy-mm-dd" }; var options = input.data("datepicker-options"); input.datepicker($.extend(defaults, options)); }); })(jQuery); var DropdownMenu = function () { function DropdownMenu(options, element) { this.options = options; this.element = element; this.$element = $(this.element); var defaults = { fadeInDuration: 20, fadeOutDuration: 100, onClickActionItemCallback: null }; this.options = $.extend(defaults, this.options); this.isOpen = false; this.$menuButton = this.$element.find(".dropdown_menu_button"); this.$menuList = this.$element.find(".dropdown_menu_list_wrapper"); this._buildMenuList(); this._bind(); } var _proto = DropdownMenu.prototype; _proto.open = function open() { this.isOpen = true; this.$menuList.fadeIn(this.options.fadeInDuration); this._position(); return this; }; _proto.close = function close() { this.isOpen = false; this.$menuList.fadeOut(this.options.fadeOutDuration); return this; }; _proto.destroy = function destroy() { this.$element = null; return this; }; _proto.isDisabled = function isDisabled() { return this.$menuButton.hasClass("disabled"); }; _proto.disable = function disable() { this.$menuButton.addClass("disabled"); }; _proto.enable = function enable() { this.$menuButton.removeClass("disabled"); }; _proto.option = function option(key, value) { if ($.isPlainObject(key)) { return this.options = $.extend(true, this.options, key); } else if (key != null) { return this.options[key]; } else { return this.options[key] = value; } }; _proto._buildMenuList = function _buildMenuList() { this.$nipple = $(''); this.$menuList.prepend(this.$nipple); this.$menuList.hide(); }; _proto._bind = function _bind() { var _this = this; $("body").click(function () { if (_this.isOpen) { _this.close(); } }); this.$menuButton.click(function () { if (!_this.isDisabled()) { if (_this.isOpen) { _this.close(); } else { _this.open(); } } return false; }); }; _proto._position = function _position() { this.$menuList.css("top", this.$menuButton.position().top + this.$menuButton.outerHeight() + 10); var button_left = this.$menuButton.position().left; var button_center = this.$menuButton.outerWidth() / 2; var button_right = button_left + button_center * 2; var menu_center = this.$menuList.outerWidth() / 2; var nipple_center = this.$nipple.outerWidth() / 2; var window_right = $(window).width(); var centered_menu_left = button_left + button_center - menu_center; var centered_menu_right = button_left + button_center + menu_center; if (centered_menu_left < 0) { this.$menuList.css("left", button_left); this.$nipple.css("left", button_center - nipple_center); } else if (centered_menu_right > window_right) { this.$menuList.css("right", window_right - button_right); this.$nipple.css("right", button_center - nipple_center); } else { this.$menuList.css("left", centered_menu_left); this.$nipple.css("left", menu_center - nipple_center); } }; return DropdownMenu; }(); $.widget.bridge("aaDropdownMenu", DropdownMenu); var onDOMReady$1 = function onDOMReady() { return $(".dropdown_menu").aaDropdownMenu(); }; $(document).ready(onDOMReady$1).on("page:load turbolinks:load", onDOMReady$1); function hasTurbolinks() { return typeof Turbolinks !== "undefined" && Turbolinks.supported; } function turbolinksVisit(params) { var path = [window.location.pathname, "?", toQueryString(params)].join(""); Turbolinks.visit(path); } function queryString() { return (window.location.search || "").replace(/^\?/, ""); } function queryStringToParams() { var decode = function decode(value) { return decodeURIComponent((value || "").replace(/\+/g, "%20")); }; return queryString().split("&").map(function (pair) { return pair.split("="); }).map(function (_ref) { var key = _ref[0], value = _ref[1]; return { name: decode(key), value: decode(value) }; }); } function toQueryString(params) { var encode = function encode(value) { return encodeURIComponent(value || ""); }; return params.map(function (_ref2) { var name = _ref2.name, value = _ref2.value; return [encode(name), encode(value)]; }).map(function (pair) { return pair.join("="); }).join("&"); } var Filters = function () { function Filters() {} Filters._clearForm = function _clearForm(event) { var regex = /^(q\[|q%5B|q%5b|page|utf8|commit)/; var params = queryStringToParams().filter(function (_ref) { var name = _ref.name; return !name.match(regex); }); event.preventDefault(); if (hasTurbolinks()) { turbolinksVisit(params); } else { window.location.search = toQueryString(params); } }; Filters._disableEmptyInputFields = function _disableEmptyInputFields(event) { var params = $(this).find(":input").filter(function (i, input) { return input.value === ""; }).prop({ disabled: true }).end().serializeArray(); if (hasTurbolinks()) { event.preventDefault(); turbolinksVisit(params); } }; Filters._setSearchType = function _setSearchType() { $(this).siblings("input").prop({ name: "q[" + this.value + "]" }); }; return Filters; }(); (function ($) { $(document).on("click", ".clear_filters_btn", Filters._clearForm).on("submit", ".filter_form", Filters._disableEmptyInputFields).on("change", ".filter_form_field.select_and_search select", Filters._setSearchType); })(jQuery); $(function () { $(document).on("click", "a.button.has_many_remove", function (event) { event.preventDefault(); var parent = $(this).closest(".has_many_container"); var to_remove = $(this).closest("fieldset"); recompute_positions(parent); parent.trigger("has_many_remove:before", [to_remove, parent]); to_remove.remove(); return parent.trigger("has_many_remove:after", [to_remove, parent]); }); $(document).on("click", "a.button.has_many_add", function (event) { var before_add; event.preventDefault(); var parent = $(this).closest(".has_many_container"); parent.trigger(before_add = $.Event("has_many_add:before"), [parent]); if (!before_add.isDefaultPrevented()) { var index = parent.data("has_many_index") || parent.children("fieldset").length - 1; parent.data({ has_many_index: ++index }); var regex = new RegExp($(this).data("placeholder"), "g"); var html = $(this).data("html").replace(regex, index); var fieldset = $(html).insertBefore(this); recompute_positions(parent); return parent.trigger("has_many_add:after", [fieldset, parent]); } }); $(document).on("change", '.has_many_container[data-sortable] :input[name$="[_destroy]"]', function () { recompute_positions($(this).closest(".has_many")); }); $(document).on("has_many_add:after", ".has_many_container", init_sortable); }); var init_sortable = function init_sortable() { var elems = $(".has_many_container[data-sortable]:not(.ui-sortable)"); elems.sortable({ items: "> fieldset", handle: "> ol > .handle", start: function start(ev, ui) { ui.item.css({ opacity: .3 }); }, stop: function stop(ev, ui) { ui.item.css({ opacity: 1 }); recompute_positions($(this)); } }); elems.each(recompute_positions); }; var recompute_positions = function recompute_positions(parent) { parent = parent instanceof jQuery ? parent : $(this); var input_name = parent.data("sortable"); var position = parseInt(parent.data("sortable-start") || 0, 10); parent.children("fieldset").each(function () { var destroy_input = $(this).find("> ol > .input > :input[name$='[_destroy]']"); var sortable_input = $(this).find("> ol > .input > :input[name$='[" + input_name + "]']"); if (sortable_input.length) { sortable_input.val(destroy_input.is(":checked") ? "" : position++); } }); }; $(document).ready(init_sortable).on("page:load turbolinks:load", init_sortable); var PerPage = function () { function PerPage(element) { this.element = element; } var _proto = PerPage.prototype; _proto.update = function update() { var params = queryStringToParams().filter(function (_ref) { var name = _ref.name; return name != "per_page" || name != "page"; }); params.push({ name: "per_page", value: this.element.value }); if (hasTurbolinks()) { turbolinksVisit(params); } else { window.location.search = toQueryString(params); } }; PerPage._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $this = $(this); var data = $this.data("perPage"); if (!data) { data = new PerPage(this); $this.data("perPage", data); } if (config === "update") { data[config](); } }); }; return PerPage; }(); (function ($) { $(document).on("change", ".pagination_per_page > select", function (_event) { PerPage._jQueryInterface.call($(this), "update"); }); $.fn["perPage"] = PerPage._jQueryInterface; $.fn["perPage"].Constructor = PerPage; })(jQuery); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var TableCheckboxToggler = function (_CheckboxToggler) { _inheritsLoose(TableCheckboxToggler, _CheckboxToggler); function TableCheckboxToggler() { return _CheckboxToggler.apply(this, arguments) || this; } var _proto = TableCheckboxToggler.prototype; _proto._bind = function _bind() { var _this = this; _CheckboxToggler.prototype._bind.apply(this, arguments); this.$container.find("tbody td").click(function (event) { if (event.target.type !== "checkbox") { _this._didClickCell(event.target); } }); }; _proto._didChangeCheckbox = function _didChangeCheckbox(checkbox) { _CheckboxToggler.prototype._didChangeCheckbox.apply(this, arguments); $(checkbox).parents("tr").toggleClass("selected", checkbox.checked); }; _proto._didChangeToggleAllCheckbox = function _didChangeToggleAllCheckbox() { this.$container.find("tbody tr").toggleClass("selected", _CheckboxToggler.prototype._didChangeToggleAllCheckbox.apply(this, arguments)); }; _proto._didClickCell = function _didClickCell(cell) { $(cell).parent("tr").find(":checkbox").click(); }; return TableCheckboxToggler; }(CheckboxToggler); $.widget.bridge("tableCheckboxToggler", TableCheckboxToggler); var onDOMReady = function onDOMReady() { return $("#active_admin_content .tabs").tabs(); }; $(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady); function modal_dialog(message, inputs, callback) { console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage."); return ModalDialog(message, inputs, callback); } exports.ModalDialog = ModalDialog; exports.modal_dialog = modal_dialog; Object.defineProperty(exports, "__esModule", { value: true }); }); /***/ }), /***/ "./node_modules/jquery-ui/ui/data.js": /*!*******************************************!*\ !*** ./node_modules/jquery-ui/ui/data.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI :data 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: :data Selector //>>group: Core //>>description: Selects elements which have data stored under the specified key. //>>docs: http://api.jqueryui.com/data-selector/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.extend($.expr.pseudos, { data: $.expr.createPseudo ? $.expr.createPseudo(function (dataName) { return function (elem) { return !!$.data(elem, dataName); }; }) : // Support: jQuery <1.8 function (elem, i, match) { return !!$.data(elem, match[3]); } }); }); /***/ }), /***/ "./node_modules/jquery-ui/ui/disable-selection.js": /*!********************************************************!*\ !*** ./node_modules/jquery-ui/ui/disable-selection.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Disable Selection 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: disableSelection //>>group: Core //>>description: Disable selection of text content within the set of matched elements. //>>docs: http://api.jqueryui.com/disableSelection/ // This file is deprecated (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.fn.extend({ disableSelection: function () { var eventType = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown"; return function () { return this.on(eventType + ".ui-disableSelection", function (event) { event.preventDefault(); }); }; }(), enableSelection: function enableSelection() { return this.off(".ui-disableSelection"); } }); }); /***/ }), /***/ "./node_modules/jquery-ui/ui/focusable.js": /*!************************************************!*\ !*** ./node_modules/jquery-ui/ui/focusable.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Focusable 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: :focusable Selector //>>group: Core //>>description: Selects elements which can be focused. //>>docs: http://api.jqueryui.com/focusable-selector/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; // Selectors $.ui.focusable = function (element, hasTabindex) { var map, mapName, img, focusableIfVisible, fieldset, nodeName = element.nodeName.toLowerCase(); if ("area" === nodeName) { map = element.parentNode; mapName = map.name; if (!element.href || !mapName || map.nodeName.toLowerCase() !== "map") { return false; } img = $("img[usemap='#" + mapName + "']"); return img.length > 0 && img.is(":visible"); } if (/^(input|select|textarea|button|object)$/.test(nodeName)) { focusableIfVisible = !element.disabled; if (focusableIfVisible) { // Form controls within a disabled fieldset are disabled. // However, controls within the fieldset's legend do not get disabled. // Since controls generally aren't placed inside legends, we skip // this portion of the check. fieldset = $(element).closest("fieldset")[0]; if (fieldset) { focusableIfVisible = !fieldset.disabled; } } } else if ("a" === nodeName) { focusableIfVisible = element.href || hasTabindex; } else { focusableIfVisible = hasTabindex; } return focusableIfVisible && $(element).is(":visible") && visible($(element)); }; // Support: IE 8 only // IE 8 doesn't resolve inherit to visible/hidden for computed values function visible(element) { var visibility = element.css("visibility"); while (visibility === "inherit") { element = element.parent(); visibility = element.css("visibility"); } return visibility === "visible"; } $.extend($.expr.pseudos, { focusable: function focusable(element) { return $.ui.focusable(element, $.attr(element, "tabindex") != null); } }); return $.ui.focusable; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/form-reset-mixin.js": /*!*******************************************************!*\ !*** ./node_modules/jquery-ui/ui/form-reset-mixin.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Form Reset Mixin 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: Form Reset Mixin //>>group: Core //>>description: Refresh input widgets when their form is reset //>>docs: http://api.jqueryui.com/form-reset-mixin/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./form */ "./node_modules/jquery-ui/ui/form.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.ui.formResetMixin = { _formResetHandler: function _formResetHandler() { var form = $(this); // Wait for the form reset to actually happen before refreshing setTimeout(function () { var instances = form.data("ui-form-reset-instances"); $.each(instances, function () { this.refresh(); }); }); }, _bindFormResetHandler: function _bindFormResetHandler() { this.form = this.element._form(); if (!this.form.length) { return; } var instances = this.form.data("ui-form-reset-instances") || []; if (!instances.length) { // We don't use _on() here because we use a single event handler per form this.form.on("reset.ui-form-reset", this._formResetHandler); } instances.push(this); this.form.data("ui-form-reset-instances", instances); }, _unbindFormResetHandler: function _unbindFormResetHandler() { if (!this.form.length) { return; } var instances = this.form.data("ui-form-reset-instances"); instances.splice($.inArray(this, instances), 1); if (instances.length) { this.form.data("ui-form-reset-instances", instances); } else { this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"); } } }; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/form.js": /*!*******************************************!*\ !*** ./node_modules/jquery-ui/ui/form.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; // Support: IE8 Only // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop // with a string, so we need to find the proper form. return $.fn._form = function () { return typeof this[0].form === "string" ? this.closest("form") : $(this[0].form); }; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/ie.js": /*!*****************************************!*\ !*** ./node_modules/jquery-ui/ui/ie.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; // This file is deprecated return $.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()); }); /***/ }), /***/ "./node_modules/jquery-ui/ui/keycode.js": /*!**********************************************!*\ !*** ./node_modules/jquery-ui/ui/keycode.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Keycode 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: Keycode //>>group: Core //>>description: Provide keycodes as keynames //>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.ui.keyCode = { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 }; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/labels.js": /*!*********************************************!*\ !*** ./node_modules/jquery-ui/ui/labels.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Labels 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: labels //>>group: Core //>>description: Find all the labels associated with a given input //>>docs: http://api.jqueryui.com/labels/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.fn.labels = function () { var ancestor, selector, id, labels, ancestors; if (!this.length) { return this.pushStack([]); } // Check control.labels first if (this[0].labels && this[0].labels.length) { return this.pushStack(this[0].labels); } // Support: IE <= 11, FF <= 37, Android <= 2.3 only // Above browsers do not support control.labels. Everything below is to support them // as well as document fragments. control.labels does not work on document fragments labels = this.eq(0).parents("label"); // Look for the label based on the id id = this.attr("id"); if (id) { // We don't search against the document in case the element // is disconnected from the DOM ancestor = this.eq(0).parents().last(); // Get a full set of top level ancestors ancestors = ancestor.add(ancestor.length ? ancestor.siblings() : this.siblings()); // Create a selector for the label based on the id selector = "label[for='" + $.escapeSelector(id) + "']"; labels = labels.add(ancestors.find(selector).addBack(selector)); } // Return whatever we have found for labels return this.pushStack(labels); }; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/plugin.js": /*!*********************************************!*\ !*** ./node_modules/jquery-ui/ui/plugin.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; // $.ui.plugin is deprecated. Use $.widget() extensions instead. return $.ui.plugin = { add: function add(module, option, set) { var i, proto = $.ui[module].prototype; for (i in set) { proto.plugins[i] = proto.plugins[i] || []; proto.plugins[i].push([option, set[i]]); } }, call: function call(instance, name, args, allowDisconnected) { var i, set = instance.plugins[name]; if (!set) { return; } if (!allowDisconnected && (!instance.element[0].parentNode || instance.element[0].parentNode.nodeType === 11)) { return; } for (i = 0; i < set.length; i++) { if (instance.options[set[i][0]]) { set[i][1].apply(instance.element, args); } } } }; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/position.js": /*!***********************************************!*\ !*** ./node_modules/jquery-ui/ui/position.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery UI Position 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/position/ */ //>>label: Position //>>group: Core //>>description: Positions elements relative to other elements. //>>docs: http://api.jqueryui.com/position/ //>>demos: http://jqueryui.com/position/ (function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; (function () { var cachedScrollbarWidth, max = Math.max, abs = Math.abs, rhorizontal = /left|center|right/, rvertical = /top|center|bottom/, roffset = /[\+\-]\d+(\.[\d]+)?%?/, rposition = /^\w+/, rpercent = /%$/, _position = $.fn.position; function getOffsets(offsets, width, height) { return [parseFloat(offsets[0]) * (rpercent.test(offsets[0]) ? width / 100 : 1), parseFloat(offsets[1]) * (rpercent.test(offsets[1]) ? height / 100 : 1)]; } function parseCss(element, property) { return parseInt($.css(element, property), 10) || 0; } function isWindow(obj) { return obj != null && obj === obj.window; } function getDimensions(elem) { var raw = elem[0]; if (raw.nodeType === 9) { return { width: elem.width(), height: elem.height(), offset: { top: 0, left: 0 } }; } if (isWindow(raw)) { return { width: elem.width(), height: elem.height(), offset: { top: elem.scrollTop(), left: elem.scrollLeft() } }; } if (raw.preventDefault) { return { width: 0, height: 0, offset: { top: raw.pageY, left: raw.pageX } }; } return { width: elem.outerWidth(), height: elem.outerHeight(), offset: elem.offset() }; } $.position = { scrollbarWidth: function scrollbarWidth() { if (cachedScrollbarWidth !== undefined) { return cachedScrollbarWidth; } var w1, w2, div = $("
" + "
"), innerDiv = div.children()[0]; $("body").append(div); w1 = innerDiv.offsetWidth; div.css("overflow", "scroll"); w2 = innerDiv.offsetWidth; if (w1 === w2) { w2 = div[0].clientWidth; } div.remove(); return cachedScrollbarWidth = w1 - w2; }, getScrollInfo: function getScrollInfo(within) { var overflowX = within.isWindow || within.isDocument ? "" : within.element.css("overflow-x"), overflowY = within.isWindow || within.isDocument ? "" : within.element.css("overflow-y"), hasOverflowX = overflowX === "scroll" || overflowX === "auto" && within.width < within.element[0].scrollWidth, hasOverflowY = overflowY === "scroll" || overflowY === "auto" && within.height < within.element[0].scrollHeight; return { width: hasOverflowY ? $.position.scrollbarWidth() : 0, height: hasOverflowX ? $.position.scrollbarWidth() : 0 }; }, getWithinInfo: function getWithinInfo(element) { var withinElement = $(element || window), isElemWindow = isWindow(withinElement[0]), isDocument = !!withinElement[0] && withinElement[0].nodeType === 9, hasOffset = !isElemWindow && !isDocument; return { element: withinElement, isWindow: isElemWindow, isDocument: isDocument, offset: hasOffset ? $(element).offset() : { left: 0, top: 0 }, scrollLeft: withinElement.scrollLeft(), scrollTop: withinElement.scrollTop(), width: withinElement.outerWidth(), height: withinElement.outerHeight() }; } }; $.fn.position = function (options) { if (!options || !options.of) { return _position.apply(this, arguments); } // Make a copy, we don't want to modify arguments options = $.extend({}, options); var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, // Make sure string options are treated as CSS selectors target = typeof options.of === "string" ? $(document).find(options.of) : $(options.of), within = $.position.getWithinInfo(options.within), scrollInfo = $.position.getScrollInfo(within), collision = (options.collision || "flip").split(" "), offsets = {}; dimensions = getDimensions(target); if (target[0].preventDefault) { // Force left top to allow flipping options.at = "left top"; } targetWidth = dimensions.width; targetHeight = dimensions.height; targetOffset = dimensions.offset; // Clone to reuse original targetOffset later basePosition = $.extend({}, targetOffset); // Force my and at to have valid horizontal and vertical positions // if a value is missing or invalid, it will be converted to center $.each(["my", "at"], function () { var pos = (options[this] || "").split(" "), horizontalOffset, verticalOffset; if (pos.length === 1) { pos = rhorizontal.test(pos[0]) ? pos.concat(["center"]) : rvertical.test(pos[0]) ? ["center"].concat(pos) : ["center", "center"]; } pos[0] = rhorizontal.test(pos[0]) ? pos[0] : "center"; pos[1] = rvertical.test(pos[1]) ? pos[1] : "center"; // Calculate offsets horizontalOffset = roffset.exec(pos[0]); verticalOffset = roffset.exec(pos[1]); offsets[this] = [horizontalOffset ? horizontalOffset[0] : 0, verticalOffset ? verticalOffset[0] : 0]; // Reduce to just the positions without the offsets options[this] = [rposition.exec(pos[0])[0], rposition.exec(pos[1])[0]]; }); // Normalize collision option if (collision.length === 1) { collision[1] = collision[0]; } if (options.at[0] === "right") { basePosition.left += targetWidth; } else if (options.at[0] === "center") { basePosition.left += targetWidth / 2; } if (options.at[1] === "bottom") { basePosition.top += targetHeight; } else if (options.at[1] === "center") { basePosition.top += targetHeight / 2; } atOffset = getOffsets(offsets.at, targetWidth, targetHeight); basePosition.left += atOffset[0]; basePosition.top += atOffset[1]; return this.each(function () { var collisionPosition, using, elem = $(this), elemWidth = elem.outerWidth(), elemHeight = elem.outerHeight(), marginLeft = parseCss(this, "marginLeft"), marginTop = parseCss(this, "marginTop"), collisionWidth = elemWidth + marginLeft + parseCss(this, "marginRight") + scrollInfo.width, collisionHeight = elemHeight + marginTop + parseCss(this, "marginBottom") + scrollInfo.height, position = $.extend({}, basePosition), myOffset = getOffsets(offsets.my, elem.outerWidth(), elem.outerHeight()); if (options.my[0] === "right") { position.left -= elemWidth; } else if (options.my[0] === "center") { position.left -= elemWidth / 2; } if (options.my[1] === "bottom") { position.top -= elemHeight; } else if (options.my[1] === "center") { position.top -= elemHeight / 2; } position.left += myOffset[0]; position.top += myOffset[1]; collisionPosition = { marginLeft: marginLeft, marginTop: marginTop }; $.each(["left", "top"], function (i, dir) { if ($.ui.position[collision[i]]) { $.ui.position[collision[i]][dir](position, { targetWidth: targetWidth, targetHeight: targetHeight, elemWidth: elemWidth, elemHeight: elemHeight, collisionPosition: collisionPosition, collisionWidth: collisionWidth, collisionHeight: collisionHeight, offset: [atOffset[0] + myOffset[0], atOffset[1] + myOffset[1]], my: options.my, at: options.at, within: within, elem: elem }); } }); if (options.using) { // Adds feedback as second argument to using callback, if present using = function using(props) { var left = targetOffset.left - position.left, right = left + targetWidth - elemWidth, top = targetOffset.top - position.top, bottom = top + targetHeight - elemHeight, feedback = { target: { element: target, left: targetOffset.left, top: targetOffset.top, width: targetWidth, height: targetHeight }, element: { element: elem, left: position.left, top: position.top, width: elemWidth, height: elemHeight }, horizontal: right < 0 ? "left" : left > 0 ? "right" : "center", vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle" }; if (targetWidth < elemWidth && abs(left + right) < targetWidth) { feedback.horizontal = "center"; } if (targetHeight < elemHeight && abs(top + bottom) < targetHeight) { feedback.vertical = "middle"; } if (max(abs(left), abs(right)) > max(abs(top), abs(bottom))) { feedback.important = "horizontal"; } else { feedback.important = "vertical"; } options.using.call(this, props, feedback); }; } elem.offset($.extend(position, { using: using })); }); }; $.ui.position = { fit: { left: function left(position, data) { var within = data.within, withinOffset = within.isWindow ? within.scrollLeft : within.offset.left, outerWidth = within.width, collisionPosLeft = position.left - data.collisionPosition.marginLeft, overLeft = withinOffset - collisionPosLeft, overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset, newOverRight; // Element is wider than within if (data.collisionWidth > outerWidth) { // Element is initially over the left side of within if (overLeft > 0 && overRight <= 0) { newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset; position.left += overLeft - newOverRight; // Element is initially over right side of within } else if (overRight > 0 && overLeft <= 0) { position.left = withinOffset; // Element is initially over both left and right sides of within } else { if (overLeft > overRight) { position.left = withinOffset + outerWidth - data.collisionWidth; } else { position.left = withinOffset; } } // Too far left -> align with left edge } else if (overLeft > 0) { position.left += overLeft; // Too far right -> align with right edge } else if (overRight > 0) { position.left -= overRight; // Adjust based on position and margin } else { position.left = max(position.left - collisionPosLeft, position.left); } }, top: function top(position, data) { var within = data.within, withinOffset = within.isWindow ? within.scrollTop : within.offset.top, outerHeight = data.within.height, collisionPosTop = position.top - data.collisionPosition.marginTop, overTop = withinOffset - collisionPosTop, overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset, newOverBottom; // Element is taller than within if (data.collisionHeight > outerHeight) { // Element is initially over the top of within if (overTop > 0 && overBottom <= 0) { newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset; position.top += overTop - newOverBottom; // Element is initially over bottom of within } else if (overBottom > 0 && overTop <= 0) { position.top = withinOffset; // Element is initially over both top and bottom of within } else { if (overTop > overBottom) { position.top = withinOffset + outerHeight - data.collisionHeight; } else { position.top = withinOffset; } } // Too far up -> align with top } else if (overTop > 0) { position.top += overTop; // Too far down -> align with bottom edge } else if (overBottom > 0) { position.top -= overBottom; // Adjust based on position and margin } else { position.top = max(position.top - collisionPosTop, position.top); } } }, flip: { left: function left(position, data) { var within = data.within, withinOffset = within.offset.left + within.scrollLeft, outerWidth = within.width, offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left, collisionPosLeft = position.left - data.collisionPosition.marginLeft, overLeft = collisionPosLeft - offsetLeft, overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft, myOffset = data.my[0] === "left" ? -data.elemWidth : data.my[0] === "right" ? data.elemWidth : 0, atOffset = data.at[0] === "left" ? data.targetWidth : data.at[0] === "right" ? -data.targetWidth : 0, offset = -2 * data.offset[0], newOverRight, newOverLeft; if (overLeft < 0) { newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset; if (newOverRight < 0 || newOverRight < abs(overLeft)) { position.left += myOffset + atOffset + offset; } } else if (overRight > 0) { newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft; if (newOverLeft > 0 || abs(newOverLeft) < overRight) { position.left += myOffset + atOffset + offset; } } }, top: function top(position, data) { var within = data.within, withinOffset = within.offset.top + within.scrollTop, outerHeight = within.height, offsetTop = within.isWindow ? within.scrollTop : within.offset.top, collisionPosTop = position.top - data.collisionPosition.marginTop, overTop = collisionPosTop - offsetTop, overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop, top = data.my[1] === "top", myOffset = top ? -data.elemHeight : data.my[1] === "bottom" ? data.elemHeight : 0, atOffset = data.at[1] === "top" ? data.targetHeight : data.at[1] === "bottom" ? -data.targetHeight : 0, offset = -2 * data.offset[1], newOverTop, newOverBottom; if (overTop < 0) { newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset; if (newOverBottom < 0 || newOverBottom < abs(overTop)) { position.top += myOffset + atOffset + offset; } } else if (overBottom > 0) { newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop; if (newOverTop > 0 || abs(newOverTop) < overBottom) { position.top += myOffset + atOffset + offset; } } } }, flipfit: { left: function left() { $.ui.position.flip.left.apply(this, arguments); $.ui.position.fit.left.apply(this, arguments); }, top: function top() { $.ui.position.flip.top.apply(this, arguments); $.ui.position.fit.top.apply(this, arguments); } } }; })(); return $.ui.position; }); /***/ }), /***/ "./node_modules/jquery-ui/ui/safe-active-element.js": /*!**********************************************************!*\ !*** ./node_modules/jquery-ui/ui/safe-active-element.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (factory) { "use strict"; if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! ./version */ "./node_modules/jquery-ui/ui/version.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(function ($) { "use strict"; return $.ui.safeActiveElement = function (document) { var activeElement; // Support: IE 9 only // IE9 throws an "Unspecified error" accessing document.activeElement from an