'use strict';
import { fetchUiResourceMeta } from '../ui-meta-providers.js';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { noName } from '../../../fd-toolbox/constants/constants.js';
import { fetchResourceComments } from './comment-service.js';

var __defProp=Object['defineProperty'],__name=(_0x3feec3,_0x119875)=>__defProp(_0x3feec3,'name',{'value':_0x119875,'configurable':!![]});async function initCommentList(_0x1ebf84,_0x470887,_0x5a4747,_0x1e7bc7,_0x39c6dc,_0x2a6aab){const _0x58bafa=_0x5a4747||await fetchUiResourceMeta(resourceNames['comment']),_0x40ad65=_0x39c6dc||await fetchResourceComments(_0x2a6aab,_0x1e7bc7);_0x470887(_0x58bafa),_0x1ebf84(_0x40ad65);}__name(initCommentList,'initCommentList');function getUserDisplayText(_0x5b1a98,_0x4d8ce8){if(!_0x5b1a98?.['trim']()&&!_0x4d8ce8?.['trim']())return noName;return ((_0x5b1a98??'')+'\x20'+(_0x4d8ce8??''))['trim']();}__name(getUserDisplayText,'getUserDisplayText');

export { getUserDisplayText, initCommentList };
