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2F,EAAAzG,CAAA,MAAAC,EAAAD,EAAA0G,MAAA,CAAAxG,EAAAF,EAAAyG,CAAA,CAAAxF,EAAAjB,EAAAmD,CAAA,CAAA3B,EAAAxB,EAAA6E,GAAA,CAAApD,EAAAzB,EAAAoC,GAAA,CAAAV,EAAA1B,EAAA+G,YAAA,CAAApF,EAAA3B,EAAA2G,EAAA,CAAA/E,EAAA5B,EAAA8C,UAAA,CAAAlC,EAAA,GAAAT,EAAA6G,UAAA,EAAAhG,EAAAiG,eAAA,EAAApF,EAAA,GAAA1B,EAAA+G,WAAA,aAAAtG,EAAAuG,MAAA,KAAAvG,EAAA,WAAAqB,EAAAkE,GAAA,EAAArF,EAAAsG,EAAA,EAAAhC,UAAA,eAAAqB,EAAAvG,EAAAiD,EAAAlC,EAAAiF,SAAA,GAAAjE,EAAAkE,GAAA,SAAAb,IAAArF,EAAAmF,UAAA1D,EAAAiF,GAAAhF,EAAA,cAAAC,EAAAiD,IAAArD,EAAAY,IAAAX,GAAA,GAAA4F,OAAAxF,CAAA,KAAAN,EAAA+F,YAAA,EAAAjF,gBAAA,UAAAG,OAAA,OAAA+D,iBAAA,GAAA3D,WAAA,mBAAA5C,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAF,EAAAuH,OAAA,CAAArH,EAAA","sources":["webpack://_N_E/./adapters/cloudinary/ImageFactory.js","webpack://_N_E/./components/Image/BackgroundImage/BackgroundImage.helpers.js","webpack://_N_E/./components/Image/Img/Img.js","webpack://_N_E/./node_modules/next/head.js","webpack://_N_E/"],"sourcesContent":["export function buildContentfullImageUrl(assetUrl, transformations) {\n return transformations ? 'https:'+ assetUrl + \"?\" + transformations : 'https:'+ assetUrl; \n}\n\nexport function buildContentfullImageUrlByHeight(assetUrl, height = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?h=\"+ height ;\n}\n\nexport function buildContentfullImageUrlByWidth(assetUrl, width = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?w=\"+ width ; \n}\n\nexport function imageContentfullSrc(assetUrl, transformations) {\n return buildContentfullImageUrl(assetUrl, transformations);\n}\n\nexport function imageContentfullDpr(assetUrl, transformations = '') {\n if (!transformations) {\n return buildContentfullImageUrl(assetUrl);\n }\n\n return buildContentfullImageUrl(assetUrl, transformations)\n}\n\n\nexport default {\n buildContentfullImageUrl,\n buildContentfullImageUrlByHeight,\n buildContentfullImageUrlByWidth,\n imageContentfullDpr,\n imageContentfullSrc,\n};\n","import ImageFactory from '../../../adapters/cloudinary/ImageFactory';\nimport { optimizeImage } from '../../../adapters/helpers/pagespeedHelper';\n\nexport const roundUpTheSize = (width) => {\n return Math.floor(width / 100) * 100 + 100;\n}\n\nexport const getBackgroundImage = (contentImageId, width, transformations, format) => {\n if (contentImageId) {\n return `url(${optimizeImage(ImageFactory.buildContentfullImageUrlByWidth(contentImageId, width, transformations, format))})`\n }\n}\n","import React, { useContext, useCallback, useState, useEffect, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport LazyLoad from 'react-lazyload';\nimport { Parallax } from 'react-scroll-parallax';\nimport { ParallaxContext } from 'react-scroll-parallax/cjs/helpers';\nimport throttle from 'lodash/throttle';\nimport Head from 'next/head'\nimport ImageFactory from '../../../adapters/cloudinary/ImageFactory';\nimport { useIsomorphicLayoutEffect } from '../../../adapters/helpers/Hooks';\nimport { roundUpTheSize } from '../BackgroundImage/BackgroundImage.helpers'\nimport { isIE } from '../../../adapters/helpers/Utils';\nimport { ImageConstants } from '../../../adapters/helpers/Constants';\nimport { optimizeImage } from '../../../adapters/helpers/pagespeedHelper';\n\nexport default function Img(props) {\n\n const {\n contentImageId,\n elemId,\n alt,\n transformations,\n customClassName,\n alignmentClassName,\n format,\n noLazyLoad,\n resetImage,\n ariaHidden,\n imageFormat,\n imageQuality\n } = props;\n\n const nodeRef = useRef(null);\n const nodeImg = useRef(null);\n const [width, setWidth] = useState(0);\n let [windowWidth, setWindowWidth] = useState(ImageConstants.defaultWidth);\n const isPreload = props.isPreload;\n const isBannerImage = props.isBannerImage\n let classname= 'ob-mainAsset-wrapper';\n if (alignmentClassName) classname += ` ${alignmentClassName}`;\n if (customClassName) classname += ` ${customClassName}`;\n\n function updateWidth() {\n if (nodeRef.current) {\n setWidth(roundUpTheSize(nodeRef.current.getBoundingClientRect().width));\n }\n }\n\n useEffect(\n () => {\n const handleResize = throttle(updateWidth, 100);\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n handleResize.cancel();\n };\n },\n []\n );\n\n useEffect(()=>{ \n window.addEventListener('resize', windowResize)\n windowResize()\n return(()=>{\n window.removeEventListener('resize', windowResize)\n })\n \n },[])\n\n function windowResize() {\n setWindowWidth(window.innerWidth);\n }\n\n useEffect(\n () => {\n if (resetImage && nodeImg.current) {\n let imgSrc = nodeImg.current.src;\n nodeImg.current.src = '';\n setTimeout(() => {\n nodeImg.current.src = imgSrc;\n }, 0);\n }\n },\n [ resetImage ]\n );\n\n useIsomorphicLayoutEffect(\n updateWidth,\n []\n );\n\n let finalTransformations = `w_${(width !== 0) ? width : 'auto'}${transformations ? ',' + transformations : ''},q_auto,f_${format}`;\n if(isPreload){\n finalTransformations = `w_${windowWidth < ImageConstants.defaultDesktopWidth ? ImageConstants.defaultWidth : (width !== 0) ? width : 'auto'}${transformations ? ',' + transformations : ''},q_auto,f_${format}`\n }\n\n const preloadImageUrl = contentImageId && optimizeImage(ImageFactory.buildContentfullImageUrl(contentImageId), imageFormat, imageQuality);\n let url = contentImageId && optimizeImage(ImageFactory.buildContentfullImageUrlByWidth(contentImageId,width), imageFormat, imageQuality);\n\n // We can't call dpr 1.5/2/3 and add srcset because we don't know if the image really exist.\n // If you call an image of width 500px then this image does not exist cloudinary will provide an auto width image\n // The problem: In this case the 2x image will display a width auto image divided by 2, if 3x it will divided the image by 3.\n // We can't force the user to upload 3x 2x images.\n //const srcSet = (width !== 0) ? ImageFactory.dpr(image, finalTransformations) : undefined;\n\n return (\n \n {isPreload && \n \n }\n {!noLazyLoad && !isPreload ? (\n \n {props.hasAssetParallax && !isIE() ? (\n \n ) : (\n {alt\n )}\n \n ) : props.hasAssetParallax && !isIE() ? (\n \n ) : (\n {alt\n )}\n \n )\n}\n\nImg.defaultProps = {\n transformations: 'c_limit',\n format: 'auto',\n hasAssetParallax: false,\n resetImage: false\n};\n\nImg.propTypes = {\n imageId: PropTypes.string,\n contentImageId: PropTypes.string,\n alt: PropTypes.string,\n scale: PropTypes.string,\n offsetBottom: PropTypes.string,\n offsetTop: PropTypes.string,\n offsetLeft: PropTypes.string,\n offsetRight: PropTypes.string,\n transformations: PropTypes.string,\n className: PropTypes.string,\n customClassName: PropTypes.string,\n alignmentClassName: PropTypes.string,\n format: PropTypes.string,\n noLazyLoad: PropTypes.bool,\n resetImage: PropTypes.bool,\n hasAssetParallax: PropTypes.bool,\n assetX: PropTypes.array,\n assetY: PropTypes.array,\n ariaHidden: PropTypes.bool,\n imageClassName: PropTypes.string,\n isPreload: PropTypes.bool,\n isBannerImage: PropTypes.bool\n};\n\nfunction ParallaxImg({ imgRef, x, y, src, alt, imgClassName, id, ariaHidden}) {\n const parallaxController = useContext(ParallaxContext);\n\n const handleLoad = useCallback(\n () => {\n // updates cached values after image dimensions have loaded\n parallaxController.update();\n },\n [ parallaxController ]\n );\n\n return (\n \n {alt\n \n );\n}\n\nParallaxImg.propTypes = {\n imgRef: PropTypes.oneOfType([\n PropTypes.func, \n PropTypes.shape({ current: PropTypes.any })\n ]),\n x: PropTypes.array,\n y: PropTypes.array,\n src: PropTypes.string,\n alt: PropTypes.string,\n imgClassName: PropTypes.string,\n id: PropTypes.string,\n ariaHidden: PropTypes.bool\n}","module.exports = require('./dist/shared/lib/head')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7273],{42456:function(t,e,a){\"use strict\";function n(t,e){return e?\"https:\"+t+\"?\"+e:\"https:\"+t}e.ZP={buildContentfullImageUrl:n,buildContentfullImageUrlByHeight:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+t+\"?h=\"+e},buildContentfullImageUrlByWidth:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+t+\"?w=\"+e},imageContentfullDpr:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return e?n(t,e):n(t)},imageContentfullSrc:function(t,e){return n(t,e)}}},53633:function(t,e,a){\"use strict\";a.d(e,{V:function(){return i},W:function(){return s}});var n=a(42456),r=a(19271),i=function(t){return 100*Math.floor(t/100)+100},s=function(t,e,a,i){if(t)return\"url(\".concat((0,r.H)(n.ZP.buildContentfullImageUrlByWidth(t,e,a,i)),\")\")}},7273:function(t,e,a){\"use strict\";a.r(e),a.d(e,{default:function(){return w}});var n=a(67294),r=a(1216),i=a(77776),s=a(9476),o=a(23493),l=a.n(o),u=a(9008),c=a.n(u),f=a(42456),d=a(71357),m=a(53633),g=a(8996),h=a(24036),p=a(19271),v=a(85893);function w(t){var e=t.contentImageId,a=t.elemId,i=t.alt,s=t.transformations,o=t.customClassName,u=t.alignmentClassName,w=t.format,C=t.noLazyLoad,b=t.resetImage,j=t.ariaHidden,I=t.imageFormat,N=t.imageQuality,y=(0,n.useRef)(null),_=(0,n.useRef)(null),L=(0,n.useState)(0),P=L[0],E=L[1],k=(0,n.useState)(h.j6.defaultWidth),B=k[0],H=k[1],R=t.isPreload,W=t.isBannerImage,A=\"ob-mainAsset-wrapper\";function U(){y.current&&E((0,m.V)(y.current.getBoundingClientRect().width))}function z(){H(window.innerWidth)}u&&(A+=\" \".concat(u)),o&&(A+=\" \".concat(o)),(0,n.useEffect)((function(){var t=l()(U,100);return window.addEventListener(\"resize\",t),function(){window.removeEventListener(\"resize\",t),t.cancel()}}),[]),(0,n.useEffect)((function(){return window.addEventListener(\"resize\",z),z(),function(){window.removeEventListener(\"resize\",z)}}),[]),(0,n.useEffect)((function(){if(b&&_.current){var t=_.current.src;_.current.src=\"\",setTimeout((function(){_.current.src=t}),0)}}),[b]),(0,d.LI)(U,[]);\"w_\".concat(0!==P?P:\"auto\").concat(s?\",\"+s:\"\",\",q_auto,f_\").concat(w);R&&\"w_\".concat(B