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EAAAyG,UAAA,EAAA7G,EAAA8G,eAAA,EAAAlG,EAAA,GAAAR,EAAA2G,WAAA,aAAApG,EAAAqG,MAAA,KAAArG,EAAA,WAAAQ,EAAAqE,GAAA,EAAApF,EAAA0F,QAAA,EAAAC,SAAA,GAAA5E,EAAAqE,GAAA,EAAAxE,EAAAd,OAAA,KAAAqF,SAAA,GAAApE,EAAAqE,GAAA,EAAAlF,EAAA2G,EAAA,EAAAxC,UAAA,eAAA3D,EAAAf,EAAAkC,EAAA5B,EAAAkF,SAAA,GAAApE,EAAAqE,GAAA,SAAAb,IAAA7E,EAAA2E,UAAAhE,EAAAyF,GAAAjG,EAAA,cAAAS,EAAAqD,IAAAxD,EAAAgB,IAAAf,GAAA,GAAA0G,OAAAtG,CAAA,OAAAT,EAAAgH,YAAA,EAAA3F,gBAAA,UAAAG,OAAA,OAAAiE,iBAAA,GAAA9D,WAAA","sources":["webpack://_N_E/./components/Image/Img/Img.js","webpack://_N_E/"],"sourcesContent":["import React, { useContext, useCallback, useState, useEffect, useRef, Suspense } 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\";\nimport Loader from '../../../adapters/helpers/Loader';\nimport { SpotlightWaitlistConstants } from '../../../adapters/helpers/Constants';\nimport Image from 'next/image';\n\nexport default function Img(props) {\n const {\n imageId,\n contentImageId,\n elemId,\n alt,\n transformations,\n customClassName,\n alignmentClassName,\n format,\n noLazyLoad,\n resetImage,\n ariaHidden,\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 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 useEffect(() => {\n window.addEventListener(\"resize\", windowResize);\n windowResize();\n return () => {\n window.removeEventListener(\"resize\", windowResize);\n };\n }, []);\n\n function windowResize() {\n setWindowWidth(window.innerWidth);\n }\n\n useEffect(() => {\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 }, [resetImage]);\n\n useIsomorphicLayoutEffect(updateWidth, []);\n\n let finalTransformations = `w_${width !== 0 ? width : \"auto\"}${\n transformations ? \",\" + transformations : \"\"\n },q_auto,f_${format}`;\n if (isPreload) {\n finalTransformations = `w_${\n windowWidth < ImageConstants.defaultDesktopWidth\n ? ImageConstants.defaultWidth\n : width !== 0\n ? width\n : \"auto\"\n }${transformations ? \",\" + transformations : \"\"},q_auto,f_${format}`;\n }\n\n const preloadImageUrl =\n contentImageId &&\n optimizeImage(ImageFactory.buildContentfullImageUrl(contentImageId));\n let url =\n contentImageId &&\n optimizeImage(\n ImageFactory.buildContentfullImageUrlByWidth(contentImageId, width)\n );\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 \n )}\n {!noLazyLoad && !isPreload ? (\n \n {props.hasAssetParallax && !isIE() ? (\n }>\n \n \n ) : (\n }>\n \n \n )}\n \n ) : props.hasAssetParallax && !isIE() ? (\n }>\n \n \n ) : (\n }>\n {alt\n \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 elemId: 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 // updates cached values after image dimensions have loaded\n parallaxController.update();\n }, [parallaxController]);\n\n return (\n }>\n \n \n \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};\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7273],{7273:function(e,a,t){t.r(a),t.d(a,{default:function(){return b}});var s=t(67294),n=t(1216),i=t(77776),r=t(9476),l=t(23493),c=t.n(l),o=t(9008),d=t.n(o),u=t(42456),f=t(71357),m=t(53633),h=t(8996),x=t(24036),w=t(88726),g=t(47322),p=t(25675),j=t.n(p),v=t(85893);function b(e){e.imageId;var a=e.contentImageId,t=e.elemId,i=e.alt,r=e.transformations,l=e.customClassName,o=e.alignmentClassName,p=e.format,b=e.noLazyLoad,k=e.resetImage,N=e.ariaHidden,y=(0,s.useRef)(null),I=(0,s.useRef)(null),_=(0,s.useState)(0),L=_[0],E=_[1],P=(0,s.useState)(x.j6.defaultWidth),R=P[0],S=P[1],z=e.isPreload,H=e.isBannerImage,A=\"ob-mainAsset-wrapper\";function B(){y.current&&E((0,m.V)(y.current.getBoundingClientRect().width))}function W(){S(window.innerWidth)}o&&(A+=\" \".concat(o)),l&&(A+=\" \".concat(l)),(0,s.useEffect)((function(){var e=c()(B,100);return window.addEventListener(\"resize\",e),function(){window.removeEventListener(\"resize\",e),e.cancel()}}),[]),(0,s.useEffect)((function(){return window.addEventListener(\"resize\",W),W(),function(){window.removeEventListener(\"resize\",W)}}),[]),(0,s.useEffect)((function(){if(k&&I.current){var e=I.current.src;I.current.src=\"\",setTimeout((function(){I.current.src=e}),0)}}),[k]),(0,f.LI)(B,[]);\"w_\".concat(0!==L?L:\"auto\").concat(r?\",\"+r:\"\",\",q_auto,f_\").concat(p);z&&\"w_\".concat(R