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/PisellTabbar/template/Template1/utils/index.ts
var utils_exports = {};
__export(utils_exports, {
  addDataSourceItemsByKey: () => addDataSourceItemsByKey,
  getDefaultActiveKey: () => getDefaultActiveKey
});
module.exports = __toCommonJS(utils_exports);
var import_locales = require("../../../../../locales");
var defaultItems = {
  all: {
    id: "0",
    shop_id: 9,
    parent_id: 0,
    name: (0, import_locales.getText)("pisell-tabbar-all"),
    slug: "all",
    icon: ""
  },
  search: {
    id: -1,
    shop_id: 9,
    parent_id: 0,
    name: "Search",
    slug: "Search",
    key: "search",
    icon: "",
    customClick: true
  },
  expand: {
    id: -2,
    shop_id: 9,
    parent_id: 0,
    key: "expand",
    icon: "pisell2-expand-01",
    name: "Expand",
    slug: "expand",
    customClick: true
  }
};
var addDataSourceItemsByKey = (dataSource, keys) => {
  return [...keys.map((key) => defaultItems[key]), ...dataSource];
};
var getDefaultActiveKey = (dataSource, rowKey) => {
  const _activeKey = ["0"];
  return _activeKey;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  addDataSourceItemsByKey,
  getDefaultActiveKey
});
