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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/modules/Cart/utils/index.ts
var utils_exports = {};
__export(utils_exports, {
  createCartItemOrigin: () => createCartItemOrigin,
  getUniqueId: () => getUniqueId
});
module.exports = __toCommonJS(utils_exports);
__reExport(utils_exports, require("./cartAccount"), module.exports);
__reExport(utils_exports, require("./cartDate"), module.exports);
__reExport(utils_exports, require("./cartDiscount"), module.exports);
__reExport(utils_exports, require("./cartNote"), module.exports);
__reExport(utils_exports, require("./cartProduct"), module.exports);
__reExport(utils_exports, require("./cartRelationForms"), module.exports);
__reExport(utils_exports, require("./cartResource"), module.exports);
var getUniqueId = (prefix = "", maxLength = 11) => {
  return prefix + (Math.random() + "").replace(/\D/g, "").substring(0, maxLength);
};
var createCartItemOrigin = () => {
  return {
    // 新增为0
    id: 0,
    // 数量 固定为1
    number: 1,
    // 客户端报名所有活动;
    registration_type: "all",
    // 暂时不用
    relation_products: [],
    // 固定
    is_all: false,
    // 商品相关
    product: null,
    // 时长类型
    sub_type: null,
    // 时长
    duration: null,
    // 资源相关
    // 资源状态 -固定
    like_status: "common",
    // 资源类型 - 固定--谭景琳备注：马天宇说现在平行资源是不传这个的
    // relation_type: "form",
    // 所选资源
    resources: null,
    // 日程id - 固定
    schedule_id: 0,
    // 所选开始时间
    start_date: null,
    // 所选开始时间
    start_time: null,
    // 所选开始时间
    select_date: null,
    // 所选结束时间
    end_time: null,
    // 所选结束时间
    end_date: null,
    // 额外信息
    metadata: {},
    // holder相关
    holder: null
  };
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  createCartItemOrigin,
  getUniqueId,
  ...require("./cartAccount"),
  ...require("./cartDate"),
  ...require("./cartDiscount"),
  ...require("./cartNote"),
  ...require("./cartProduct"),
  ...require("./cartRelationForms"),
  ...require("./cartResource")
});
