"use strict";

exports.__esModule = true;
exports.timezonesSelector = exports.localizedTimezone = void 0;

var _reselect = require("reselect");

(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 timezonesData = function timezonesData(state) {
  return state.get("timezones");
};

var localizedTimezone = function localizedTimezone(timezoneId) {
  return (0, _reselect.createSelector)(timezonesData, function (timezones) {
    var timezoneDisplayName = timezones.getIn([timezoneId, "displayName"]);
    return timezoneDisplayName || null;
  });
};

exports.localizedTimezone = localizedTimezone;
var timezonesSelector = (0, _reselect.createSelector)(timezonesData, function (timezones) {
  return timezones.valueSeq().toArray();
});
exports.timezonesSelector = timezonesSelector;
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(timezonesData, "timezonesData", "/home/vsts/work/1/s/src/selectors/timezones.js");
  reactHotLoader.register(localizedTimezone, "localizedTimezone", "/home/vsts/work/1/s/src/selectors/timezones.js");
  reactHotLoader.register(timezonesSelector, "timezonesSelector", "/home/vsts/work/1/s/src/selectors/timezones.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(timezonesData, "timezonesData", "/home/vsts/work/1/s/src/selectors/timezones.js");
  reactHotLoader.register(localizedTimezone, "localizedTimezone", "/home/vsts/work/1/s/src/selectors/timezones.js");
  reactHotLoader.register(timezonesSelector, "timezonesSelector", "/home/vsts/work/1/s/src/selectors/timezones.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();