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/ecocup/customerList/hooks/useColumns.tsx
var useColumns_exports = {};
__export(useColumns_exports, {
  useColumns: () => useColumns
});
module.exports = __toCommonJS(useColumns_exports);
var import_dayjs = __toESM(require("dayjs"));
var useColumns = (locales) => {
  return [
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.customer"),
      dataIndex: "display_name",
      key: "display_name",
      align: "center",
      width: 240
    },
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.registed"),
      dataIndex: "create_time",
      key: "create_time",
      align: "center",
      width: 200,
      render: (text) => {
        if (!text) return "";
        return (0, import_dayjs.default)(text).format("h:mma D MMM YYYY");
      }
    },
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.mobile"),
      dataIndex: "phone",
      key: "phone",
      align: "center",
      width: 250
    },
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.email"),
      dataIndex: "email",
      key: "email",
      align: "center",
      width: 250
    },
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.cup.borrowed"),
      dataIndex: "total_rent_count",
      key: "total_rent_count",
      align: "center",
      width: 160
    },
    {
      title: locales.getText("pisell2.text.ecocup.customer.list.cup.returned"),
      dataIndex: "total_return_count",
      key: "total_return_count",
      align: "center",
      width: 160
    }
  ];
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  useColumns
});
