function prepareSettings({ views, props, ref, ...rest }) {
	const settings = { props: {}, ...rest };
	if (views) {
		if (process.env.NODE_ENV === 'development') {
			// eslint-disable-next-line no-console
			console.warn('settings.view is deprecated, please use settings.props');
		}
		Object.keys(views).forEach(id => {
			settings.props[id] = attachRefs(ref, views[id]);
		});
	}
	if (props) {
		Object.keys(props).forEach(id => {
			settings.props[id] = attachRefs(ref, props[id]);
		});
	}
	if (typeof settings.freeze === 'function') {
		settings.freeze();
	}
	return settings;
}
/**
 * attach reference to produce a ready to use freezed object
 * @param {object} originalSettings the full settings with `props` and `ref` attribute
 * @return {object} frozen settings with ref computed
 */
attach reference to produce a ready to use freezed object
@param {object} originalSettings the full settings with `props` and `ref` attribute
@return {object} frozen settings with ref computed
attach reference to produce a ready to use freezed object @param { object } originalSettings the full settings with ` props ` and ` ref ` attribute @return { object } frozen settings with ref computed
function prepareSettings({ views, props, ref, ...rest }) {
	const settings = { props: {}, ...rest };
	if (views) {
		if (process.env.NODE_ENV === 'development') {
			console.warn('settings.view is deprecated, please use settings.props');
		}
		Object.keys(views).forEach(id => {
			settings.props[id] = attachRefs(ref, views[id]);
		});
	}
	if (props) {
		Object.keys(props).forEach(id => {
			settings.props[id] = attachRefs(ref, props[id]);
		});
	}
	if (typeof settings.freeze === 'function') {
		settings.freeze();
	}
	return settings;
}
function prepareSettings ( { views , props , ref , ... rest } ) { const settings = { props : { } , ... rest } ; if ( views ) { if ( process . env . NODE_ENV === 'development' ) { console . warn ( 'settings.view is deprecated, please use settings.props' ) ; } Object . keys ( views ) . forEach ( id => { settings . props [ id ] = attachRefs ( ref , views [ id ] ) ; } ) ; } if ( props ) { Object . keys ( props ) . forEach ( id => { settings . props [ id ] = attachRefs ( ref , props [ id ] ) ; } ) ; } if ( typeof settings . freeze === 'function' ) { settings . freeze ( ) ; } return settings ; }
attach reference to produce a ready to use freezed object
 @param {object} originalSettings the full settings with `props` and `ref` attribute
 @return {object} frozen settings with ref computed
attach reference to produce a ready to use freezed object @param { object } originalSettings the full settings with ` props ` and ` ref ` attribute @return { object } frozen settings with ref computed
// eslint-disable-next-line no-console