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/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.tsx
var PisellTimeRangeDisplay_stories_exports = {};
__export(PisellTimeRangeDisplay_stories_exports, {
  CrossDay: () => CrossDay,
  CrossYear: () => CrossYear,
  CustomContainerStyle: () => CustomContainerStyle,
  Default: () => Default,
  DurationFirst: () => DurationFirst,
  DurationInMiddle: () => DurationInMiddle,
  DurationWithSeconds: () => DurationWithSeconds,
  LocaleEn: () => LocaleEn,
  LocaleZhCN: () => LocaleZhCN,
  NarrowWidth: () => NarrowWidth,
  SameDayWithDate: () => SameDayWithDate,
  Time12Hour: () => Time12Hour,
  TimeAndDurationOnly: () => TimeAndDurationOnly,
  default: () => PisellTimeRangeDisplay_stories_default
});
module.exports = __toCommonJS(PisellTimeRangeDisplay_stories_exports);
var import_PisellTimeRangeDisplay = require("./PisellTimeRangeDisplay");
var meta = {
  title: "General/PisellTimeRangeDisplay",
  component: import_PisellTimeRangeDisplay.PisellTimeRangeDisplay,
  tags: ["autodocs"],
  argTypes: {
    textAlign: {
      control: "radio",
      options: ["left", "center", "right"],
      description: "文本对齐"
    },
    showDateForSameDay: {
      control: "boolean",
      description: "同一天时是否显示日期与星期"
    },
    locale: {
      control: "select",
      options: ["zh-cn", "en"],
      description: "语言"
    }
  }
};
var PisellTimeRangeDisplay_stories_default = meta;
var Default = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00"
  }
};
var SameDayWithDate = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    showDateForSameDay: true
  }
};
var CrossDay = {
  args: {
    startAt: "2026-02-04 18:00",
    endAt: "2026-02-05 10:00"
  }
};
var CrossYear = {
  args: {
    startAt: "2025-12-31 22:00",
    endAt: "2026-01-01 02:00"
  }
};
var DurationInMiddle = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    showDateForSameDay: true,
    fields: {
      fieldOrder: ["time", "duration", "date", "weekday"]
    }
  }
};
var DurationFirst = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    fields: {
      fieldOrder: ["duration", "time"]
    }
  }
};
var DurationWithSeconds = {
  args: {
    startAt: "2026-02-04 09:00:00",
    endAt: "2026-02-04 09:30:45",
    durationFormat: { showSeconds: true }
  }
};
var TimeAndDurationOnly = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    fields: {
      showTimeRange: true,
      showDate: false,
      showWeekday: false,
      showDuration: true
    }
  }
};
var Time12Hour = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    timeFormat: { use12Hour: true }
  }
};
var LocaleZhCN = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    showDateForSameDay: true,
    locale: "zh-cn",
    dateFormat: { showChineseUnit: true, showYear: true }
  }
};
var LocaleEn = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    showDateForSameDay: true,
    locale: "en",
    dateFormat: { order: "MDY", showYear: true }
  }
};
var NarrowWidth = {
  args: {
    startAt: "2026-03-21 10:15",
    endAt: "2026-03-21 10:45",
    showDateForSameDay: true,
    dateFormat: { order: "MDY", showYear: true }
  },
  decorators: [
    (Story) => /* @__PURE__ */ React.createElement("div", { style: { maxWidth: 320, border: "1px dashed #ccc", padding: 8 } }, /* @__PURE__ */ React.createElement(Story, null))
  ]
};
var CustomContainerStyle = {
  args: {
    startAt: "2026-02-04 09:00",
    endAt: "2026-02-04 18:00",
    containerStyle: {
      background: "#f5f5f5",
      borderRadius: 8,
      padding: 16,
      gap: 8
    }
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CrossDay,
  CrossYear,
  CustomContainerStyle,
  Default,
  DurationFirst,
  DurationInMiddle,
  DurationWithSeconds,
  LocaleEn,
  LocaleZhCN,
  NarrowWidth,
  SameDayWithDate,
  Time12Hour,
  TimeAndDurationOnly
});
