import { formatItemValue } from '../../utils/formatting';
export const getFormattedValue = (value, key, itemsMap, convertToUTC = true, pivotValuesColumnsMap, parameters, timezone, displayTimezone) => {
    const pivotValuesColumn = pivotValuesColumnsMap?.[key];
    const item = itemsMap[pivotValuesColumn?.referenceField ?? key];
    return formatItemValue(item, value, convertToUTC, parameters, timezone, displayTimezone);
};
export const valueFormatter = (yFieldId, itemsMap, pivotValuesColumnsMap, parameters, timezone, displayTimezone) => (rawValue) => getFormattedValue(rawValue, yFieldId, itemsMap, undefined, pivotValuesColumnsMap, parameters, timezone, displayTimezone);
//# sourceMappingURL=valueFormatter.js.map