"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 getChangeHandler () {
        return getChangeHandler;
    },
    get getSearchHandler () {
        return getSearchHandler;
    }
});
var getChangeHandler = function getChangeHandler(changeHandler, disabled, readOnly) {
    return function(event) {
        if (disabled || readOnly) {
            return;
        }
        changeHandler === null || changeHandler === void 0 ? void 0 : changeHandler(event, event.target.value);
    };
};
var getSearchHandler = function getSearchHandler(searchHandler, disabled, readOnly) {
    return function(value, event) {
        if (disabled || readOnly) {
            return;
        }
        searchHandler === null || searchHandler === void 0 ? void 0 : searchHandler(event, value);
    };
};
