'use strict';
import { getODataBuilder } from '../../../../fd-toolbox/odata/odata-builder-funcs.js';
import { blobProps } from '../../../meta/core/resources/blob/blob-props.js';
import { oDataOperators } from '../../../../fd-toolbox/enums/enums.js';
import { resourceNames } from '../../../../fd-toolbox/resources/resource-names.js';
import { oDataFilterTypes, oDataComparisonTypes } from '../../../../fd-toolbox/odata/odata-enums.js';
import { getResourcesWithOData } from '../../../meta/server/db/db.js';

var __defProp=Object['defineProperty'],__name=(_0x45dd9e,_0x59f991)=>__defProp(_0x45dd9e,'name',{'value':_0x59f991,'configurable':!![]});async function setScreenshotBlob(_0x22eff3){const _0x5385db=_0x22eff3['map'](_0x4c01bc=>_0x4c01bc['externalId'])['join'](','),_0x33e738=getODataBuilder()['filter'](blobProps['googlePlaceExternalId'],_0x5385db,oDataOperators['in'],{'comparisonType':oDataComparisonTypes['in'],'type':oDataFilterTypes['guid']})['selectArray']([blobProps['googlePlaceExternalId'],blobProps['blobUrl']])['build'](),_0x1090fe=await getResourcesWithOData(resourceNames['blob'],_0x33e738);if(_0x1090fe['length']>-0x2257+0x11d5*0x1+0x1082)for(const _0x4143ca of _0x22eff3){const _0x15a937=_0x1090fe['find'](_0xa8c6a0=>_0xa8c6a0['googlePlaceExternalId']===_0x4143ca['externalId']);_0x15a937&&(_0x4143ca['screenshotBlob']=_0x15a937);}return _0x22eff3;}__name(setScreenshotBlob,'setScreenshotBlob');

export { setScreenshotBlob };
