(this.wrapper = c)}\n className={styles.collapsed}\n aria-expanded={isOpened}\n data-readaloud\n >\n {displayButton && (\n
\n )}\n
{title}
\n
\n (this.collapseContent = c)}>\n \n
\n \n
\n )\n }\n}\n\nCollapsed.displayName = 'Collapsed'\nCollapsed.propTypes = propTypes\nCollapsed.defaultProps = defaultProps\n\nexport default Collapsed\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Collapsed/Collapsed.js","import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport Collapsed from 'components/Collapsed'\nimport ReadAloudButton from '../../components/ReadAloudButton/ReadAloudButton'\nimport ReadAloudPopover from '../../components/ReadAloudPopover/ReadAloudPopover'\n\nclass Faq extends Component {\n static displayName = 'Faq'\n static propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n key: PropTypes.string,\n anchor: PropTypes.string,\n /* HTML */\n content: PropTypes.string.isRequired,\n }),\n ).isRequired,\n readAloud: PropTypes.bool,\n }\n\n static defaultProps = {}\n\n state = {}\n\n componentDidMount() {\n if (typeof window !== 'undefined') {\n const anchor = window.location.hash.substr(1)\n\n if (anchor !== null) {\n this.updateAnchor(anchor)\n }\n }\n }\n\n updateAnchor = anchor => {\n const item = document.getElementById(`${anchor}`)\n if (item)\n item.scrollIntoView({\n behavior: 'smooth',\n block: 'start',\n inline: 'nearest',\n })\n this.setState(() => ({ anchor }))\n }\n\n render() {\n const { items, readAloud } = this.props\n const { anchor } = this.state\n return (\n