{"remainingRequest":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/buble-loader/index.js??ref--2-1!/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/eslint-loader/index.js!/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/import-glob/index.js!/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/resources/assets/scripts/util/Router.js","dependencies":[{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/resources/assets/scripts/util/Router.js","mtime":1560957085790},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/cache-loader/dist/cjs.js","mtime":1560429090832},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/buble-loader/index.js","mtime":1560429088235},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/eslint-loader/index.js","mtime":1560429094415},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/import-glob/index.js","mtime":1560429097655}],"contextDependencies":[],"result":["import camelCase from './camelCase';\n\n/**\n * DOM-based Routing\n *\n * Based on {@link http://goo.gl/EUTi53|Markup-based Unobtrusive Comprehensive DOM-ready Execution} by Paul Irish\n *\n * The routing fires all common scripts, followed by the page specific scripts.\n * Add additional events for more control over timing e.g. a finalize event\n */\nvar Router = function Router(routes) {\n  this.routes = routes;\n};\n\n/**\n * Fire Router events\n * @param {string} route DOM-based route derived from body classes (`<body class=\"...\">`)\n * @param {string} [event] Events on the route. By default, `init` and `finalize` events are called.\n * @param {string} [arg] Any custom argument to be passed to the event.\n */\nRouter.prototype.fire = function fire (route, event, arg) {\n    if ( event === void 0 ) event = 'init';\n\n  var fire = route !== '' && this.routes[route] && typeof this.routes[route][event] === 'function';\n  if (fire) {\n    this.routes[route][event](arg);\n  }\n};\n\n/**\n * Automatically load and fire Router events\n *\n * Events are fired in the following order:\n ** common init\n ** page-specific init\n ** page-specific finalize\n ** common finalize\n */\nRouter.prototype.loadEvents = function loadEvents () {\n    var this$1 = this;\n\n  // Fire common init JS\n  this.fire('common');\n\n  // Fire page-specific init JS, and then finalize JS\n  document.body.className\n    .toLowerCase()\n    .replace(/-/g, '_')\n    .split(/\\s+/)\n    .map(camelCase)\n    .forEach(function (className) {\n      this$1.fire(className);\n      this$1.fire(className, 'finalize');\n    });\n\n  // Fire common finalize JS\n  this.fire('common', 'finalize');\n};\n\nexport default Router;\n",{"version":3,"file":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/resources/assets/scripts/util/Router.js","sources":["resources/assets/scripts/util/Router.js"],"sourcesContent":["import camelCase from './camelCase';\n\n/**\n * DOM-based Routing\n *\n * Based on {@link http://goo.gl/EUTi53|Markup-based Unobtrusive Comprehensive DOM-ready Execution} by Paul Irish\n *\n * The routing fires all common scripts, followed by the page specific scripts.\n * Add additional events for more control over timing e.g. a finalize event\n */\nclass Router {\n\n  /**\n   * Create a new Router\n   * @param {Object} routes\n   */\n  constructor(routes) {\n    this.routes = routes;\n  }\n\n  /**\n   * Fire Router events\n   * @param {string} route DOM-based route derived from body classes (`<body class=\"...\">`)\n   * @param {string} [event] Events on the route. By default, `init` and `finalize` events are called.\n   * @param {string} [arg] Any custom argument to be passed to the event.\n   */\n  fire(route, event = 'init', arg) {\n    const fire = route !== '' && this.routes[route] && typeof this.routes[route][event] === 'function';\n    if (fire) {\n      this.routes[route][event](arg);\n    }\n  }\n\n  /**\n   * Automatically load and fire Router events\n   *\n   * Events are fired in the following order:\n   *  * common init\n   *  * page-specific init\n   *  * page-specific finalize\n   *  * common finalize\n   */\n  loadEvents() {\n    // Fire common init JS\n    this.fire('common');\n\n    // Fire page-specific init JS, and then finalize JS\n    document.body.className\n      .toLowerCase()\n      .replace(/-/g, '_')\n      .split(/\\s+/)\n      .map(camelCase)\n      .forEach((className) => {\n        this.fire(className);\n        this.fire(className, 'finalize');\n      });\n\n    // Fire common finalize JS\n    this.fire('common', 'finalize');\n  }\n}\n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