"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get getValueGetterValue () {
        return getValueGetterValue;
    },
    get getValueSetterValue () {
        return getValueSetterValue;
    }
});
const _function = require("../helpers/function");
function getValueSetterValue(value, cellMeta) {
    const { instance, visualRow, visualCol, valueSetter } = cellMeta;
    if ((0, _function.isFunction)(valueSetter)) {
        return valueSetter.call(instance, value, visualRow, visualCol, cellMeta);
    }
    return value;
}
function getValueGetterValue(value, cellMeta) {
    const { instance, visualRow, visualCol, valueGetter } = cellMeta;
    if ((0, _function.isFunction)(valueGetter)) {
        return valueGetter.call(instance, value, visualRow, visualCol, cellMeta);
    }
    return value;
}
