function attachRef(refs, obj) {
	if (obj === null || typeof obj !== 'object' || Array.isArray(obj)) {
		return obj;
	}
	let props = { ...obj };
	if (props._ref) {
		invariant(refs[props._ref], `CMF/Settings: Reference '${props._ref}' not found`);
		props = { ...refs[props._ref], ...obj };
		delete props._ref;
	}
	return props;
}
/**
 * if an object try to find _ref property and resolve it
 */
if an object try to find _ref property and resolve it
if an object try to find _ref property and resolve it
function attachRef(refs, obj) {
	if (obj === null || typeof obj !== 'object' || Array.isArray(obj)) {
		return obj;
	}
	let props = { ...obj };
	if (props._ref) {
		invariant(refs[props._ref], `CMF/Settings: Reference '${props._ref}' not found`);
		props = { ...refs[props._ref], ...obj };
		delete props._ref;
	}
	return props;
}
function attachRef ( refs , obj ) { if ( obj === null || typeof obj !== 'object' || Array . isArray ( obj ) ) { return obj ; } let props = { ... obj } ; if ( props . _ref ) { invariant ( refs [ props . _ref ] , ` ${ props . _ref } ` ) ; props = { ... refs [ props . _ref ] , ... obj } ; delete props . _ref ; } return props ; }
if an object try to find _ref property and resolve it
if an object try to find _ref property and resolve it