"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TimePickerClass = exports.TargetMapByKeyCode = exports.KEYCODE = void 0;
exports.getHours = getHours;
exports.getMinutes = getMinutes;
var TimePickerClass = "tita-ui__time-picker";
exports.TimePickerClass = TimePickerClass;
var TargetMapByKeyCode = {
  37: "hour",
  39: "minute"
};
exports.TargetMapByKeyCode = TargetMapByKeyCode;

function getHours() {
  var hourStep = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
  var hours = [];

  for (var i = 0; i < 24; i += 1) {
    if (i % hourStep === 0) {
      hours.push(i < 10 ? "0".concat(i) : "".concat(i));
    }
  }

  return hours;
}

function getMinutes() {
  var minuteStep = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
  var minutes = [];

  for (var i = 0; i < 60; i += 1) {
    if (i % minuteStep === 0) {
      minutes.push(i < 10 ? "0".concat(i) : "".concat(i));
    }
  }

  return minutes;
} // eslint-disable-next-line no-shadow


var KEYCODE;
exports.KEYCODE = KEYCODE;

(function (KEYCODE) {
  KEYCODE[KEYCODE["directionLeft"] = 37] = "directionLeft";
  KEYCODE[KEYCODE["directionUp"] = 38] = "directionUp";
  KEYCODE[KEYCODE["directionRight"] = 39] = "directionRight";
  KEYCODE[KEYCODE["directionDown"] = 40] = "directionDown";
})(KEYCODE || (exports.KEYCODE = KEYCODE = {}));