"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/utils/get-time-options.ts
var get_time_options_exports = {};
__export(get_time_options_exports, {
  getTimeOption: () => getTimeOption,
  getTimeOptions: () => getTimeOptions,
  parseTimeOption: () => parseTimeOption
});
module.exports = __toCommonJS(get_time_options_exports);
var getTimeOptions = () => {
  const timeOptions = [];
  for (let i = 0; i < 24; i++) {
    for (let j = 0; j < 60; j += 10) {
      timeOptions.push(`${i < 10 ? `0${i}` : i}:${j < 10 ? `0${j}` : j}`);
    }
  }
  return timeOptions;
};
var parseTimeOption = (time) => {
  if (!time) return { hour: 0, minute: 0 };
  const [hour, minute] = time.split(":").map((t) => parseInt(t, 10));
  return { hour, minute };
};
var getTimeOption = (time) => {
  const hour = time.getHours();
  const minute = time.getMinutes();
  return `${hour < 10 ? `0${hour}` : hour}:${minute < 10 ? `0${minute}` : minute}`;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getTimeOption,
  getTimeOptions,
  parseTimeOption
});
//# sourceMappingURL=get-time-options.cjs.map