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G,OAAOA,IAAIA,EAAEE,WAAWR,GAAGM,EAAEE,WAAWT,GAAGO,EAAEE,WAAWhB,GAAGc,EAAEE,WAAWf,GAAGa,EAAEE,WAAWZ,GAAGU,EAAEE,WAAWN,GAAGI,EAAEE,WAAWL,GAAGG,EAAEE,WAAWJ,GAAGE,EAAEE,WAAWP,EAAE,EAAE7B,EAAQ8D,OAAO7B,mBCXjUlC,EAAOC,QAAU,EAAjB","sources":["webpack://nikon-client/./components/molecules/ImageMasonryItem/ImageMasonryItem.tsx","webpack://nikon-client/./utility/hooks/useMasonryLayout.ts","webpack://nikon-client/./components/molecules/ImageMasonry/ImageMasonry.tsx","webpack://nikon-client/./components/organisms/ImageGalleryBlock/ImageGalleryBlock.tsx","webpack://nikon-client/./node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://nikon-client/./node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js","webpack://nikon-client/./node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"],"sourcesContent":["import { ICameraImage } from '@models/ICameraImage';\nimport ImageLightBox from '@molecules/ImageLightBox/ImageLightBox';\nimport useMediaQuery from '@utils/hooks/useMediaQuery';\nimport classNames from 'classnames';\n\ninterface Props extends ICameraImage {\n readonly className?: string;\n readonly isDoubleSize?: boolean;\n readonly gap: number;\n readonly width: number;\n readonly contentIds: string[];\n readonly dataTestId?: string;\n}\n\nconst ImageMasonryItem = ({\n className,\n isDoubleSize = false,\n gap,\n width,\n dataTestId,\n ...props\n}: Props) => {\n const { image, componentName } = props;\n const isBelowXLargeDesktop = useMediaQuery(1900);\n if (!image?.desktop?.url) return null;\n\n // (original height / original width) x new width = new height\n const calculatedHeight = Math.floor(\n (image.desktop.height / image.desktop.width) * width\n );\n const height =\n !isBelowXLargeDesktop && isDoubleSize\n ? calculatedHeight * 2\n : calculatedHeight;\n\n return (\n \n \n \n );\n};\n\nexport default ImageMasonryItem;\n","/* We were initially using the react-masonry-component (https://www.npmjs.com/package/react-masonry-component)\nfor rendering the masonry layout, but this library is not supported by React 18. \nThe alternative was to implement a custom solution using the core library\nthat is also used by react-masonry-component, i.e. masonry-layout (https://www.npmjs.com/package/masonry-layout).\nThe approach below partially follows the approach used \nhere - https://github.com/eiriklv/react-masonry-component/blob/master/lib/index.js - which could be used for further\nreferences if any more changes are needed to our logic in the future.\nThe library was first imported in order to get the type and then the main library had to be conditionally\nimported so it is only used on the client side, otherwise this will crash when used with \nthe server in place since the window object used within will be undefined on the server side. */\n\nimport { RefObject, useCallback, useEffect, useRef } from 'react';\nimport MasonryLayoutType from 'masonry-layout';\n\nconst MasonryLayout =\n typeof window !== 'undefined' ? require('masonry-layout') : null;\n\ninterface MasonryConfig {\n readonly columnWidth: string | number;\n readonly itemSelector: string;\n readonly gutter: number;\n readonly horizontalOrder: boolean;\n}\n\nconst useMasonryLayout = (\n containerRef: RefObject,\n { columnWidth, itemSelector, gutter, horizontalOrder }: MasonryConfig\n) => {\n const masonryInstance = useRef(null);\n const latestKnownItems = useRef([]);\n\n const getCurrentItems = useCallback(() => {\n if (!containerRef.current) return [];\n\n return Array.from(\n containerRef.current.querySelectorAll(itemSelector)\n ) as HTMLElement[];\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [itemSelector]);\n\n const initializeMasonry = useCallback(async () => {\n if (!containerRef.current) return;\n\n masonryInstance.current = new MasonryLayout(containerRef.current, {\n columnWidth,\n itemSelector,\n gutter,\n horizontalOrder,\n });\n latestKnownItems.current = getCurrentItems();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [columnWidth, itemSelector, gutter, horizontalOrder, getCurrentItems]);\n\n useEffect(() => {\n initializeMasonry();\n\n return () => {\n masonryInstance.current?.destroy?.();\n };\n }, [initializeMasonry]);\n\n useEffect(() => {\n const currentItems = getCurrentItems();\n const newItems = currentItems.filter(\n (item) => latestKnownItems.current.indexOf(item) === -1\n );\n const pivotIndex = latestKnownItems.current[0]\n ? currentItems.indexOf(latestKnownItems.current[0])\n : 0;\n const prependedItems = newItems.filter(\n (item) => currentItems.indexOf(item) < pivotIndex\n );\n const appendedItems = newItems.filter(\n (item) => prependedItems.indexOf(item) === -1\n );\n const removedItems = latestKnownItems.current.filter(\n (item) => currentItems.indexOf(item) === -1\n );\n\n latestKnownItems.current = currentItems;\n\n if (removedItems.length) {\n masonryInstance.current?.remove?.(removedItems);\n }\n if (appendedItems.length) {\n masonryInstance.current?.appended?.(appendedItems);\n }\n if (prependedItems.length) {\n masonryInstance.current?.prepended?.(prependedItems);\n }\n\n masonryInstance.current?.reloadItems?.();\n masonryInstance.current?.layout?.();\n });\n};\n\nexport default useMasonryLayout;\n","import { ResizeObserver } from '@juggle/resize-observer';\nimport { IImageMasonry } from '@models/IImageMasonry';\nimport ImageMasonryItem from '@molecules/ImageMasonryItem/ImageMasonryItem';\nimport useMasonryLayout from '@utils/hooks/useMasonryLayout';\nimport classNames from 'classnames';\nimport { useRef } from 'react';\nimport useMeasure from 'react-use-measure';\n\nconst ImageMasonry = ({ images, language }: IImageMasonry) => {\n // Pollyfill is for storybook only, but it will get bundled into the output bundle sooo\n const [columnSizerRef, columnSizerBounds] = useMeasure({\n polyfill: ResizeObserver,\n });\n const masonryContainerRef = useRef(null);\n const columnSizerClassName = 'grid-sizer';\n const itemClassName = 'grid-item';\n const gutter = 16;\n\n useMasonryLayout(masonryContainerRef, {\n columnWidth: `.${columnSizerClassName}`,\n itemSelector: `.${itemClassName}`,\n gutter,\n horizontalOrder: true,\n });\n\n return (\n
\n \n
\n\n {images.map((cameraImage, index) => (\n meta?.contentLink as string)}\n dataTestId={`Image-Masonry-Item-${index}`}\n />\n ))}\n
\n
\n );\n};\n\nexport default ImageMasonry;\n","import { IImageGalleryBlock } from '@models/IImageGalleryBlock';\nimport { ILightBoxImage } from '@models/ILightBoxImage';\nimport ImageMasonry from '@molecules/ImageMasonry/ImageMasonry';\nimport ListingResultsContainer from '@molecules/ListingResultsContainer/ListingResultsContainer';\nimport LoadMoreListing from '@molecules/LoadMoreListing/LoadMoreListing';\nimport ContentFilters from '@organisms/ContentFilters/ContentFilters';\nimport useListingComponentProps from '@utils/hooks/useListingComponentProps';\nimport classNames from 'classnames';\nimport { AnimatePresence, motion } from 'framer-motion';\n\nconst ImageGalleryBlock = (props: IImageGalleryBlock) => {\n const {\n anchorId = '',\n componentName,\n endpoint,\n galleryId,\n imageCountText,\n showExpandedFilters,\n liveFeed,\n liveFeedLabel,\n sectionTitle,\n showFacets,\n showTotalImages,\n title,\n } = props;\n\n const persistingParams = { galleryId: [galleryId] };\n\n const { results, ...listingProps } = useListingComponentProps({\n ...props,\n endpoint: `/${endpoint}`,\n persistingParams,\n });\n\n if (!results?.length) return null;\n\n return (\n \n
\n
\n {sectionTitle && (\n

\n {sectionTitle}\n

\n )}\n {showTotalImages && (\n
\n \n {!listingProps.loading && (\n \n {imageCountText && (\n

\n {listingProps.totalNumberResults || 0}\n {imageCountText}\n

\n )}\n \n )}\n
\n
\n )}\n\n {!showTotalImages && (\n
\n \n {title}\n \n {liveFeed && liveFeedLabel && (\n \n {liveFeedLabel}\n \n \n \n \n )}\n
\n )}\n
\n {showFacets && (\n \n )}\n
\n
\n
\n\n \n \n \n\n {results?.length > 0 && results.length < listingProps.total && (\n
\n
\n \n
\n
\n )}\n \n );\n};\n\nexport default ImageGalleryBlock;\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n"],"names":["_ref","className","isDoubleSize","gap","width","dataTestId","props","image","componentName","isBelowXLargeDesktop","useMediaQuery","desktop","url","calculatedHeight","Math","floor","height","React","createElement","tabIndex","classNames","style","marginBottom","ImageLightBox","_extends","imageClasses","showImageDataByDefault","MasonryLayout","window","require","useMasonryLayout","containerRef","columnWidth","itemSelector","gutter","horizontalOrder","masonryInstance","useRef","latestKnownItems","getCurrentItems","useCallback","current","Array","from","querySelectorAll","initializeMasonry","async","useEffect","destroy","currentItems","newItems","filter","item","indexOf","pivotIndex","prependedItems","appendedItems","removedItems","length","remove","appended","prepended","reloadItems","layout","images","language","columnSizerRef","columnSizerBounds","useMeasure","polyfill","ResizeObserver","masonryContainerRef","columnSizerClassName","itemClassName","ref","map","cameraImage","index","ImageMasonryItem","key","contentIds","_ref2","meta","contentLink","anchorId","endpoint","galleryId","imageCountText","showExpandedFilters","liveFeed","liveFeedLabel","sectionTitle","showFacets","showTotalImages","title","persistingParams","results","listingProps","useListingComponentProps","id","AnimatePresence","loading","motion","div","animate","opacity","exit","initial","transition","duration","totalNumberResults","ContentFilters","ListingResultsContainer","noResultsClassName","errorClassName","ImageMasonry","total","LoadMoreListing","pageSize","reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","type","KNOWN_STATICS","name","prototype","caller","callee","arguments","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","defineProperty","Object","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","module","exports","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","concat","targetStatics","sourceStatics","i","descriptor","e","b","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf"],"sourceRoot":""}