"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;
    }
});
const getChangeHandler = (changeHandler, disabled, readOnly)=>(event)=>{
        if (disabled || readOnly) {
            return;
        }
        changeHandler?.(event, event.target.value);
    };
const getSearchHandler = (searchHandler, disabled, readOnly)=>(value, event)=>{
        if (disabled || readOnly) {
            return;
        }
        searchHandler?.(event, value);
    };
