"use strict";

exports.__esModule = true;
exports.selectPathname = exports.selectLocation = void 0;
var _reselect = require("reselect");
var _utils = require("../utils");
var _immutable = _interopRequireDefault(require("immutable"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var routerData = function routerData(state) {
  return state.get("router");
};
var selectLocation = exports.selectLocation = (0, _reselect.createSelector)(routerData, function (router) {
  return router.get("location") || _immutable.default.Map();
});
var selectPathname = exports.selectPathname = (0, _reselect.createSelector)(selectLocation, function (location) {
  return (0, _utils.unwrapImmutable)(location).pathname || "";
});
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(routerData, "routerData", "/home/vsts/work/1/s/src/selectors/route.js");
  reactHotLoader.register(selectLocation, "selectLocation", "/home/vsts/work/1/s/src/selectors/route.js");
  reactHotLoader.register(selectPathname, "selectPathname", "/home/vsts/work/1/s/src/selectors/route.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(routerData, "routerData", "/home/vsts/work/1/s/src/selectors/route.js");
  reactHotLoader.register(selectLocation, "selectLocation", "/home/vsts/work/1/s/src/selectors/route.js");
  reactHotLoader.register(selectPathname, "selectPathname", "/home/vsts/work/1/s/src/selectors/route.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();