/**
 * SPDX-FileCopyrightText: © 2021 Liferay, Inc. <https://liferay.com>
 * SPDX-License-Identifier: BSD-3-Clause
 */

'use strict';

Liferay.Loader.define('frontend-js-spa-web$senna@2.8.0/lib/app/dataAttributeHandler', ['module', 'exports', 'require', '../globals/globals', './AppDataAttributeHandler'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var _globals = require('../globals/globals');

    var _globals2 = _interopRequireDefault(_globals);

    var _AppDataAttributeHandler = require('./AppDataAttributeHandler');

    var _AppDataAttributeHandler2 = _interopRequireDefault(_AppDataAttributeHandler);

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

    /**
     * Data attribute handler.
     * @type {AppDataAttributeHandler}
     */
    var dataAttributeHandler = new _AppDataAttributeHandler2.default();

    _globals2.default.document.addEventListener('DOMContentLoaded', function () {
      dataAttributeHandler.setBaseElement(_globals2.default.document.body);
      dataAttributeHandler.handle();
    });

    exports.default = dataAttributeHandler;
  }
});
//# sourceMappingURL=dataAttributeHandler.js.map