'use strict';
import { isNullOrUndefined } from '../../../../../../fd-toolbox/functions/value-checking-functions.js';
import { getFilterRightHand } from '../../filter-display.js';
import { booleanStringValues } from '../../../../../../base-repo/constants/type-string-values.js';
import { commonLowerCaseWords } from '../../../../../../base-repo/constants/internal-common-strings.js';
import { yes, no } from '../../../../replies.js';
import { filterOptionLabels } from '../../filter-constants.js';
import { filterOperatorTypes } from '../../../../../../fd-toolbox/enums/enums.js';

var __defProp=Object['defineProperty'],__name=(_0x5690c8,_0xbfaeb6)=>__defProp(_0x5690c8,'name',{'value':_0xbfaeb6,'configurable':!![]});const filterValues={'yes':commonLowerCaseWords['yes'],'no':commonLowerCaseWords['no']};function getFilterRightHandValue(_0x16e088,_0x47b105){const _0x4baf81=getFilterRightHand(_0x16e088,_0x47b105);if(_0x4baf81===booleanStringValues['true'])return filterValues['yes'];else return _0x4baf81===booleanStringValues['false']?filterValues['no']:_0x4baf81!==filterOperatorTypes['none']?_0x4baf81:'';}__name(getFilterRightHandValue,'getFilterRightHandValue');const booleanFilterSelectOptions=[{'value':filterOperatorTypes['none'],'label':filterOptionLabels['none']},{'value':booleanStringValues['true'],'label':yes},{'value':booleanStringValues['false'],'label':no}];function onBooleanFilterValueChange(_0x26a87d,_0x4107aa,_0x1c3fc3){if(isNullOrUndefined(_0x1c3fc3))return;_0x26a87d(_0x1c3fc3),requestAnimationFrame(()=>{_0x4107aa?.['current']?.['focus']();});}__name(onBooleanFilterValueChange,'onBooleanFilterValueChange');

export { booleanFilterSelectOptions, getFilterRightHandValue, onBooleanFilterValueChange };
