'use strict';
import { tableDisplayModes } from '../../../../fd-toolbox/enums/enums.js';
import { defaultMinimalModeMaxColumns } from '../table-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x385428,_0x12c0b8)=>__defProp(_0x385428,'name',{'value':_0x12c0b8,'configurable':!![]});function ifShouldDisplayPropertyInList(_0x531488,_0x1e0634,_0x2325c2,_0x40712a){return _0x531488['isListDisplayable']&&!_0x1e0634['isOutsideExcluded']&&_0x2325c2['indexOf'](_0x531488['name'])===-(0x20d2+0x1c87+-0x3d58)||hasCellTemplate(_0x40712a,_0x1e0634['name']);}__name(ifShouldDisplayPropertyInList,'ifShouldDisplayPropertyInList');function hasCellTemplate(_0x22a9a8,_0xc21c16){return !!_0x22a9a8['columnConfigs']?.[_0xc21c16]?.['cellTemplate'];}__name(hasCellTemplate,'hasCellTemplate');function isDateAsTimeAgoInTableConfig(_0xa97460,_0xb4755f){return !!_0xa97460['columnConfigs']?.[_0xb4755f]?.['isDateAsTimeAgo'];}__name(isDateAsTimeAgoInTableConfig,'isDateAsTimeAgoInTableConfig');function ifShouldStopAddingColumns(_0x9e172d,_0xe8636c,_0x1b00c8,_0x460a1a){const _0x203212=_0x1b00c8['maxNumberOfColumns'];if(_0xe8636c!==tableDisplayModes['minimal'])return ![];if(_0x460a1a['isSearchable'])return ![];return !!((_0x203212&&_0x9e172d>=_0x203212)??(!_0x203212&&_0x9e172d>=defaultMinimalModeMaxColumns));}__name(ifShouldStopAddingColumns,'ifShouldStopAddingColumns');

export { hasCellTemplate, ifShouldDisplayPropertyInList, ifShouldStopAddingColumns, isDateAsTimeAgoInTableConfig };
