'use strict';
import { shortTextLength } from '../../base-repo/constants/strings-constants.js';
import { isNullOrUndefined } from '../functions/value-checking-functions.js';

var __defProp=Object['defineProperty'],__name=(_0x6c4c6e,_0x4e70b5)=>__defProp(_0x6c4c6e,'name',{'value':_0x4e70b5,'configurable':!![]});function shortenWithEllipsis(_0x24167b,_0x1a1a5f=shortTextLength){if(isNullOrUndefined(_0x24167b))return '';return _0x24167b['length']<-0x2681+-0x13e6+0x3a69?_0x24167b['length']<=_0x1a1a5f?_0x24167b:_0x24167b['substring'](0xf7b+-0x1d62+-0xde7*-0x1,_0x1a1a5f):_0x24167b['length']<=_0x1a1a5f?_0x24167b:_0x24167b['substring'](0x1d59*0x1+-0x2*0x277+-0x186b,_0x1a1a5f-(-0x1c3+-0x1*0xeef+-0xab*-0x19))+'…';}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x2e2d63,_0x4dfb35){let _0x16a2bf=_0x2e2d63;if(Array['isArray'](_0x4dfb35))for(let _0x25d9b6 of _0x4dfb35){(_0x2e2d63['startsWith'](_0x25d9b6)||_0x2e2d63['endsWith'](_0x25d9b6))&&(_0x16a2bf=trimOneCharacter(_0x2e2d63,_0x25d9b6));}else _0x16a2bf=trimOneCharacter(_0x2e2d63,_0x4dfb35);return _0x16a2bf;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x5a4c0d,_0xef34b5){let _0xa818dd=_0x5a4c0d;return _0xa818dd?.['startsWith'](_0xef34b5)&&(_0xa818dd=_0xa818dd['substring'](0x44*-0x37+-0xd4d+0x1bea)),_0xa818dd?.['endsWith'](_0xef34b5)&&(_0xa818dd=_0xa818dd['substring'](-0x134d+-0xfaa+0x22f7,_0xa818dd['lastIndexOf'](_0xef34b5))),_0xa818dd;}__name(trimOneCharacter,'trimOneCharacter');

export { shortenWithEllipsis, trimCharacter };
