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AC,KAAA,EAApB,OAAAA,KACH,EAEC,CACF,MAAOC,QAAK,CACfC,QAAAC,GAAA,iBAAAtB,SAVL,KAwBgEQ,iBAAA,GAAAX,+CAAAgB,GAAA,UAAAU,wBAAS,CAATC,OAAA7B,4DAAA8B,QAAA,CAAAzB,SAApC,CATxB,OAeP,GAuCsBF,QACd4B,YADc,EAEnBxB,IAAA,IACAE,UAHmB,GAInBC,OAAA,CAAS,EAJbC,UAAA,EAOA,EAAAlB,oBAAA,QAAAU,OAAA","sources":["webpack://_N_E/./components/Eyebrow/Eyebrow.js","webpack://_N_E/"],"sourcesContent":["import PropTypes from 'prop-types'\nimport React,{Suspense} from 'react'\nimport {isString, isObject} from '../../adapters/helpers/Utils';\nimport Loader from '../../adapters/helpers/Loader';\nimport DOMPurify from 'isomorphic-dompurify';\n\nfunction Eyebrow({children, tag: Tag, id, className, styles, whiteText, blueEyebrow}) {\n\n if (!children) {\n return null\n }\n\n const isStringChildren = isString(children);\n const isObjectChildren = isObject(children);\n\n className = className ? `ob-eyebrow ${className}` : 'ob-eyebrow';\n\n const renderChildren = () => {\n try {\n if (typeof children.map == 'undefined') {\n return children\n } else {\n return children.map((child)=> child);\n }\n }\n catch {\n console.log('Eyebrow error', children);\n }\n }\n\n return (\n }>\n \n\n { isObjectChildren ? (\n renderChildren()\n ) : (\n isStringChildren ? ( ) : ('')\n )}\n\n \n \n )\n}\n\nEyebrow.propTypes = {\n /**\n * The html to be structured\n */\n children: PropTypes.node,\n\n /**\n * The tag to be used for the containing element\n */\n tag: PropTypes.string,\n\n /**\n * The ID attribute be added to the element\n */\n id: PropTypes.string,\n\n /**\n * The Class attribute be added to the element\n */\n className: PropTypes.string,\n\n /**\n * Add custom styles to the eyebrow\n */\n styles: PropTypes.object,\n\n /**\n * Set white text if needed\n */\n whiteText: PropTypes.bool,\n\n /**\n * Set blue primary color on the eyebrow\n */\n blueEyebrow: PropTypes.bool,\n}\n\nEyebrow.defaultProps = {\n tag: 'p',\n className: '',\n styles: {},\n whiteText: false\n }\n\nexport default Eyebrow\n\n","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[7890,405,9120],{\n\n/***/ 405:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21249);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67294);\n/* harmony import */ var _adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8996);\n/* harmony import */ var _adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47322);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29238);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85893);\n\n\n\n\n\n\n\nfunction Eyebrow(_ref) {\n var children = _ref.children,\n Tag = _ref.tag,\n id = _ref.id,\n className = _ref.className,\n styles = _ref.styles,\n whiteText = _ref.whiteText,\n blueEyebrow = _ref.blueEyebrow;\n\n if (!children) {\n return null;\n }\n\n var isStringChildren = (0,_adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .HD)(children);\n var isObjectChildren = (0,_adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_2__/* .isObject */ .Kn)(children);\n className = className ? \"ob-eyebrow \".concat(className) : 'ob-eyebrow';\n\n var renderChildren = function renderChildren() {\n try {\n if (typeof children.map == 'undefined') {\n return children;\n } else {\n return children.map(function (child) {\n return child;\n });\n }\n } catch (_unused) {\n console.log('Eyebrow error', children);\n }\n };\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(Tag, {\n id: id,\n className: className,\n \"data-white-text\": whiteText,\n \"data-blue-text\": blueEyebrow,\n style: styles,\n children: isObjectChildren ? renderChildren() : isStringChildren ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(\"span\", {\n dangerouslySetInnerHTML: {\n __html: isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4___default().sanitize(children)\n }\n }) : ''\n })\n });\n}\n\nEyebrow.defaultProps = {\n tag: 'p',\n className: '',\n styles: {},\n whiteText: false\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Eyebrow);\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","r","react__WEBPACK_IMPORTED_MODULE_1__","_adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_2__","_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_3__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_4___default","n","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__","Eyebrow","_ref","children","Tag","tag","id","className","styles","whiteText","blueEyebrow","isStringChildren","HD","isObjectChildren","Kn","concat","jsx","Suspense","fallback","style","renderChildren","map","child","_unused","console","log","dangerouslySetInnerHTML","__html","sanitize","defaultProps"],"sourceRoot":""}