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AApF,GAAA,KAAAwF,KAAA,CAAApD,QAAA,CAAAjC,GAAAA,EAAAsG,GAAA,UAAA7G,CAAA,CAAAC,CAAA,SAAAF,EAAA+G,UAAA,CAAA9G,EAAAC,EAAA,GAAAA,GAAAA,EAAA4G,GAAA,UAAA7G,CAAA,CAAAC,CAAA,SAAAF,EAAA+G,UAAA,CAAA9G,EAAAC,EAAA,OAAAW,GAAA,GAAA6C,EAAApB,GAAA,EAAA4B,EAAA,CAAA8C,SAAAnG,CAAA,cAAAX,CAAA,EAAAQ,EAAAuG,SAAA,CAAAhH,CAAAA,EAAAqG,OAAA,IAAAjD,EAAA/C,EAAA,EAAA6D,GAAA,IAAAlB,EAAAkB,CAAA","sources":["webpack://_N_E/./adapters/helpers/Hooks.js","webpack://_N_E/./components/SideBySideContainer/SideBySideContainer.js","webpack://_N_E/"],"sourcesContent":["import React, { useState, useEffect, useLayoutEffect } from 'react';\n\n// https://github.com/streamich/react-use/blob/master/docs/useIsomorphicLayoutEffect.md\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n\nexport function useMatchMedia(mediaQueryString, initialValue = null) {\n const [match, setMatch] = useState(initialValue);\n\n useEffect(\n () => {\n if(!window.matchMedia) {\n return;\n }\n\n function handleMatch(event) {\n setMatch(event.matches);\n }\n\n const matchMedia = window.matchMedia(mediaQueryString);\n\n setMatch(matchMedia.matches);\n matchMedia.addListener(handleMatch);\n\n return () => {\n matchMedia.removeListener(handleMatch);\n };\n },\n [mediaQueryString]\n );\n\n return match;\n}\n\nexport const mediaQueryHOC = (Component) => {\n function MediaQueryHOC(props) {\n const isXSmall = useMatchMedia('(max-width: 375px)');\n const isSmall = useMatchMedia('(max-width: 479px)');\n const isMedium = useMatchMedia('(max-width: 767px)');\n const isLarge = useMatchMedia('(max-width: 991px)');\n const isXLarge = useMatchMedia('(max-width: 1023px)');\n return (\n \n );\n }\n return MediaQueryHOC;\n};\n\nlet listeners = [];\nlet state = { currentProductIndex: 0};\n\n\nconst setState = (newState) => {\n state = { ...state, ...newState };\n listeners.forEach((listener) => {\n listener(state);\n });\n};\n\nexport const updateCurrentProductIndex = () => {\n const newListener = useState()[1];\n useEffect(() => {\n listeners.push(newListener);\n }, []);\n return [state, setState];\n};\n","import React, {Component,Suspense} from 'react';\nimport Block from '../../adapters/helpers/Block';\nimport PropTypes from 'prop-types';\nimport {SideBySideContainerConstants} from '../../adapters/helpers/Constants';\nimport {createHtmlFriendlyId} from '../../adapters/helpers/Utils';\nimport {mediaQueryHOC} from '../../adapters/helpers/Hooks';\nimport dynamic from 'next/dynamic';\nconst Heading = dynamic(() => import('../Heading/Heading'));\nconst Disclaimer = dynamic(() => import('../Disclaimer/Disclaimer'));\nimport Loader from '../../adapters/helpers/Loader';\nimport LazyLoad from 'react-lazyload';\n\nclass SideBySideContainer extends Component {\n\n constructor(props) {\n super(props);\n this.block = new Block(props);\n }\n\n renderTile(block, index) {\n const blockObj = new Block(block);\n const tileId = this.getTileId(blockObj);\n blockObj.setFieldValue(SideBySideContainerConstants.anchorId, tileId);\n\n const sideIndicator = (index % 2 == 0) ? SideBySideContainerConstants.left : SideBySideContainerConstants.right;\n\n return (\n
\n {blockObj.renderBlockFromDocument()}\n
\n );\n }\n\n getTileId(blockObj) {\n return SideBySideContainerConstants.sideBySide + blockObj.getAnchorId();\n }\n\n render() {\n let className = 'ob-side-by-side ' + this.props.className;\n const containerBlocks = this.block.getFieldValue(SideBySideContainerConstants.blocks);\n const title = this.block.getFieldValue(SideBySideContainerConstants.title);\n const disclaimer = this.block.getFieldValue(SideBySideContainerConstants.disclaimer);\n const name = this.block.getFieldValue(SideBySideContainerConstants.name);\n const hasDivider = this.block.getFieldValue(SideBySideContainerConstants.hasDivider);\n const anchorId = this.block.getFieldValue(SideBySideContainerConstants.anchorId) || createHtmlFriendlyId(name);\n const flipOnMobile = this.block.getFieldValue(SideBySideContainerConstants.flipOnMobile) || false;\n let containerBlocksCopyMobile = [...containerBlocks];\n\n if (flipOnMobile && containerBlocksCopyMobile.length >= 2) {\n // this works best with side by sides that only have 2 elements\n for (let i = 0; i < containerBlocksCopyMobile.length; i++) {\n // if element is on the right, swap with previous element\n if (i % 2 === 1) {\n [containerBlocksCopyMobile[i - 1], containerBlocksCopyMobile[i]] = [containerBlocksCopyMobile[i], containerBlocksCopyMobile[i - 1]];\n }\n }\n }\n\n\n return (\n \n }>\n
\n {title &&\n
\n {title}\n

{this.block.getFieldValue(SideBySideContainerConstants.description)}

\n
\n }\n }>\n
\n { flipOnMobile ?\n this.props.isMedium ?\n containerBlocksCopyMobile && containerBlocksCopyMobile.map((block, index) => {\n return this.renderTile(block, index);\n }) :\n containerBlocks && containerBlocks.map((block, index) => {\n return this.renderTile(block, index);\n }) :\n containerBlocks && containerBlocks.map((block, index) => {\n return this.renderTile(block, index);\n })\n }\n
\n
\n {disclaimer &&\n \n }\n
\n
\n
\n );\n }\n}\n\nSideBySideContainer.propTypes = {\n className: PropTypes.string,\n isMedium: PropTypes.bool\n};\n\nexport default mediaQueryHOC(SideBySideContainer)\n// This export is for unit testing (do not remove) :\nexport const SideBySideContainerTest = SideBySideContainer;\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6040],{71357:function(e,t,n){n.d(t,{LI:function(){return a},Ui:function(){return d},ag:function(){return l},y3:function(){return b}});var r=n(930),i=n.n(r),c=n(67294),o=n(85893);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,n=(0,c.useState)(t),r=n[0],i=n[1];return(0,c.useEffect)((function(){if(window.matchMedia){var t=window.matchMedia(e);return i(t.matches),t.addListener(n),function(){t.removeListener(n)}}function n(e){i(e.matches)}}),[e]),r}var d=function(e){return function(t){var n=l(\"(max-width: 375px)\"),r=l(\"(max-width: 479px)\"),i=l(\"(max-width: 767px)\"),c=l(\"(max-width: 991px)\"),s=l(\"(max-width: 1023px)\");return(0,o.jsx)(e,u({isXSmall:n,isSmall:r,isMedium:i,isLarge:c,isXLarge:s},t))}},f=[],p={currentProductIndex:0},h=function(e){p=u(u({},p),e),f.forEach((function(e){e(p)}))},b=function(){var e=(0,c.useState)()[1];return(0,c.useEffect)((function(){f.push(e)}),[]),[p,h]}},36040:function(e,t,n){n.r(t),n.d(t,{SideBySideContainerTest:function(){return F}});var r=n(7980),i=n.n(r),c=n(33227),o=n.n(c),s=n(88361),u=n.n(s),a=n(85971),l=n.n(a),d=n(52715),f=n.n(d),p=n(91193),h=n.n(p),b=n(67294),v=n(40483),m=n(24036),y=n(8996),g=n(71357),x=n(5152),j=n.n(x),w=n(47322),k=n(1216),O=n(85893);function T(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var _=j()((function(){return Promise.all([n.e(9238),n.e(5061)]).then(n.bind(n,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}}),P=j()((function(){return Promise.all([n.e(9238),n.e(3803)]).then(n.bind(n,77770))}),{loadableGenerated:{webpack:function(){return[77770]}}}),S=function(e){l()(n,e);var t=T(n);function n(e){var r;return o()(this,n),(r=t.call(this,e)).block=new v.Z(e),r}return u()(n,[{key:\"renderTile\",value:function(e,t){var n=new v.Z(e),r=this.getTileId(n);n.setFieldValue(m.Tp.anchorId,r);var i=t%2==0?m.Tp.left:m.Tp.right;return(0,O.jsx)(\"div\",{className:\"ob-side-by-side__column ob-side-by-side__\".concat(i,\"-side\"),children:n.renderBlockFromDocument()},r)}},{key:\"getTileId\",value:function(e){return m.Tp.sideBySide+e.getAnchorId()}},{key:\"render\",value:function(){var e=this,t=\"ob-side-by-side \"+this.props.className,n=this.block.getFieldValue(m.Tp.blocks),r=this.block.getFieldValue(m.Tp.title),c=this.block.getFieldValue(m.Tp.disclaimer),o=this.block.getFieldValue(m.Tp.name),s=this.block.getFieldValue(m.Tp.hasDivider),u=this.block.getFieldValue(m.Tp.anchorId)||(0,y.vG)(o),a=this.block.getFieldValue(m.Tp.flipOnMobile)||!1,l=i()(n);if(a&&l.length>=2)for(var d=0;d