/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
//#region ../automated-config/dist/utils/generateKeyFromFlatConfigPath.js
/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
/**
* Converts a flattened configuration path into a simplified alias key.
*
* @param path - The flattened configuration path (e.g., "checkbox.variables.xs.rest.value").
* @returns A simplified alias key (e.g., "checkbox/xs/rest").
*/
function generateKeyFromFlatConfigPath(path) {
	const replaceStrings = [
		"root/",
		"variables/",
		"variant/",
		"/value"
	];
	let key = path;
	key = key.replaceAll(".", "/");
	replaceStrings.forEach((replaceString) => {
		key = key.replaceAll(replaceString, "");
	});
	return key;
}
//#endregion
exports.generateKeyFromFlatConfigPath = generateKeyFromFlatConfigPath;
