'use strict';
import { defaultSidebarIconName } from '../../../fd-component-toolbox/icon/Icon.js';
import { fetchUiResourceMeta } from '../../../meta/ui-meta-providers.js';
import { tableElementSuffixes } from '../../../fd-component-toolbox/constants/table-element-suffixes.js';
import { getSearchDialogTableConfig } from '../search-dialog-table-config.js';

var __defProp=Object['defineProperty'],__name=(_0x50ef32,_0x57c0b9)=>__defProp(_0x50ef32,'name',{'value':_0x57c0b9,'configurable':!![]});async function initSearchSearchableResourceResult(_0x29fe64,_0x1e6371,_0x80d48f){const _0x10b29a=await fetchUiResourceMeta(_0x29fe64);_0x1e6371(_0x10b29a),_0x80d48f(_0x10b29a['resourceMeta']?.['icon']??defaultSidebarIconName);}__name(initSearchSearchableResourceResult,'initSearchSearchableResourceResult');function getTableConfig(_0x10bc0f){return {...getSearchDialogTableConfig(),'includeProperties':_0x10bc0f};}__name(getTableConfig,'getTableConfig');function getSearchableProperties(_0xe2d79f){if(!_0xe2d79f)return [];return Object['values'](_0xe2d79f['properties'])['filter'](_0x76feef=>_0x76feef['isSearchable'])['map'](_0x50b6c5=>_0x50b6c5['name']);}__name(getSearchableProperties,'getSearchableProperties');function getSearchResultTableId(_0x29adae,_0x171ec2){return _0x29adae+tableElementSuffixes['table']+_0x171ec2;}__name(getSearchResultTableId,'getSearchResultTableId');

export { getSearchResultTableId, getSearchableProperties, getTableConfig, initSearchSearchableResourceResult };
