var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellTimeNavigator/PisellTimeNavigator.stories.tsx
var PisellTimeNavigator_stories_exports = {};
__export(PisellTimeNavigator_stories_exports, {
  BusinessHours: () => BusinessHours,
  BusinessHoursVertical: () => BusinessHoursVertical,
  Controlled: () => Controlled,
  ControlledVertical: () => ControlledVertical,
  CursorMoves: () => CursorMoves,
  CursorMovesVertical: () => CursorMovesVertical,
  CustomRange: () => CustomRange,
  CustomRangeVertical: () => CustomRangeVertical,
  Default: () => Default,
  DefaultVertical: () => DefaultVertical,
  Inertia: () => Inertia,
  InertiaVertical: () => InertiaVertical,
  NoNowButton: () => NoNowButton,
  NoNowButtonVertical: () => NoNowButtonVertical,
  Realtime: () => Realtime,
  RealtimeVertical: () => RealtimeVertical,
  SnapToStep: () => SnapToStep,
  SnapToStepVertical: () => SnapToStepVertical,
  Step30: () => Step30,
  Step30Vertical: () => Step30Vertical,
  Uncontrolled: () => Uncontrolled,
  UncontrolledVertical: () => UncontrolledVertical,
  Vertical: () => Vertical,
  default: () => PisellTimeNavigator_stories_default
});
module.exports = __toCommonJS(PisellTimeNavigator_stories_exports);
var import_react = __toESM(require("react"));
var import_PisellTimeNavigator = require("./PisellTimeNavigator");
var meta = {
  title: "Data Entry/PisellTimeNavigator",
  component: import_PisellTimeNavigator.PisellTimeNavigator,
  tags: ["autodocs"],
  argTypes: {
    cursorMode: {
      control: "radio",
      options: ["axis-moves", "cursor-moves"],
      description: "指示器/轴移动模式"
    },
    orientation: {
      control: "radio",
      options: ["horizontal", "vertical"],
      description: "横向/竖向"
    },
    realtime: {
      control: "boolean",
      description: "是否实时跟随系统时间"
    },
    showNowButton: {
      control: "boolean",
      description: "是否显示 Now 按钮"
    },
    snapToStep: {
      control: "boolean",
      description: "是否吸附到刻度"
    },
    inertia: {
      control: "boolean",
      description: "是否开启惯性滚动"
    },
    locale: {
      control: "select",
      options: ["zh-cn", "en", "zh-hk"],
      description: "语言"
    }
  }
};
var PisellTimeNavigator_stories_default = meta;
var verticalDecorator = (Story) => /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 54, height: 500 } }, /* @__PURE__ */ import_react.default.createElement(Story, null));
var Default = {
  args: {}
};
var DefaultVertical = {
  args: { orientation: "vertical" },
  decorators: [verticalDecorator]
};
var Controlled = {
  args: {
    value: "12:00",
    onChange: (v) => console.log("onChange", v == null ? void 0 : v.format("HH:mm"))
  }
};
var ControlledVertical = {
  args: {
    orientation: "vertical",
    value: "12:00",
    onChange: (v) => console.log("onChange", v == null ? void 0 : v.format("HH:mm"))
  },
  decorators: [verticalDecorator]
};
var Uncontrolled = {
  args: {
    defaultValue: "14:30"
  }
};
var UncontrolledVertical = {
  args: {
    orientation: "vertical",
    defaultValue: "14:30"
  },
  decorators: [verticalDecorator]
};
var Vertical = {
  args: {
    orientation: "vertical",
    defaultValue: "12:00"
  },
  decorators: [verticalDecorator]
};
var CursorMoves = {
  args: {
    cursorMode: "cursor-moves",
    defaultValue: "10:00"
  }
};
var CursorMovesVertical = {
  args: {
    orientation: "vertical",
    cursorMode: "cursor-moves",
    defaultValue: "10:00"
  },
  decorators: [verticalDecorator]
};
var BusinessHours = {
  args: {
    businessHours: { start: "10:00", end: "22:00" },
    defaultValue: "14:00"
  }
};
var BusinessHoursVertical = {
  args: {
    orientation: "vertical",
    businessHours: { start: "10:00", end: "22:00" },
    defaultValue: "14:00"
  },
  decorators: [verticalDecorator]
};
var CustomRange = {
  args: {
    range: { start: "08:00", end: "20:00" },
    defaultValue: "12:00"
  }
};
var CustomRangeVertical = {
  args: {
    orientation: "vertical",
    range: { start: "08:00", end: "20:00" },
    defaultValue: "12:00"
  },
  decorators: [verticalDecorator]
};
var Step30 = {
  args: {
    stepMinutes: 30,
    defaultValue: "12:30"
  }
};
var Step30Vertical = {
  args: {
    orientation: "vertical",
    stepMinutes: 30,
    defaultValue: "12:30"
  },
  decorators: [verticalDecorator]
};
var Inertia = {
  args: {
    inertia: true,
    defaultValue: "12:00"
  }
};
var InertiaVertical = {
  args: {
    orientation: "vertical",
    inertia: true,
    defaultValue: "12:00"
  },
  decorators: [verticalDecorator]
};
var SnapToStep = {
  args: {
    snapToStep: true,
    defaultValue: "12:00"
  }
};
var SnapToStepVertical = {
  args: {
    orientation: "vertical",
    snapToStep: true,
    defaultValue: "12:00"
  },
  decorators: [verticalDecorator]
};
var NoNowButton = {
  args: {
    showNowButton: false
  }
};
var NoNowButtonVertical = {
  args: {
    orientation: "vertical",
    showNowButton: false
  },
  decorators: [verticalDecorator]
};
var Realtime = {
  args: {
    realtime: true
  }
};
var RealtimeVertical = {
  args: {
    orientation: "vertical",
    realtime: true
  },
  decorators: [verticalDecorator]
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  BusinessHours,
  BusinessHoursVertical,
  Controlled,
  ControlledVertical,
  CursorMoves,
  CursorMovesVertical,
  CustomRange,
  CustomRangeVertical,
  Default,
  DefaultVertical,
  Inertia,
  InertiaVertical,
  NoNowButton,
  NoNowButtonVertical,
  Realtime,
  RealtimeVertical,
  SnapToStep,
  SnapToStepVertical,
  Step30,
  Step30Vertical,
  Uncontrolled,
  UncontrolledVertical,
  Vertical
});
