"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("react");
const emotionReactJsxRuntime_browser_esm = require("../../../node_modules/.pnpm/@emotion_react@11.10.4_q4mq7tnhdumujvomvw24zx33y4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");
const index = require("../../../node_modules/.pnpm/@arco-design_web-react@2.40.1_biqbaboplfbrettd7655fr4n2y/node_modules/@arco-design/web-react/es/TimePicker/index.js");
const Time = ({
  type,
  value,
  name,
  ...props
}) => {
  const restProps = {
    placeholder: `\u8BF7\u9009\u62E9${props.label || props.title}`,
    format: "HH:mm",
    step: {
      hour: 1,
      minute: 30
    },
    ...props
  };
  const restProps2 = {
    format: props.format || "HH:mm",
    step: props.step || {
      hour: 1,
      minute: 30
    },
    delimiter: props.delimiter || "-"
  };
  if (type === "time-range" || type === "timeRange") {
    return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(index.RangePicker, {
      ...restProps2,
      defaultValue: value.split(restProps2.delimiter),
      onChange: (valueString) => props.onChange && props.onChange(typeof valueString !== "string" ? `${valueString && valueString[0]}-${valueString && valueString[1]}` : valueString)
    });
  }
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(index, {
    ...restProps
  });
};
exports.Time = Time;
//# sourceMappingURL=Time.js.map
