'use strict';
import { isGuid, isDateTime } from '../core/property-types.js';
import { propertyTypeFormats } from '../constants/property-type-formats.js';
import { oDataOperators } from '../../../fd-toolbox/enums/enums.js';
import { oDataFilterTypes } from '../../../fd-toolbox/odata/odata-enums.js';

var __defProp=Object['defineProperty'],__name=(_0x270e9e,_0xc8365)=>__defProp(_0x270e9e,'name',{'value':_0xc8365,'configurable':!![]});function getOperator(_0x3d48f4){if(_0x3d48f4['typeFormat']===propertyTypeFormats['enum']||_0x3d48f4['typeFormat']===propertyTypeFormats['uuid'])return oDataOperators['in'];else return _0x3d48f4['typeFormat']===propertyTypeFormats['dateTime']?oDataOperators['greaterThanEqual']:oDataOperators['startsWith'];}__name(getOperator,'getOperator');function getODataFilterType(_0x358f0c){if(isGuid(_0x358f0c['typeFormat'],_0x358f0c['relation']))return oDataFilterTypes['guid'];else return isDateTime(_0x358f0c['type'],_0x358f0c['typeFormat'])?oDataFilterTypes['date']:oDataFilterTypes['string'];}__name(getODataFilterType,'getODataFilterType');

export { getODataFilterType, getOperator };
