'use strict';
import { jsBasicTypes } from '../../../../base-repo/constants/basic-types.js';
import { isNullOrUndefined } from '../../../../fd-toolbox/functions/value-checking-functions.js';

var __defProp=Object['defineProperty'],__name=(_0x1b86f1,_0x4d98d7)=>__defProp(_0x1b86f1,'name',{'value':_0x4d98d7,'configurable':!![]});function removeUndefinedValuesFromObject(_0x4df61d){let _0x456de3=_0x4df61d;if(Array['isArray'](_0x4df61d)){const _0x511159=_0x4df61d['map'](removeUndefinedValuesIfNeeded);_0x456de3=_0x511159;}else {if(isObjectOrArray(_0x4df61d)&&!isNullOrUndefined(_0x4df61d)){const _0x3e2054=Object['keys'](_0x4df61d);for(const _0x4b3435 of _0x3e2054){const _0x4cc419=_0x4df61d[_0x4b3435];if(isNullOrUndefined(_0x4cc419))delete _0x4df61d[_0x4b3435];else isObjectOrArray(_0x4cc419)&&(_0x4df61d[_0x4b3435]=removeUndefinedValuesFromObject(_0x4cc419));}}}return _0x456de3;}__name(removeUndefinedValuesFromObject,'removeUndefinedValuesFromObject');function removeOutsideExcludedProperties(_0x4d2f31,_0x4bf131){if(isObjectOrArray(_0x4d2f31)){const _0x29d5eb=Object['keys'](_0x4bf131['properties']);for(const _0x3a9637 of _0x29d5eb){const _0x55da94=_0x4bf131['properties'][_0x3a9637];_0x55da94?.['isOutsideExcluded']&&delete _0x4d2f31[_0x3a9637];}}return _0x4d2f31;}__name(removeOutsideExcludedProperties,'removeOutsideExcludedProperties');function removeUndefinedValuesIfNeeded(_0x440829){let _0x4ba838=_0x440829;return isObjectOrArray(_0x440829)&&(_0x4ba838=removeUndefinedValuesFromObject(_0x440829)),_0x4ba838;}__name(removeUndefinedValuesIfNeeded,'removeUndefinedValuesIfNeeded');function isObjectOrArray(_0x36ddab){return typeof _0x36ddab===jsBasicTypes['object'];}__name(isObjectOrArray,'isObjectOrArray');

export { removeOutsideExcludedProperties, removeUndefinedValuesFromObject, removeUndefinedValuesIfNeeded };
