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AA,6BAAA8C,MAAAf,EAAAiB,wBAAA,CAAAC,OAAAhG,IAAAiG,QAAA,CAAArC,EAAA,iBAAAhD,EAAAgF,IAAA,EAAAhF,EAAA0F,QAAA,EAAAf,SAAA,CAAAhD,GAAA,GAAA3B,EAAA0E,GAAA,EAAA/E,IAAA,CAAAgG,OAAAhE,EAAAiE,eAAA,WAAAhE,EAAA,KAAAqD,MAAA,CAAAY,QAAA,CAAAC,SAAA,QAAAC,IAAA,MAAAC,KAAA,MAAAC,MAAA,MAAAC,OAAA,MAAAhB,gBAAA,sBAAAiB,QAAA,CAAAC,OAAA,OAAAL,IAAA,MAAAC,KAAA,MAAAC,MAAA,OAAAC,OAAA,OAAAG,QAAA,IAAAC,YAAA,OAAAC,UAAA,wBAAAC,SAAA,SAAAnC,MAAA,QAAAoC,kBAAA,6BAAA9B,SAAA,GAAA3E,EAAA0E,GAAA,SAAAvC,UAAA,yBAAAwC,SAAA,GAAA3E,EAAA0E,GAAA,YAAAe,MAAA1F,EAAA2G,EAAA,CAAAjB,KAAA,CAAAkB,IAAA,GAAAC,MAAA,CAAA7G,EAAA2G,EAAA,CAAApB,GAAA,EAAAsB,MAAA,CAAAhD,EAAA,UAAA5D,EAAAgF,IAAA,SAAA7C,UAAA,yBAAAyE,MAAA,CAAA3E,GAAA0C,SAAA,EAAA5C,GAAA,kBAAA+B,GAAA,4BAAA9D,EAAAgF,IAAA,EAAAhF,EAAA0F,QAAA,EAAAf,SAAA,CAAAF,IAAAM,IAAA,wBAAA/E,EAAAgF,IAAA,EAAAhF,EAAA0F,QAAA,EAAAf,SAAA,CAAAI,IAAAN,IAAA,OAAA1C,GAAA,GAAA/B,EAAAgF,IAAA,EAAAhF,EAAA0F,QAAA,EAAAf,SAAA,CAAAF,IAAAM,IAAA","sources":["webpack://_N_E/./components/MiniContentBlock/MiniContentBlock.js","webpack://_N_E/"],"sourcesContent":["import React, { useState } from 'react'\nimport DOMPurify from 'isomorphic-dompurify'\nimport PropTypes from 'prop-types'\nimport Image from '../Image/Image'\nimport Modal from 'react-modal'\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks'\nimport classNames from 'classnames'\nimport {YoutubeVideoConstants} from '../../adapters/helpers/Constants';\n\nconst MiniContentBlock = (props) => {\n const [isModalOpen, setIsModalOpen] = useState(false)\n const { document, isSmall } = props\n const className = document?.fields?.className\n const desktopBannerImage = document?.fields?.desktopBannerImage\n const mobileBannerImage = document?.fields?.mobileBannerImage\n const eyebrow = document?.fields?.eyebrow\n const headerText = document?.fields?.headerText\n const subText = document?.fields?.subText\n const secondSubText = document?.fields?.secondSubText\n const disclaimer = document?.fields?.disclaimer\n const bannerBackgroundColour = document?.fields?.bannerBackgroundColour\n const textColour = document?.fields?.textColour\n const headerTextStyle = document?.fields?.headerTextStyle\n const subTextStyle = document?.fields?.subTextStyle\n const secondSubTextStyle = document?.fields?.secondSubTextStyle\n const videoId = document?.fields?.videoId || null\n const bannerImagePosition = document?.fields?.bannerImagePosition\n const linkButton = document?.fields?.linkButton || null\n\n const textStyle = {\n color: textColour,\n textAlign: isSmall ? 'center' : 'left',\n width: '100%',\n }\n const customStyles = {\n overlay: {\n position: 'fixed',\n top: '0px',\n left: '0px',\n right: '0px',\n bottom: '0px',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n content: {\n border: 'none',\n top: '50%',\n left: '50%',\n right: 'auto',\n bottom: 'auto',\n padding: '0',\n marginRight: '-50%',\n transform: 'translate(-50%, -50%)',\n maxWidth: '100rem',\n width: '90%',\n },\n }\n\n const getUpdatedStyles = (styleType) => {\n const styleObject = isSmall ? styleType?.mobile : styleType?.desktop\n\n return {\n ...textStyle,\n ...styleObject,\n }\n }\n\n const closeModal = () => {\n setIsModalOpen(false)\n }\n\n const renderVideo = () => {\n return \n }\n const renderImage = () => {\n return (\n
\n \n
\n )\n }\n\n const renderText = () => {\n return (\n
\n {eyebrow &&

}\n {headerText &&

}\n {subText &&

}\n {secondSubText && (\n \n )}\n {linkButton?.fields?.url && (\n \n {linkButton?.fields?.title}\n \n )}\n {disclaimer &&

}\n

\n )\n }\n const renderMiniContentBlock = () => {\n switch (bannerImagePosition) {\n case 'Left':\n return (\n <>\n {renderImage()}\n {renderText()}\n \n )\n case 'Right':\n return (\n <>\n {renderText()}\n {renderImage()}\n \n )\n default:\n return (\n <>\n {renderImage()}\n {renderText()}\n \n )\n }\n }\n\n return (\n <>\n {isModalOpen && (\n \n
\n {renderVideo()}\n
\n
\n )}\n
\n {!isSmall && renderMiniContentBlock()}\n {isSmall && (\n <>\n {renderImage()}\n {renderText()}\n \n )}\n
\n \n )\n}\n\nMiniContentBlock.propTypes = {\n document: PropTypes.object,\n isSmall: PropTypes.boolean,\n}\nexport default mediaQueryHOC(MiniContentBlock)\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9302],{99302:function(e,l,n){n.r(l);var t=n(930),i=n.n(t),o=n(67294),s=n(29238),r=n.n(s),u=n(48084),a=n(83253),d=n.n(a),c=n(71357),m=n(94184),f=n.n(m),b=n(24036),v=n(85893);function h(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);l&&(t=t.filter((function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable}))),n.push.apply(n,t)}return n}function p(e){for(var l=1;l