'use strict';
import { getDefaultResourceDescription, getBasedOnPropertyValueResourceDescription } from './resource-descriptions.js';
import { wellKnownMetaProps } from '../../../../fd-toolbox-core/constants/meta-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x164fe9,_0x3b88b5)=>__defProp(_0x164fe9,'name',{'value':_0x3b88b5,'configurable':!![]});const resourceDescriptionTypes={'default':0x0,'basedOnPropertyValue':0x1,'concat':0x2};async function getResourceImageDescription(_0x2654a6,_0x282569){switch(_0x2654a6['description']['type']){case resourceDescriptionTypes['basedOnPropertyValue']:{return getBasedOnPropertyValueResourceDescription(_0x2654a6,_0x282569);}case resourceDescriptionTypes['concat']:{return getBasedOnPropertyValueResourceDescription(_0x2654a6,_0x282569);}default:{return getDefaultResourceDescription(_0x2654a6,_0x282569);}}}__name(getResourceImageDescription,'getResourceImageDescription');async function getResourceDescriptionValue(_0x3f16c9,_0x6f7f87){const _0x596a87=await getResourceImageDescription(_0x3f16c9,_0x6f7f87);if(_0x596a87)return _0x596a87['value'];return '';}__name(getResourceDescriptionValue,'getResourceDescriptionValue');async function getResourceDescriptionImageUrl(_0x24f20e,_0x4d5425){const _0x4be9b9=await getResourceImageDescription(_0x24f20e,_0x4d5425);if(_0x4be9b9&&wellKnownMetaProps['imageUrl']in _0x4be9b9)return _0x4be9b9['imageUrl'];return '';}__name(getResourceDescriptionImageUrl,'getResourceDescriptionImageUrl');const defaultDescriptionProperty='';function getEmptyResourceDescription(){const _0x52ad7e={'type':resourceDescriptionTypes['default'],'resourceDescriptionProperty':defaultDescriptionProperty,'useImage':![]};return _0x52ad7e;}__name(getEmptyResourceDescription,'getEmptyResourceDescription');

export { getEmptyResourceDescription, getResourceDescriptionImageUrl, getResourceDescriptionValue, getResourceImageDescription, resourceDescriptionTypes };
