'use strict';
import { getOptionalPropertyValue } from '../../../../fd-toolbox/objects/property-value.js';
import { isArray } from '../../../../fd-toolbox/types/ensure-type.js';
import { getUserFriendlyPropertyValue } from '../../services/property-values.js';
import { getRelatedItemDisplayValue } from '../../core/resource-description/resource-descriptions.js';

var __defProp=Object['defineProperty'],__name=(_0x2d2fb3,_0x47fe94)=>__defProp(_0x2d2fb3,'name',{'value':_0x47fe94,'configurable':!![]});async function getRelatedPropertyValue(_0x5288ad,_0x31a1f7,_0x23f3e2,_0x3062b8){const _0x1683c5=getOptionalPropertyValue(_0x31a1f7,_0x23f3e2);if(isArray(_0x1683c5))return getRelatedPropertyValues(_0x3062b8,_0x1683c5);return getUserFriendlyPropertyValue(_0x5288ad,_0x23f3e2,_0x31a1f7);}__name(getRelatedPropertyValue,'getRelatedPropertyValue');async function getRelatedPropertyValues(_0x23cfb7,_0xc63aac){const _0x30eaa9=[];for(const _0x3ec740 of _0xc63aac){const _0x1b02d9=await getRelatedItemDisplayValue(_0x23cfb7,_0x3ec740);_0x30eaa9['push'](_0x1b02d9);}return _0x30eaa9['join'](',\x20');}__name(getRelatedPropertyValues,'getRelatedPropertyValues');

export { getRelatedPropertyValue, getRelatedPropertyValues };
