Liferay.Loader.define("segments-experiment-web@2.0.19/js/util/toasts.es", ['module', 'exports', 'require', 'frontend-js-web'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.openErrorToast = openErrorToast;
    exports.openSuccessToast = openSuccessToast;

    var _frontendJsWeb = require("frontend-js-web");

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * The contents of this file are subject to the terms of the Liferay Enterprise
     * Subscription License ("License"). You may not use this file except in
     * compliance with the License. You can obtain a copy of the License by
     * contacting Liferay, Inc. See the License for the specific language governing
     * permissions and limitations under the License, including but not limited to
     * distribution rights of the Software.
     */
    function openErrorToast() {
      (0, _frontendJsWeb.openToast)({
        message: Liferay.Language.get('an-unexpected-error-occurred'),
        type: 'danger'
      });
    }

    function openSuccessToast() {
      (0, _frontendJsWeb.openToast)({
        message: Liferay.Language.get('your-request-completed-successfully')
      });
    }
    //# sourceMappingURL=toasts.es.js.map
  }
});
//# sourceMappingURL=toasts.es.js.map