'use strict';
import { fetchUiResourceMeta } from '../../ui-meta-providers.js';
import { fetchRelatedResourcesList } from '../../one-to-many-relations.js';
import { blobProps } from '../../core/resources/blob/blob-props.js';
import { getOptionalPropertyValue } from '../../../../fd-toolbox/objects/property-value.js';

var __defProp=Object['defineProperty'],__name=(_0x33a41a,_0x1b5e67)=>__defProp(_0x33a41a,'name',{'value':_0x1b5e67,'configurable':!![]});async function onInitBlobList(_0x2c7ef7,_0x52b952,_0x5bac44){const _0x1a1ffc=await fetchUiResourceMeta(_0x2c7ef7['relation']['relatedResourceName']);await writeBlobListValue(_0x2c7ef7,_0x1a1ffc['resourceMeta'],_0x52b952,_0x5bac44);}__name(onInitBlobList,'onInitBlobList');async function writeBlobListValue(_0x2404ec,_0xc481ba,_0x24ab66,_0x4749d5){const _0x1a90fa=await fetchRelatedResourcesList(_0x2404ec,_0xc481ba,_0x24ab66);if(_0x1a90fa){const _0x212438=_0x1a90fa['map'](_0x5954ac=>getOptionalPropertyValue(_0x5954ac,blobProps['blobUrl']))['join'](',\x20');_0x4749d5?.(_0x2404ec['name'],_0x212438);}}__name(writeBlobListValue,'writeBlobListValue');

export { onInitBlobList };
