Liferay.Loader.define("frontend-js-web@4.0.39/liferay/global.es", ['module', 'exports', 'require', 'frontend-js-web$lodash.escape', 'frontend-js-web$lodash.groupby', 'frontend-js-web$lodash.isequal', 'frontend-js-web$lodash.unescape', './DynamicSelect', './breakpoints', './component.es', './layout_exporter.es', './portal/tabs.es', './portal/tooltip.es', './portlet/portlet.es', './side_navigation.es', './util/add_params', './util/address/get_countries.es', './util/address/get_regions.es', './util/fetch.es', './util/focus_form_field', './util/form/get_form_element.es', './util/form/object_to_form_data.es', './util/form/post_form.es', './util/form/set_form_values.es', './util/format_storage.es', './util/format_xml.es', './util/get_crop_region.es', './util/get_dom', './util/get_element', './util/get_portlet_id', './util/get_portlet_namespace.es', './util/html_util', './util/in_browser_view', './util/is_phone', './util/is_tablet', './util/navigate.es', './util/normalize_friendly_url', './util/ns.es', './util/object_to_url_search_params.es', './util/portlet_url/create_action_url.es', './util/portlet_url/create_portlet_url.es', './util/portlet_url/create_render_url.es', './util/portlet_url/create_resource_url.es', './util/session.es', './util/to_char_code.es', './util/toggle_disabled'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    function _typeof(obj) {
      "@babel/helpers - typeof";
      if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
        _typeof = function _typeof(obj) {
          return typeof obj;
        };
      } else {
        _typeof = function _typeof(obj) {
          return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
        };
      }return _typeof(obj);
    }

    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    Object.defineProperty(exports, "portlet", {
      enumerable: true,
      get: function get() {
        return _portlet.default;
      }
    });

    var _lodash = _interopRequireDefault(require("frontend-js-web$lodash.escape"));

    var _lodash2 = _interopRequireDefault(require("frontend-js-web$lodash.groupby"));

    var _lodash3 = _interopRequireDefault(require("frontend-js-web$lodash.isequal"));

    var _lodash4 = _interopRequireDefault(require("frontend-js-web$lodash.unescape"));

    var _DynamicSelect = _interopRequireDefault(require("./DynamicSelect"));

    var _breakpoints = _interopRequireDefault(require("./breakpoints"));

    var _component = require("./component.es");

    var _layout_exporter = require("./layout_exporter.es");

    var _tabs = require("./portal/tabs.es");

    var _tooltip = require("./portal/tooltip.es");

    var _portlet = _interopRequireWildcard(require("./portlet/portlet.es"));

    var _side_navigation = _interopRequireDefault(require("./side_navigation.es"));

    var _add_params = _interopRequireDefault(require("./util/add_params"));

    var _get_countries = _interopRequireDefault(require("./util/address/get_countries.es"));

    var _get_regions = _interopRequireDefault(require("./util/address/get_regions.es"));

    var _fetch = _interopRequireDefault(require("./util/fetch.es"));

    var _focus_form_field = _interopRequireDefault(require("./util/focus_form_field"));

    var _get_form_element = _interopRequireDefault(require("./util/form/get_form_element.es"));

    var _object_to_form_data = _interopRequireDefault(require("./util/form/object_to_form_data.es"));

    var _post_form = _interopRequireDefault(require("./util/form/post_form.es"));

    var _set_form_values = _interopRequireDefault(require("./util/form/set_form_values.es"));

    var _format_storage = _interopRequireDefault(require("./util/format_storage.es"));

    var _format_xml = _interopRequireDefault(require("./util/format_xml.es"));

    var _get_crop_region = _interopRequireDefault(require("./util/get_crop_region.es"));

    var _get_dom = _interopRequireDefault(require("./util/get_dom"));

    var _get_element = _interopRequireDefault(require("./util/get_element"));

    var _get_portlet_id = _interopRequireDefault(require("./util/get_portlet_id"));

    var _get_portlet_namespace = _interopRequireDefault(require("./util/get_portlet_namespace.es"));

    var _html_util = require("./util/html_util");

    var _in_browser_view = _interopRequireDefault(require("./util/in_browser_view"));

    var _is_phone = _interopRequireDefault(require("./util/is_phone"));

    var _is_tablet = _interopRequireDefault(require("./util/is_tablet"));

    var _navigate = _interopRequireDefault(require("./util/navigate.es"));

    var _normalize_friendly_url = _interopRequireDefault(require("./util/normalize_friendly_url"));

    var _ns = _interopRequireDefault(require("./util/ns.es"));

    var _object_to_url_search_params = _interopRequireDefault(require("./util/object_to_url_search_params.es"));

    var _create_action_url = _interopRequireDefault(require("./util/portlet_url/create_action_url.es"));

    var _create_portlet_url = _interopRequireDefault(require("./util/portlet_url/create_portlet_url.es"));

    var _create_render_url = _interopRequireDefault(require("./util/portlet_url/create_render_url.es"));

    var _create_resource_url = _interopRequireDefault(require("./util/portlet_url/create_resource_url.es"));

    var _session = require("./util/session.es");

    var _to_char_code = _interopRequireDefault(require("./util/to_char_code.es"));

    var _toggle_disabled = _interopRequireDefault(require("./util/toggle_disabled"));

    function _getRequireWildcardCache() {
      if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {
        return cache;
      };return cache;
    }

    function _interopRequireWildcard(obj) {
      if (obj && obj.__esModule) {
        return obj;
      }if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
        return { default: obj };
      }var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {
        return cache.get(obj);
      }var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {
        if (Object.prototype.hasOwnProperty.call(obj, key)) {
          var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {
            Object.defineProperty(newObj, key, desc);
          } else {
            newObj[key] = obj[key];
          }
        }
      }newObj.default = obj;if (cache) {
        cache.set(obj, newObj);
      }return newObj;
    }

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * This library is free software; you can redistribute it and/or modify it under
     * the terms of the GNU Lesser General Public License as published by the Free
     * Software Foundation; either version 2.1 of the License, or (at your option)
     * any later version.
     *
     * This library is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
     * details.
     */
    Liferay = window.Liferay || {};
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {BREAKPOINTS} from 'frontend-js-web'`
     */

    Liferay.BREAKPOINTS = _breakpoints.default;
    Liferay.component = _component.component;
    Liferay.componentReady = _component.componentReady;
    Liferay.destroyComponent = _component.destroyComponent;
    Liferay.destroyComponents = _component.destroyComponents;
    Liferay.destroyUnfulfilledPromises = _component.destroyUnfulfilledPromises;
    Liferay.getComponentCache = _component.getComponentCache;
    Liferay.initComponentCache = _component.initComponentCache;
    Liferay.Address = {
      getCountries: _get_countries.default,
      getRegions: _get_regions.default
    };
    /**
     * @deprecated As of Athanasius (7.3.x), with no direct replacement
     */

    Liferay.DynamicSelect = _DynamicSelect.default;
    Liferay.Language = {
      get: function get(key) {
        return key;
      }
    };
    Liferay.LayoutExporter = {
      all: _layout_exporter.hideLayoutPane,
      details: _layout_exporter.toggleLayoutDetails,
      icons: (0, _layout_exporter.getLayoutIcons)(),
      proposeLayout: _layout_exporter.proposeLayout,
      publishToLive: _layout_exporter.publishToLive,
      selected: _layout_exporter.showLayoutPane
    };
    Liferay.Portal = {
      Tabs: {
        show: _tabs.showTab
      },
      ToolTip: {
        show: _tooltip.showTooltip
      }
    };
    Liferay.Portlet = Liferay.Portlet || {};
    Liferay.Portlet.minimize = _portlet.minimizePortlet;

    Liferay.Portlet.openModal = function () {
      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      Liferay.Loader.require('frontend-js-web/liferay/modal/Modal', function (commands) {
        commands.openPortletModal.apply(commands, args);
      });
    };

    Liferay.Portlet.openWindow = function () {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      Liferay.Loader.require('frontend-js-web/liferay/modal/Modal', function (commands) {
        commands.openPortletWindow.apply(commands, args);
      });
    };

    Liferay.SideNavigation = _side_navigation.default;
    Liferay.Util = Liferay.Util || {};
    Liferay.Util.MAP_HTML_CHARS_ESCAPED = _html_util.MAP_HTML_CHARS_ESCAPED;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {addParams} from 'frontend-js-web'`
     */

    Liferay.Util.addParams = _add_params.default;
    /**
     * @deprecated As of Athanasius (7.3.x), with no direct replacement
     */

    Liferay.Util.disableEsc = function () {
      if (document.all && window.event.keyCode === 27) {
        window.event.returnValue = false;
      }
    };

    Liferay.Util.escape = _lodash.default;
    Liferay.Util.escapeHTML = _html_util.escapeHTML;
    Liferay.Util.fetch = _fetch.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {focusFormField} from 'frontend-js-web'`
     */

    Liferay.Util.focusFormField = _focus_form_field.default;
    Liferay.Util.formatStorage = _format_storage.default;
    Liferay.Util.formatXML = _format_xml.default;
    Liferay.Util.getCropRegion = _get_crop_region.default;
    /**
     * @deprecated As of Athanasius (7.3.x), with no direct replacement
     */

    Liferay.Util.getDOM = _get_dom.default;
    /**
     * @deprecated As of Athanasius (7.3.x), with no direct replacement
     */

    Liferay.Util.getElement = _get_element.default;
    Liferay.Util.getFormElement = _get_form_element.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {getPortletId} from 'frontend-js-web'`
     */

    Liferay.Util.getPortletId = _get_portlet_id.default;
    Liferay.Util.getPortletNamespace = _get_portlet_namespace.default;
    Liferay.Util.groupBy = _lodash2.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {inBrowserView} from 'frontend-js-web'`
     */

    Liferay.Util.inBrowserView = _in_browser_view.default;
    Liferay.Util.isEqual = _lodash3.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {isPhone} from 'frontend-js-web'`
     */

    Liferay.Util.isPhone = _is_phone.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {isTablet} from 'frontend-js-web'`
     */

    Liferay.Util.isTablet = _is_tablet.default;
    Liferay.Util.navigate = _navigate.default;
    Liferay.Util.ns = _ns.default;
    Liferay.Util.objectToFormData = _object_to_form_data.default;
    Liferay.Util.objectToURLSearchParams = _object_to_url_search_params.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {normalizeFriendlyURL} from 'frontend-js-web'`
     */

    Liferay.Util.normalizeFriendlyURL = _normalize_friendly_url.default;
    Liferay.Util.PortletURL = {
      createActionURL: _create_action_url.default,
      createPortletURL: _create_portlet_url.default,
      createRenderURL: _create_render_url.default,
      createResourceURL: _create_resource_url.default
    };
    Liferay.Util.postForm = _post_form.default;
    Liferay.Util.setFormValues = _set_form_values.default;
    Liferay.Util.toCharCode = _to_char_code.default;
    /**
     * @deprecated As of Athanasius (7.3.x), replaced by `import {toggleDisabled} from 'frontend-js-web'`
     */

    Liferay.Util.toggleDisabled = _toggle_disabled.default;

    Liferay.Util.openModal = function () {
      for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
        args[_key3] = arguments[_key3];
      }

      Liferay.Loader.require('frontend-js-web/liferay/modal/Modal', function (commands) {
        commands.openModal.apply(commands, args);
      });
    };

    Liferay.Util.openSelectionModal = function () {
      for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
        args[_key4] = arguments[_key4];
      }

      Liferay.Loader.require('frontend-js-web/liferay/modal/Modal', function (commands) {
        commands.openSelectionModal.apply(commands, args);
      });
    };

    Liferay.Util.openToast = function () {
      for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
        args[_key5] = arguments[_key5];
      }

      Liferay.Loader.require('frontend-js-web/liferay/toast/commands/OpenToast.es', function (commands) {
        commands.openToast.apply(commands, args);
      });
    };

    Liferay.Util.Session = {
      get: _session.getSessionValue,
      set: _session.setSessionValue
    };
    Liferay.Util.unescape = _lodash4.default;
    Liferay.Util.unescapeHTML = _html_util.unescapeHTML;
    //# sourceMappingURL=global.es.js.map
  }
});
//# sourceMappingURL=global.es.js.map