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AAAC,CAAA,SAAAF,EAAA6G,UAAA,CAAA5G,EAAAC,EAAA,GAAAA,GAAAA,EAAA0G,GAAA,UAAA3G,CAAA,CAAAC,CAAA,SAAAF,EAAA6G,UAAA,CAAA5G,EAAAC,EAAA,OAAAW,GAAA,GAAA4C,EAAAnB,GAAA,EAAA2B,EAAA,CAAA6C,SAAAjG,CAAA,YAAAX,CAAA,EAAAiD,EAAA4D,SAAA,CAAA9G,CAAAA,EAAAsG,OAAA,IAAAhD,EAAAjD,EAAA,EAAA4D,GAAA,IAAAjB,EAAAiB,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 dynamic from 'next/dynamic';\nimport 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 Loader from '../../adapters/helpers/Loader';\n\nconst Heading = dynamic(() => import('../Heading/Heading'));\nconst Disclaimer = dynamic(() => import('../Disclaimer/Disclaimer'));\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 {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\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 s},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 u(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 a(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)\"),u=l(\"(max-width: 1023px)\");return(0,o.jsx)(e,a({isXSmall:n,isSmall:r,isMedium:i,isLarge:c,isXLarge:u},t))}},f=[],p={currentProductIndex:0},h=function(e){p=a(a({},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 S}});var r=n(7980),i=n.n(r),c=n(33227),o=n.n(c),u=n(88361),a=n.n(u),s=n(85971),l=n.n(s),d=n(52715),f=n.n(d),p=n(91193),h=n.n(p),b=n(5152),v=n.n(b),m=n(67294),y=n(40483),g=n(24036),w=n(8996),x=n(71357),j=n(47322),k=n(85893);function O(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 T=v()((function(){return Promise.all([n.e(9238),n.e(5061)]).then(n.bind(n,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}}),_=v()((function(){return Promise.all([n.e(9238),n.e(3803)]).then(n.bind(n,77770))}),{loadableGenerated:{webpack:function(){return[77770]}}}),P=function(e){l()(n,e);var t=O(n);function n(e){var r;return o()(this,n),(r=t.call(this,e)).block=new y.Z(e),r}return a()(n,[{key:\"renderTile\",value:function(e,t){var n=new y.Z(e),r=this.getTileId(n);n.setFieldValue(g.Tp.anchorId,r);var i=t%2==0?g.Tp.left:g.Tp.right;return(0,k.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 g.Tp.sideBySide+e.getAnchorId()}},{key:\"render\",value:function(){var e=this,t=\"ob-side-by-side \"+this.props.className,n=this.block.getFieldValue(g.Tp.blocks),r=this.block.getFieldValue(g.Tp.title),c=this.block.getFieldValue(g.Tp.disclaimer),o=this.block.getFieldValue(g.Tp.name),u=this.block.getFieldValue(g.Tp.hasDivider),a=this.block.getFieldValue(g.Tp.anchorId)||(0,w.vG)(o),s=this.block.getFieldValue(g.Tp.flipOnMobile)||!1,l=i()(n);if(s&&l.length>=2)for(var d=0;d