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,CAAA9B,iBAAApD,yBAAAmD,YAAAjD,oBAAAiF,EAAA,CAAAD,cAAA,CAAA9B,iBAAApD,yBAAAmD,YAAAjD,oBAAAiF,EAAA,CAAAC,SAAA,CAL4C,SAAA/B,IAAA,CAAAgC,QAAA,EAC1C,IAD0CC,UAC5BX,KAAdtB,KAA0BsB,IAAZ,CACdY,QAAAlC,KAAAkC,OAAO,OAAO,GAAA1D,YAAE2D,GAAM,EAAf,KAAqBC,KAAAd,IAAY,EAAZA,KAAmB,KAAG,EAAAA,KAAHe,GAAA,CAA6B,aAAOH,QAAQA,IAAA,EAAAA,QAApF,aAAAD,CAAAA,UAAAC,OAAA,YAAAD,UAAAzG,KAAA,IAAA8G,MAAAN,SAA6G,GAAAO,MAAA,CAAAP,UAAA,GAApHA,SAAAA,QAFF,KAKAlC,WAAA,CApBqB,CA6BvB,GAAMrB,MAAA,EAAoF+D,UAAArD,KAAA,GAAuBrC,6BAAE2F,CAAA,EAAAtD,KAAAS,SAAAH,YAAA,GAAAjB,YAAA2D,GAAA,SAAAO,wBAAS,CAATC,OAAApE,kBAAAqE,QAAA,CAAAnD,YAAjC,CAElF,QAAQ,MAAgB,GAAUjB,YAAA2D,GAAO,SAAiBxC,UAAIJ,WAAtD,IAAAgD,MAAA,CAAA7C,eAAAqB,GAAAvB,SAARwC,SAAAQ,SAGD","sources":["webpack://_N_E/./adapters/helpers/functions.js","webpack://_N_E/./adapters/helpers/Contentful.js","webpack://_N_E/./components/RichText/RichText.js","webpack://_N_E/"],"sourcesContent":["export function chunk(items, size) {\n if(!Array.isArray(items)\n || items.length === 0\n || !Number.isInteger(size)\n || size === 0) {\n return [];\n }\n\n const chunks = [];\n let chunk = [];\n\n for(let i = 0; i < items.length; i++) {\n chunk.push(items[i]);\n if((i + 1) % size === 0) {\n chunks.push(chunk);\n chunk = [];\n }\n }\n\n if(chunk.length > 0) {\n chunks.push(chunk);\n }\n\n return chunks;\n}\n\nexport function flatten(array) {\n if (!Array.isArray(array)) {\n return [];\n }\n\n return array.reduce((previous, current) => {\n if (Array.isArray(current)){\n return previous.concat(current);\n } else {\n previous.push(current);\n return previous;\n }\n }, []);\n}\n\nexport function minimum(array) {\n if (!Array.isArray(array)) {\n return undefined;\n }\n\n let minimum = undefined;\n\n for(let i = 0; i < array.length; i++) {\n const value = array[i];\n if(typeof value === 'number') {\n if(minimum === undefined || value < minimum) {\n minimum = value;\n }\n }\n }\n\n return minimum;\n}\n\n// function to return N given of items in an Array\nexport function first(array, n) {\n // if passed array is not an array, return empty array\n if (!Array.isArray(array)\n || n <= 0) {\n return [];\n }\n\n //if N number is bigger or equal slice up the entire thing\n if(n >= array.length) {\n return array.slice();\n } else {\n // otherwise return only N numbers of array items\n return array.slice(0, n);\n }\n}\n\nexport function isLater(value) {\n // Return true if today is after the value date\n let result = false\n\n if (value && value instanceof Date) {\n result = new Date() > value;\n } else if (value) {\n result = new Date() > new Date(value)\n }\n\n return result;\n}\n\nexport function isObject(value) {\n return (!!value) && (value.constructor === Object);\n}\n\nexport function findIndex(array, fn) {\n if (!Array.isArray(array)\n || !(typeof fn === 'function')) {\n return undefined;\n }\n for(let i = 0; i < array.length; i++) {\n const element = array[i];\n\n if(fn(element)) {\n return i;\n }\n }\n\n return undefined;\n}\n\nexport function escapeHtml(unsafe) {\n return unsafe\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n","import {isObject} from './functions'; \n\n\n// If this function works fine, should replace the one in BlockDao\nexport function recursivelyRemoveSysFromEntry(entry) {\n if(Array.isArray(entry)) {\n return entry.map(x => recursivelyRemoveSysFromEntry(x));\n }\n\n if(!isObject(entry)) {\n return entry;\n }\n const sysType = entry?.sys?.type\n const contentType = entry?.sys?.contentType?.sys?.id || \n ((sysType === 'Asset') ? sysType : undefined);\n const fields = entry?.fields;\n\n if(contentType && fields) {\n const _sysRemovedFields = recursivelyRemoveSysFromEntry(fields);\n\n const revision = contentType == 'staticImage' ? entry?.sys?.revision : undefined;\n\n return {fields: {..._sysRemovedFields, contentType, revision}};\n } else {\n const keys = Object.keys(entry);\n const _entry = {};\n \n for (const key of keys) {\n _entry[key] = recursivelyRemoveSysFromEntry(entry[key]);\n }\n return _entry;\n }\n}","import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { recursivelyRemoveSysFromEntry } from '../../adapters/helpers/Contentful';\nimport Block from '../../adapters/helpers/Block';\nimport Component from '../../adapters/helpers/entity/Component';\nimport { RichTextConstants } from '../../adapters/helpers/Constants';\nimport DOMPurify from 'isomorphic-dompurify';\nexport default function RichText(props) {\n const {document, extraAttributes} = props;\n\n const entityRichTextBlock = extraAttributes?.richTextBlock || [];\n\n const richTextBlock = new Component(entityRichTextBlock);\n const text = document?.fields?.text || richTextBlock.getFieldValue(RichTextConstants.text);\n const classNames = document?.fields?.classNames || richTextBlock.getFieldValue(RichTextConstants.classNames);\n const anchorId = document?.fields?.anchorId || richTextBlock.getFieldValue(RichTextConstants.anchorId);\n const textContent = document?.fields?.textContent;\n const propClassname = props.className || '';\n\n const options = useMemo(() => {\n const handleEmbedNode = (node => {\n const target = recursivelyRemoveSysFromEntry(node?.data?.target);\n const block = new Block(target);\n \n const {\n extraAttributes,\n onClickCallback,\n customEvent\n } = props;\n\n return block.renderBlockFromDocument(extraAttributes,\n onClickCallback,\n customEvent);\n } );\n const handleHyperLink = (node, children) => {\n const { data, content } = node;\n return {children}\n };\n\n return ({\n renderNode: {\n [BLOCKS.EMBEDDED_ENTRY]: handleEmbedNode,\n [INLINES.EMBEDDED_ENTRY]: handleEmbedNode,\n [INLINES.HYPERLINK]: handleHyperLink,\n }\n });\n }, [props]);\n\n const component = (text) ? documentToReactComponents(text, options) : textContent ?
: null\n\n return (
\n {component}\n
);\n}\n\nRichText.propTypes = {\n className: PropTypes.string,\n document: PropTypes.object,\n extraAttributes: PropTypes.any\n};\n","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[5551,7539],{\n\n/***/ 61986:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Kn\": function() { return /* binding */ isObject; },\n/* harmony export */ \"LT\": function() { return /* binding */ minimum; },\n/* harmony export */ \"Ps\": function() { return /* binding */ first; },\n/* harmony export */ \"Xv\": function() { return /* binding */ escapeHtml; },\n/* harmony export */ \"cx\": function() { return /* binding */ findIndex; },\n/* harmony export */ \"en\": function() { return /* binding */ isLater; },\n/* harmony export */ \"yo\": function() { return /* binding */ chunk; }\n/* harmony export */ });\n/* unused harmony export flatten */\n/* harmony import */ var core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33161);\n/* harmony import */ var core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9653);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85827);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92222);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(47042);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74916);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15306);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nfunction chunk(items, size) {\n if (!Array.isArray(items) || items.length === 0 || !Number.isInteger(size) || size === 0) {\n return [];\n }\n\n var chunks = [];\n var chunk = [];\n\n for (var i = 0; i < items.length; i++) {\n chunk.push(items[i]);\n\n if ((i + 1) % size === 0) {\n chunks.push(chunk);\n chunk = [];\n }\n }\n\n if (chunk.length > 0) {\n chunks.push(chunk);\n }\n\n return chunks;\n}\nfunction flatten(array) {\n if (!Array.isArray(array)) {\n return [];\n }\n\n return array.reduce(function (previous, current) {\n if (Array.isArray(current)) {\n return previous.concat(current);\n } else {\n previous.push(current);\n return previous;\n }\n }, []);\n}\nfunction minimum(array) {\n if (!Array.isArray(array)) {\n return undefined;\n }\n\n var minimum = undefined;\n\n for (var i = 0; i < array.length; i++) {\n var value = array[i];\n\n if (typeof value === 'number') {\n if (minimum === undefined || value < minimum) {\n minimum = value;\n }\n }\n }\n\n return minimum;\n} // function to return N given of items in an Array\n\nfunction first(array, n) {\n // if passed array is not an array, return empty array\n if (!Array.isArray(array) || n <= 0) {\n return [];\n } //if N number is bigger or equal slice up the entire thing\n\n\n if (n >= array.length) {\n return array.slice();\n } else {\n // otherwise return only N numbers of array items\n return array.slice(0, n);\n }\n}\nfunction isLater(value) {\n // Return true if today is after the value date\n var result = false;\n\n if (value && value instanceof Date) {\n result = new Date() > value;\n } else if (value) {\n result = new Date() > new Date(value);\n }\n\n return result;\n}\nfunction isObject(value) {\n return !!value && value.constructor === Object;\n}\nfunction findIndex(array, fn) {\n if (!Array.isArray(array) || !(typeof fn === 'function')) {\n return undefined;\n }\n\n for (var i = 0; i < array.length; i++) {\n var element = array[i];\n\n if (fn(element)) {\n return i;\n }\n }\n\n return undefined;\n}\nfunction escapeHtml(unsafe) {\n return unsafe.replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''');\n}\n\n/***/ }),\n\n/***/ 67539:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ RichText; }\n});\n\n// EXTERNAL MODULE: ./node_modules/next/dist/compiled/@babel/runtime/helpers/defineProperty.js\nvar defineProperty = __webpack_require__(930);\nvar defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(67294);\n// EXTERNAL MODULE: ./node_modules/@contentful/rich-text-types/dist/rich-text-types.es5.js\nvar rich_text_types_es5 = __webpack_require__(80865);\n// EXTERNAL MODULE: ./node_modules/@contentful/rich-text-react-renderer/dist/rich-text-react-renderer.es5.js\nvar rich_text_react_renderer_es5 = __webpack_require__(74129);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js\nvar es_symbol = __webpack_require__(82526);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js\nvar es_array_filter = __webpack_require__(57327);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js\nvar es_object_to_string = __webpack_require__(41539);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js\nvar es_object_get_own_property_descriptor = __webpack_require__(38880);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js\nvar es_array_for_each = __webpack_require__(89554);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js\nvar web_dom_collections_for_each = __webpack_require__(54747);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js\nvar es_object_get_own_property_descriptors = __webpack_require__(49337);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.define-properties.js\nvar es_object_define_properties = __webpack_require__(33321);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.define-property.js\nvar es_object_define_property = __webpack_require__(69070);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js\nvar es_array_map = __webpack_require__(21249);\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js\nvar es_object_keys = __webpack_require__(47941);\n// EXTERNAL MODULE: ./adapters/helpers/functions.js\nvar functions = __webpack_require__(61986);\n;// CONCATENATED MODULE: ./adapters/helpers/Contentful.js\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n\n\n // If this function works fine, should replace the one in BlockDao\n\nfunction recursivelyRemoveSysFromEntry(entry) {\n var _entry$sys, _entry$sys2, _entry$sys2$contentTy, _entry$sys2$contentTy2;\n\n if (Array.isArray(entry)) {\n return entry.map(function (x) {\n return recursivelyRemoveSysFromEntry(x);\n });\n }\n\n if (!(0,functions/* isObject */.Kn)(entry)) {\n return entry;\n }\n\n var sysType = entry == null ? void 0 : (_entry$sys = entry.sys) == null ? void 0 : _entry$sys.type;\n var contentType = (entry == null ? void 0 : (_entry$sys2 = entry.sys) == null ? void 0 : (_entry$sys2$contentTy = _entry$sys2.contentType) == null ? void 0 : (_entry$sys2$contentTy2 = _entry$sys2$contentTy.sys) == null ? void 0 : _entry$sys2$contentTy2.id) || (sysType === 'Asset' ? sysType : undefined);\n var fields = entry == null ? void 0 : entry.fields;\n\n if (contentType && fields) {\n var _entry$sys3;\n\n var _sysRemovedFields = recursivelyRemoveSysFromEntry(fields);\n\n var revision = contentType == 'staticImage' ? entry == null ? void 0 : (_entry$sys3 = entry.sys) == null ? void 0 : _entry$sys3.revision : undefined;\n return {\n fields: _objectSpread(_objectSpread({}, _sysRemovedFields), {}, {\n contentType: contentType,\n revision: revision\n })\n };\n } else {\n var keys = Object.keys(entry);\n var _entry = {};\n\n for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {\n var key = _keys[_i];\n _entry[key] = recursivelyRemoveSysFromEntry(entry[key]);\n }\n\n return _entry;\n }\n}\n// EXTERNAL MODULE: ./adapters/helpers/Block.js\nvar Block = __webpack_require__(40483);\n// EXTERNAL MODULE: ./adapters/helpers/entity/Component.js + 1 modules\nvar Component = __webpack_require__(29224);\n// EXTERNAL MODULE: ./adapters/helpers/Constants.js\nvar Constants = __webpack_require__(24036);\n// EXTERNAL MODULE: ./node_modules/isomorphic-dompurify/browser.js\nvar browser = __webpack_require__(29238);\nvar browser_default = /*#__PURE__*/__webpack_require__.n(browser);\n// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js\nvar jsx_runtime = __webpack_require__(85893);\n;// CONCATENATED MODULE: ./components/RichText/RichText.js\n\n\n\n\n\n\n\n\n\n\nfunction RichText(props) {\n var _document$fields, _document$fields2, _document$fields3, _document$fields4;\n\n var document = props.document,\n extraAttributes = props.extraAttributes;\n var entityRichTextBlock = (extraAttributes == null ? void 0 : extraAttributes.richTextBlock) || [];\n var richTextBlock = new Component/* default */.Z(entityRichTextBlock);\n var text = (document == null ? void 0 : (_document$fields = document.fields) == null ? void 0 : _document$fields.text) || richTextBlock.getFieldValue(Constants/* RichTextConstants.text */.qP.text);\n var classNames = (document == null ? void 0 : (_document$fields2 = document.fields) == null ? void 0 : _document$fields2.classNames) || richTextBlock.getFieldValue(Constants/* RichTextConstants.classNames */.qP.classNames);\n var anchorId = (document == null ? void 0 : (_document$fields3 = document.fields) == null ? void 0 : _document$fields3.anchorId) || richTextBlock.getFieldValue(Constants/* RichTextConstants.anchorId */.qP.anchorId);\n var textContent = document == null ? void 0 : (_document$fields4 = document.fields) == null ? void 0 : _document$fields4.textContent;\n var propClassname = props.className || '';\n var options = (0,react.useMemo)(function () {\n var _renderNode;\n\n var handleEmbedNode = function handleEmbedNode(node) {\n var _node$data;\n\n var target = recursivelyRemoveSysFromEntry(node == null ? void 0 : (_node$data = node.data) == null ? void 0 : _node$data.target);\n var block = new Block/* default */.Z(target);\n var extraAttributes = props.extraAttributes,\n onClickCallback = props.onClickCallback,\n customEvent = props.customEvent;\n return block.renderBlockFromDocument(extraAttributes, onClickCallback, customEvent);\n };\n\n var handleHyperLink = function handleHyperLink(node, children) {\n var _content$;\n\n var data = node.data,\n content = node.content;\n return /*#__PURE__*/(0,jsx_runtime.jsx)(\"a\", {\n href: data == null ? void 0 : data.uri,\n \"aria-label\": content ? content == null ? void 0 : (_content$ = content[0]) == null ? void 0 : _content$.value : '',\n title: children ? \"\".concat(children) : '',\n children: children\n });\n };\n\n return {\n renderNode: (_renderNode = {}, defineProperty_default()(_renderNode, rich_text_types_es5/* BLOCKS.EMBEDDED_ENTRY */.RG.EMBEDDED_ENTRY, handleEmbedNode), defineProperty_default()(_renderNode, rich_text_types_es5/* INLINES.EMBEDDED_ENTRY */.Ev.EMBEDDED_ENTRY, handleEmbedNode), defineProperty_default()(_renderNode, rich_text_types_es5/* INLINES.HYPERLINK */.Ev.HYPERLINK, handleHyperLink), _renderNode)\n };\n }, [props]);\n var component = text ? (0,rich_text_react_renderer_es5/* documentToReactComponents */.h)(text, options) : textContent ? /*#__PURE__*/(0,jsx_runtime.jsx)(\"div\", {\n dangerouslySetInnerHTML: {\n __html: browser_default().sanitize(textContent)\n }\n }) : null;\n return /*#__PURE__*/(0,jsx_runtime.jsx)(\"div\", {\n className: classNames + \" \".concat(propClassname),\n id: anchorId,\n children: component\n });\n}\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","chunk","items","size","Array","isArray","length","Number","isInteger","chunks","i","minimum","array","undefined","value","first","n","slice","isLater","result","Date","isObject","constructor","Object","findIndex","fn","escapeHtml","unsafe","replace","d","r","RichText","defineProperty","defineProperty_default","react","rich_text_types_es5","rich_text_react_renderer_es5","functions","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","target","arguments","source","forEach","key","getOwnPropertyDescriptors","defineProperties","Block","Component","Constants","browser","browser_default","jsx_runtime","props","_document$fields","_document$fields2","_document$fields3","_document$fields4","document","extraAttributes","entityRichTextBlock","richTextBlock","Z","text","fields","getFieldValue","qP","classNames","anchorId","textContent","propClassname","className","options","useMemo","_renderNode","handleEmbedNode","node","_node$data","recursivelyRemoveSysFromEntry","entry","map","x","Kn","sysType","_entry$sys","sys","type","contentType","_entry$sys2","_entry$sys2$contentTy","_entry$sys2$contentTy2","id","_entry$sys3","_sysRemovedFields","revision","_entry","_i","_keys","data","block","onClickCallback","customEvent","renderBlockFromDocument","renderNode","RG","EMBEDDED_ENTRY","Ev","HYPERLINK","children","_content$","content","jsx","href","uri","title","concat","component","h","dangerouslySetInnerHTML","__html","sanitize"],"sourceRoot":""}