'use strict';
import { getODataBuilder } from '../../../fd-toolbox/odata/odata-builder-funcs.js';
import { oDataOperators } from '../../../fd-toolbox/enums/enums.js';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { commentProps } from '../core/resources/props/comment-props.js';
import { fetchResources } from '../resource-providers.js';
import { fetchUiResourceMeta } from '../ui-meta-providers.js';

var __defProp=Object['defineProperty'],__name=(_0x52a426,_0x319105)=>__defProp(_0x52a426,'name',{'value':_0x319105,'configurable':!![]});async function fetchResourceComments(_0x2f86be,_0xb800b9){const _0x1268a7=getODataBuilder();_0x1268a7['filterString'](commentProps['resourceName'],_0x2f86be,oDataOperators['startsWith']),_0x1268a7['filterUuid'](commentProps['resourceId'],_0xb800b9,oDataOperators['in']),_0x1268a7['expand'](commentProps['user']);const _0x3b62bc=_0x1268a7['build'](),_0x17abbe=await fetchUiResourceMeta(resourceNames['comment']);return fetchResources(_0x17abbe['resourceMeta']['resourceName'],_0x3b62bc);}__name(fetchResourceComments,'fetchResourceComments');

export { fetchResourceComments };
