//#region src/plus/saasDevice/devicePlanning/constants.ts
const DEVICE_KIND_LABEL_KEY = {
	smart: "pisell2.saas.device-planning.smart-devices",
	dumb: "pisell2.saas.device-planning.peripherals",
	integrated: "pisell2.saas.device-planning.integrated-devices"
};
const SEARCH_PLACEHOLDER_KEY = {
	smart: "pisell2.saas.device-planning.search-smart",
	dumb: "pisell2.saas.device-planning.search-peripherals",
	integrated: "pisell2.saas.device-planning.search-integrated"
};
const ADD_BUTTON_KEY = {
	smart: "pisell2.saas.device-planning.add-device",
	dumb: "pisell2.saas.device-planning.add-peripheral",
	integrated: "pisell2.saas.device-planning.add-integrated"
};
const normalizeText = (text) => text.toLowerCase().trim();
const formatToken = (text, values) => Object.entries(values).reduce((result, [key, value]) => result.replace(new RegExp(`\\{${key}\\}`, "g"), String(value)), text);
const sortWorkAreaList = (list) => [...list].sort((a, b) => (a.sort || 0) - (b.sort || 0));
//#endregion
exports.ADD_BUTTON_KEY = ADD_BUTTON_KEY;
exports.DEVICE_KIND_LABEL_KEY = DEVICE_KIND_LABEL_KEY;
exports.SEARCH_PLACEHOLDER_KEY = SEARCH_PLACEHOLDER_KEY;
exports.formatToken = formatToken;
exports.normalizeText = normalizeText;
exports.sortWorkAreaList = sortWorkAreaList;
