//#region src/utilities/input/SelectUtilities.js
const csvStrToArray = (csvStr) => {
	return csvStr.split(",");
};
const csvStrToArrayOfObjects = (csvStr) => {
	const arr = csvStr.split(",");
	const arrObj = [];
	arr.forEach((value, index) => {
		arrObj.push({
			id: index + 1,
			value
		});
	});
	return arrObj;
};
const apiResponseArrayToOptions = (responseArr) => {
	if (!responseArr || !responseArr.length) return [];
	const arrObj = [];
	if (typeof responseArr[0] === "string") responseArr.forEach((value, index) => {
		arrObj.push({
			id: index + 1,
			value
		});
	});
	return arrObj;
};
//#endregion
export { apiResponseArrayToOptions, csvStrToArray, csvStrToArrayOfObjects };

//# sourceMappingURL=SelectUtilities.mjs.map