'use strict';
import { isManyToManyResource } from '../relations/many-to-many-relations.js';
import { metas } from './constants/metas.js';
import { pluralizeStrict } from '../../../../fd-toolbox/server/strings/strings.js';

var __defProp=Object['defineProperty'],__name=(_0x354b12,_0x49659c)=>__defProp(_0x354b12,'name',{'value':_0x49659c,'configurable':!![]});async function generateDisplayName(_0x19916b,_0x4d8c77){if(!_0x19916b)return '';let _0x4e9543=_0x19916b;return await isManyToManyResource(_0x19916b)&&(_0x4e9543=_0x4e9543['replace'](metas['manyToManyConnector'],'')),_0x4e9543=_0x4e9543['replace'](/([a-z])([A-Z])/g,'$1\x20$2'),_0x4d8c77?pluralizeStrict(_0x4e9543):_0x4e9543;}__name(generateDisplayName,'generateDisplayName');

export { generateDisplayName };
