"use strict"; /* istanbul ignore file */ // This file needs to be ignored from code coverage, as Istanbul adds extra calls // to `cov_*` functions which are used to track coverage, but these functions // can't be resolved when executing the templates from the unit tests inside // `new Function()` Object.defineProperty(exports, "__esModule", { value: true }); exports._fcc_array = _fcc_array; exports._fcc_jsxElement = _fcc_jsxElement; exports._fcc_function = _fcc_function; exports._fcc_identifier = _fcc_identifier; exports._fcc_object = _fcc_object; exports._fcc_templateString = _fcc_templateString; exports._fcc_reactComponent = _fcc_reactComponent; exports.getParsedTemplateHelpersString = getParsedTemplateHelpersString; function _fcc_array($value) { return { $value, $type: 'array', }; } function _fcc_jsxElement($value) { return { $value, $type: 'jsx-element', }; } function _fcc_function($value) { return { $value, $type: 'function', }; } function _fcc_identifier($value) { return { $value, $type: 'identifier', }; } function _fcc_object($value) { return { $value, $type: 'object', ...$value, }; } function _fcc_templateString($value) { return { $value, $type: 'template-string', }; } function _fcc_reactComponent($value) { return { $value, $type: 'react-component', }; } function isReactComponentArray(prop) { return (Array.isArray(prop) && prop.every((item) => item.type === 'INSTANCE' || item.type === 'SLOT' || item.type === 'CODE' || item.type === 'ERROR')); } // Render a prop value passed to an object literal based on its type. // for example: