//#region src/components/dataSourceComponents/provider/variables/utils.ts
const genComponentValueVariable = (componentId, value) => {
	if (!value || !componentId) return {};
	return { [componentId]: { value } };
};
const genComponentFunctionVariable = (componentId, value) => {
	if (!value || !componentId) return {};
	return { [componentId]: { functions: value } };
};
const getVariableKey = (str) => {
	const match = str.match(/{{([^}]+)}}/);
	return match === null || match === void 0 ? void 0 : match[1];
};
//#endregion
export { genComponentFunctionVariable, genComponentValueVariable, getVariableKey };
