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/plus/saasDevice/devicePlanning/constants.ts
var constants_exports = {};
__export(constants_exports, {
  ADD_BUTTON_KEY: () => ADD_BUTTON_KEY,
  DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
  DEVICE_KIND_LABEL_KEY: () => DEVICE_KIND_LABEL_KEY,
  SEARCH_PLACEHOLDER_KEY: () => SEARCH_PLACEHOLDER_KEY,
  formatToken: () => formatToken,
  normalizeText: () => normalizeText,
  sortWorkAreaList: () => sortWorkAreaList
});
module.exports = __toCommonJS(constants_exports);
var DEVICE_KIND_LABEL_KEY = {
  smart: "pisell2.saas.device-planning.smart-devices",
  dumb: "pisell2.saas.device-planning.peripherals",
  integrated: "pisell2.saas.device-planning.integrated-devices"
};
var SEARCH_PLACEHOLDER_KEY = {
  smart: "pisell2.saas.device-planning.search-smart",
  dumb: "pisell2.saas.device-planning.search-peripherals",
  integrated: "pisell2.saas.device-planning.search-integrated"
};
var ADD_BUTTON_KEY = {
  smart: "pisell2.saas.device-planning.add-device",
  dumb: "pisell2.saas.device-planning.add-peripheral",
  integrated: "pisell2.saas.device-planning.add-integrated"
};
var DEFAULT_PAGE_SIZE = 10;
var normalizeText = (text) => text.toLowerCase().trim();
var formatToken = (text, values) => Object.entries(values).reduce(
  (result, [key, value]) => result.replace(new RegExp(`\\{${key}\\}`, "g"), String(value)),
  text
);
var sortWorkAreaList = (list) => [...list].sort((a, b) => (a.sort || 0) - (b.sort || 0));
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ADD_BUTTON_KEY,
  DEFAULT_PAGE_SIZE,
  DEVICE_KIND_LABEL_KEY,
  SEARCH_PLACEHOLDER_KEY,
  formatToken,
  normalizeText,
  sortWorkAreaList
});
