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AAA,IAAAnB,EAAA+D,OAAA,CAAA5D,EAAA6D,IAAA,CAAA9C,EAAA","sources":["webpack://_N_E/./components/FAQBlock/FAQBlock.js","webpack://_N_E/"],"sourcesContent":["import React, { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport dynamic from 'next/dynamic'\nconst FAQQA = dynamic(() => import('./FAQQA'))\nimport { FAQConstants } from '../../adapters/helpers/Constants'\nimport { scrollIntoView } from '../../adapters/helpers/Scroll'\nimport { optimizeImage } from '../../adapters/helpers/pagespeedHelper'\nconst Heading = dynamic(() => import('../Heading/Heading'))\nconst ContactUsBlock = dynamic(() => import('../ContactUsBlock/ContactUsBlock'))\n\nconst FAQBlock = (props) => {\n const doc = props?.document?.fields;\n const topics = doc?.topics || null\n const contactUsBlock = doc?.contactUsBlock || null\n const iframeUrl = doc?.iframeUrl || null;\n const pageTitle =doc?.pageTitle || null;\n const [activeIndex, setActiveIndex] = useState(0)\n\n useEffect(() => {\n var element = document.getElementById(`ob-faq-qa-index-${activeIndex}`)\n if (element) {\n scrollIntoView(element, { behavior: 'smooth' })\n }\n }, [activeIndex])\n\n const handleMouseOver = (event, image) => {\n event.currentTarget.src = image\n }\n const handleMouseOut = (event, image) => {\n event.currentTarget.src = image\n }\n\n return (\n
\n
\n {{pageTitle}}\n
\n
    \n {topics &&\n topics.map((item, index) => {\n return (\n
  • setActiveIndex(index)} className={index === activeIndex ? 'qa-active' : ''}>\n
    \n handleMouseOver(event, item?.fields?.topicHoverIcon?.fields?.asset?.fields?.file?.url)}\n onMouseOut={(event) => handleMouseOut(event, item?.fields?.topicIcon?.fields?.asset?.fields?.file?.url)}\n />\n
    \n
    {item?.fields?.topic && {item?.fields?.topic}}
    \n
  • \n )\n })}\n
\n
\n \n
\n
\n
\n {contactUsBlock && }\n {iframeUrl && activeIndex === 1 && (\n
\n