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,IAA7BgC,EAAW5G,QAAQ4E,GACnB,OACJ,MAAMM,EAAQoB,EAAYzN,IAAI+L,GAC9B,IAAKM,EACD,OACJ,MAAM6B,EAAiBJ,EAAY3G,QAAQ4E,GAgB3CsB,EAAiBc,OAAOD,EAAgB,EAAG5E,EAAAA,cAAoByB,EAAe,CAAEgB,IAAKK,EAAYC,GAAQ1C,WAAW,EAAOqB,eAf5GoD,KACXX,EAAY7B,OAAOG,GACnBuB,EAAQ1B,OAAOG,GAEf,MAAMsC,EAAcb,EAAgBjV,QAAQ+V,WAAWC,GAAiBA,EAAaxC,MAAQA,IAG7F,GAFAyB,EAAgBjV,QAAQ4V,OAAOE,EAAa,IAEvCf,EAAQhW,KAAM,CAEf,GADAkW,EAAgBjV,QAAUyU,GACA,IAAtB7D,EAAU5Q,QACV,OACJiU,IACAxB,GAAkBA,GACtB,GAE+IC,OAAQA,EAAQC,sBAAuBA,EAAuBC,KAAMA,GAAQkB,GAAO,IAI1OgB,EAAmBA,EAAiB9P,KAAK8O,IACrC,MAAMN,EAAMM,EAAMN,IAClB,OAAOuB,EAAQkB,IAAIzC,GAAQM,EAAU/C,EAAAA,cAAoByB,EAAe,CAAEgB,IAAKK,EAAYC,GAAQ1C,WAAW,EAAMuB,sBAAuBA,EAAuBC,KAAMA,GAAQkB,EAAO,IAE/K,eAARoC,EAAAA,GACS,SAATtD,GACAkC,EAAiBjb,OAAS,GAC1Bsc,QAAQC,KAAK,kJAETrF,EAAAA,cAAoBA,EAAAA,SAAgB,KAAMgE,EAAQhW,KACpD+V,EACAA,EAAiB9P,KAAK8O,IAAUuC,EAAAA,EAAAA,cAAavC,KAAQ,C","sources":["Helpers/getExtraSpacing.ts","Components/Shared/Widget/WidgetContainer.tsx","Components/Explore/ExploreMap/ExploreMapButton.tsx","Components/Explore/ExploreMap/ExploreMap.tsx","Components/Explore/ExploreList/ExploreItemMedia.tsx","Components/Explore/ExploreList/ExploreItemTag.tsx","Components/Explore/ExploreList/ExploreItem.tsx","Components/Explore/ExploreList/ExploreListHero.tsx","Components/Explore/ExploreList/ExploreList.tsx","Components/Explore/Explore.tsx","Components/Explore/ExploreContainer.tsx","Components/Explore/ExploreList/explore-list-utils.ts","Components/Explore/explore-utils.ts","Components/NavBarGeneral/NavBarGeneral.tsx","Components/Shared/HeartIcon/HeartIcon.tsx","Components/Shared/LoveButton/LoveButton.tsx","Components/Shared/Modal/ReusableModal.tsx","Components/Shared/ShareButton/ShareButton.tsx","Helpers/PATH.resource.ts","customHooks/useIntersectionObserver.ts","redux/explore-content/explore-content-selectors.ts","../node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/framer-motion/dist/es/utils/use-force-update.mjs"],"sourcesContent":["const getExtraSpacing = (top: number = 0, sign: string = \"+\"): string => {\r\n if(sign === \"+\") {\r\n return `calc(${top}px + var(--top-spacing, 0px))`;\r\n }\r\n else {\r\n return `calc(${top}px - var(--top-spacing, 0px))`;\r\n } \r\n};\r\n\r\nexport default getExtraSpacing;","import React, { useContext, useEffect, useRef, useState } from 'react'\r\nimport getExtraSpacing from '../../../Helpers/getExtraSpacing'\r\nimport './Widget.css'\r\nimport { GlobalContext } from '../../../Context/GlobalContext'\r\n\r\ninterface IWidgetContainerProps {\r\n children: React.JSX.Element\r\n tileRef: React.RefObject\r\n}\r\n\r\nconst WidgetContainer: React.FC = ({\r\n children,\r\n tileRef,\r\n}: IWidgetContainerProps): React.JSX.Element => {\r\n const global = useContext(GlobalContext)\r\n const [widgetHeight, setWidgetHeight] = useState(0)\r\n const [show, setShow] = useState(false)\r\n const ref = useRef(null)\r\n\r\n useEffect(() => {\r\n window.addEventListener('resize', setWidgetSize)\r\n\r\n return function cleanup() {\r\n window.removeEventListener('resize', setWidgetSize)\r\n }\r\n }, [])\r\n\r\n useEffect(() => {\r\n setWidgetSize()\r\n setShow(true)\r\n }, [ref])\r\n\r\n const setWidgetSize = (): void => {\r\n if (!tileRef) {\r\n return\r\n }\r\n\r\n let newWidgetHeight = document.documentElement.clientHeight\r\n\r\n if (global.pageId === 'page--home' || global.pageId === 'page--place') {\r\n newWidgetHeight = newWidgetHeight - 180\r\n }\r\n\r\n setWidgetHeight(newWidgetHeight)\r\n }\r\n\r\n return show ? (\r\n \r\n {children}\r\n \r\n ) : (\r\n <>\r\n )\r\n}\r\n\r\nexport default WidgetContainer\r\n","import React from 'react'\r\nimport { useSelector } from 'react-redux'\r\n\r\n// ASSETS\r\nimport IconSvg, { ICON_TYPE } from '../../Shared/SVG/iconSvg'\r\n\r\n// STORE\r\nimport { useAppDispatch } from '../../../redux/store'\r\nimport {\r\n getExploreContent,\r\n getExploreContentByMyLocation,\r\n} from '../../../redux/explore-content/explore-content-thunks'\r\n\r\nimport { exploreContentRequestPayload } from '../../../redux/explore-content/explore-content-selectors'\r\nimport { updateLocationText } from '../../../redux/explore-content/explore-content-slice'\r\n\r\ninterface iProps {\r\n changeLocation: boolean\r\n clickHandler: () => void\r\n movedCoords: number[]\r\n}\r\n\r\nconst ExploreMapButton = (props: iProps) => {\r\n const dispatch = useAppDispatch()\r\n const requestPayload = useSelector(exploreContentRequestPayload)\r\n const { changeLocation, clickHandler, movedCoords } = props\r\n\r\n return (\r\n {\r\n if (changeLocation) {\r\n void dispatch(\r\n getExploreContent({\r\n ...requestPayload,\r\n location: {\r\n latitude: movedCoords[0],\r\n longitude: movedCoords[1],\r\n },\r\n })\r\n )\r\n dispatch(updateLocationText(''))\r\n clickHandler()\r\n } else {\r\n void dispatch(getExploreContentByMyLocation())\r\n }\r\n }}\r\n >\r\n {changeLocation ? (\r\n <>\r\n Search this location\r\n \r\n ) : (\r\n <>\r\n \r\n Search my location\r\n \r\n )}\r\n \r\n )\r\n}\r\nexport default ExploreMapButton\r\n","import './explore-map.css'\r\nimport React, { useContext, useEffect, useState, Suspense, lazy } from 'react'\r\nimport { useSelector } from 'react-redux'\r\nimport { MapTouchEvent } from 'azure-maps-control'\r\n\r\n// STORE\r\nimport { mapPins } from '../../../redux/explore-content/explore-content-selectors'\r\n\r\n// COMPONENTS\r\nconst AzureMaps = lazy(() => import('../../Maps/AzureMaps/AzureMaps'))\r\nimport ExploreMapButton from './ExploreMapButton'\r\n\r\n// UTILS\r\nimport { isDeepEqual } from '../../../Helpers/utils'\r\n\r\n// INTERFACES\r\nimport { IPin } from '../../../interfaces/interfaces'\r\n\r\n// CONTEXT\r\nimport { GlobalContext } from '../../../Context/GlobalContext'\r\nimport Loader from '../../Shared/Loader/Loader'\r\n\r\nconst ExploreMap = () => {\r\n const global = useContext(GlobalContext)\r\n const pushPins = useSelector(mapPins)\r\n const [cachedPushPins, setCachedPushPins] = useState([])\r\n const [changeLocation, setChangeLocation] = useState(false)\r\n const [movedCoords, setMovedCoords] = useState([])\r\n const [showMap, setShowMap] = useState(false)\r\n\r\n useEffect(() => {\r\n if (!isDeepEqual(cachedPushPins, pushPins) && pushPins.length > 0) {\r\n setCachedPushPins(pushPins)\r\n }\r\n }, [pushPins, cachedPushPins])\r\n\r\n useEffect(() => {\r\n // Delay the rendering of AzureMaps by 2 seconds\r\n const timer = setTimeout(() => {\r\n setShowMap(true)\r\n }, 2000)\r\n\r\n // Clear the timer if the component unmounts\r\n return () => clearTimeout(timer)\r\n }, [])\r\n\r\n return cachedPushPins.length > 0 ? (\r\n
\r\n {global.pageId === 'page--home' ? (\r\n {\r\n setChangeLocation(false)\r\n }}\r\n />\r\n ) : (\r\n <>\r\n )}\r\n
\r\n {showMap ? (\r\n }\r\n >\r\n {\r\n if (e.position) {\r\n const coordinates = e.position.reverse()\r\n setChangeLocation(true)\r\n setMovedCoords(coordinates)\r\n }\r\n }}\r\n />\r\n \r\n ) : (\r\n \r\n )}\r\n
\r\n
\r\n ) : (\r\n <>\r\n )\r\n}\r\nexport default ExploreMap\r\n","import { IKImage, IKVideo } from 'imagekitio-react'\r\nimport React, { useEffect, useMemo, useRef, useState, memo } from 'react'\r\nimport useIntersectionObserver from '../../../customHooks/useIntersectionObserver'\r\nimport { getIframeUrl } from './explore-list-utils'\r\n\r\nexport interface IExploreItemMedia {\r\n altText: string\r\n caption: string\r\n embedCode?: string\r\n height: number\r\n id: number\r\n mediaId: number\r\n mediaTypes: string[]\r\n url: string\r\n width: number\r\n path: string\r\n}\r\n\r\nconst MEDIA_TYPES = {\r\n IMAGE: 'image',\r\n VIDEO: 'video',\r\n IFRAME: 'iframe',\r\n}\r\n\r\nconst ExploreItemMedia = (props: IExploreItemMedia) => {\r\n const size = { height: '200', width: '320' }\r\n const mediaRef = useRef(null)\r\n const [isInView, setIsInView] = useState(false)\r\n\r\n const mediaType = useMemo(() => {\r\n return props.embedCode\r\n ? props.embedCode.includes(' {\r\n if (entries[0].isIntersecting) {\r\n setIsInView(true)\r\n if (mediaType === MEDIA_TYPES.VIDEO) {\r\n void (\r\n mediaRef.current?.querySelector(\r\n 'video'\r\n ) as HTMLVideoElement\r\n )?.play()\r\n }\r\n } else {\r\n if (mediaType !== MEDIA_TYPES.IMAGE) {\r\n setIsInView(false)\r\n }\r\n if (mediaType === MEDIA_TYPES.VIDEO) {\r\n void (\r\n mediaRef.current?.querySelector(\r\n 'video'\r\n ) as HTMLVideoElement\r\n )?.pause()\r\n }\r\n }\r\n },\r\n { root: null, rootMargin: '0px', threshold: 0.1 }\r\n )\r\n\r\n useEffect(() => {\r\n if (mediaRef.current && props.url !== '') {\r\n observe(mediaRef.current)\r\n }\r\n }, [observe, props.url])\r\n\r\n if (props.embedCode) {\r\n if (mediaType === MEDIA_TYPES.VIDEO) {\r\n return (\r\n \r\n \r\n \r\n )\r\n } else {\r\n const src = `${getIframeUrl(props.embedCode)}?autoplay=${isInView ? 1 : 0}&mute=1&muted=true`\r\n return (\r\n \r\n \r\n \r\n )\r\n }\r\n } else {\r\n return (\r\n
\r\n {isInView && props.url ? (\r\n \r\n ) : (\r\n \r\n )}\r\n
\r\n )\r\n }\r\n}\r\n\r\nexport default memo(ExploreItemMedia)\r\n","import React from 'react'\r\nimport { IEntity } from '../../../interfaces/interfaces'\r\nimport { format } from 'date-fns'\r\n\r\ninterface IProps {\r\n item: IEntity\r\n}\r\n\r\nconst ExploreItemTag = (props: IProps) => {\r\n const { item } = props\r\n const currentDate = new Date()\r\n const dateFormat = 'd MMMM yyyy'\r\n const reopenDate = item.reopenDate ? item.reopenDate : null\r\n const endDate = item.contentType === 'Event' ? item.endDate : null\r\n const publishDate = item.contentType === 'Article' ? item.publishDate : null\r\n const isOpen = item.contentType === 'Attraction' ? item.isOpen : null\r\n\r\n return (\r\n
\r\n {(endDate ||\r\n (isOpen && !reopenDate) ||\r\n publishDate ||\r\n (reopenDate && reopenDate > currentDate)) && (\r\n \r\n \r\n \r\n \r\n {endDate\r\n ? 'Available to ' +\r\n format(new Date(endDate), dateFormat)\r\n : null}\r\n {isOpen && !reopenDate ? 'Open Now' : null}\r\n {publishDate\r\n ? format(new Date(publishDate), dateFormat)\r\n : null}\r\n {reopenDate\r\n ? 'Reopens on ' +\r\n format(new Date(reopenDate), dateFormat)\r\n : null}\r\n \r\n )}\r\n {item.contentType !== 'Article' ? (\r\n item.locations &&\r\n item.locations[0] &&\r\n item.locations[0].district && (\r\n \r\n \r\n \r\n \r\n {item.locations[0].district}\r\n \r\n )\r\n ) : (\r\n \r\n Read more
🢒
\r\n
\r\n )}\r\n
\r\n )\r\n}\r\nexport default ExploreItemTag\r\n","import './explore-item.css'\r\nimport React from 'react'\r\n\r\n// UTILS\r\nimport { transformMediaData } from './explore-list-utils'\r\nimport { PATH_VALUES } from '../../../Helpers/PATH.resource'\r\n\r\n// COMPONENTS\r\nimport ExploreItemMedia from './ExploreItemMedia'\r\nimport ExploreItemTag from './ExploreItemTag'\r\nimport LoveButton from '../../Shared/LoveButton/LoveButton'\r\nimport ShareButton from '../../Shared/ShareButton/ShareButton'\r\n\r\n// INTERFACES\r\nimport { IEntity } from '../../../interfaces/interfaces'\r\n\r\ninterface IFeedContentItemProps {\r\n item: IEntity\r\n}\r\n\r\nconst ExploreItem = ({ item }: IFeedContentItemProps) => {\r\n return (\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n

\r\n {item.title}\r\n

\r\n {item.contentType === 'Event' && item.parentName && (\r\n \r\n {item.parentName}\r\n \r\n )}\r\n

{item.summary}

\r\n \r\n {item.contentType !== 'Article' && item.bookingEnabled && (\r\n \r\n Book now\r\n \r\n )}\r\n
\r\n \r\n )\r\n}\r\nexport default ExploreItem\r\n","import React, { useContext } from 'react'\r\nimport { GlobalContext } from '../../../Context/GlobalContext'\r\nimport { IKImage, IKVideo } from 'imagekitio-react'\r\n\r\nconst ExploreListHero = () => {\r\n const global = useContext(GlobalContext)\r\n const size = {\r\n height: '300',\r\n width: '600',\r\n }\r\n\r\n return global.heroVideo || global.heroImage ? (\r\n \r\n {global.heroVideo && (\r\n \r\n )}\r\n {global.heroImage && (\r\n \r\n )}\r\n \r\n ) : null\r\n}\r\n\r\nexport default ExploreListHero\r\n","import './explore-list.css'\r\nimport { useCallback, useEffect, useRef } from 'react'\r\nimport { useSelector } from 'react-redux'\r\n\r\n// STORE\r\nimport { useAppDispatch } from '../../../redux/store'\r\nimport { getExploreContentByPage } from '../../../redux/explore-content/explore-content-thunks'\r\nimport {\r\n exploreContentItems,\r\n exploreContentItemTotal,\r\n exploreContentLoading,\r\n exploreContentPageNumber,\r\n} from '../../../redux/explore-content/explore-content-selectors'\r\n\r\n// COMPONENTS\r\nimport ExploreItem from './ExploreItem'\r\n\r\n// CUSTOM HOOKS\r\nimport useIntersectionObserver from '../../../customHooks/useIntersectionObserver'\r\nimport ExploreListHero from './ExploreListHero'\r\n\r\nconst ExploreList = () => {\r\n const dispatch = useAppDispatch()\r\n const exploreContentList = useSelector(exploreContentItems)\r\n const loading = useSelector(exploreContentLoading)\r\n const itemTotal = useSelector(exploreContentItemTotal)\r\n const pageNumber = useSelector(exploreContentPageNumber)\r\n\r\n const cachePageNum = useRef(1)\r\n const lastChildRef = useRef(null)\r\n const exploreListRef = useRef(null)\r\n\r\n const intersectionCallback = useCallback(\r\n (entries: IntersectionObserverEntry[]) => {\r\n if (entries[0].isIntersecting) {\r\n cachePageNum.current = pageNumber + 1\r\n void dispatch(getExploreContentByPage(pageNumber + 1))\r\n }\r\n },\r\n\r\n [dispatch, pageNumber]\r\n )\r\n\r\n const { observe, unobserve } = useIntersectionObserver(\r\n intersectionCallback,\r\n { root: null, rootMargin: '0px', threshold: 1.0 }\r\n )\r\n\r\n useEffect(() => {\r\n /** Note:\r\n * unobserve the previously observed element and sets a new target for\r\n * observation to ensure continuous loading of content as the user scrolls.\r\n */\r\n if (exploreContentList.length < itemTotal && exploreListRef.current) {\r\n if (lastChildRef.current !== null) {\r\n unobserve(lastChildRef.current)\r\n }\r\n\r\n const index = exploreListRef.current.children.length - 3\r\n lastChildRef.current = exploreListRef.current.children[\r\n index\r\n ] as HTMLDivElement\r\n\r\n observe(lastChildRef.current)\r\n }\r\n // `observe & unobserve` are useCallbacks to avoid triggering a rerender\r\n }, [exploreContentList, itemTotal, observe, unobserve])\r\n\r\n return (\r\n
\r\n \r\n {exploreContentList.length > 0 ? (\r\n exploreContentList.map((item, index) => {\r\n return (\r\n \r\n )\r\n })\r\n ) : (\r\n
\r\n

No results found

\r\n

\r\n Sorry, we don't have anything near you yet, try\r\n another location.\r\n

\r\n
\r\n )}\r\n {loading && (\r\n

\r\n Loading.\r\n .\r\n .\r\n

\r\n )}\r\n
\r\n
\r\n )\r\n}\r\nexport default ExploreList\r\n","import './explore.css'\r\nimport React, { useRef, useState } from 'react'\r\n\r\nimport { AnimatePresence } from 'framer-motion'\r\nimport WidgetContainer from '../Shared/Widget/WidgetContainer'\r\nimport ReusableModal from '../Shared/Modal/ReusableModal'\r\nimport ExploreMap from './ExploreMap/ExploreMap'\r\nimport ExploreList from './ExploreList/ExploreList'\r\nimport useScreenSize from '../../customHooks/useScreenSize'\r\n\r\nconst Explore: React.FC = (): React.JSX.Element => {\r\n const screenSize = useScreenSize(1024)\r\n const titleRef = useRef(null)\r\n const [mapViewEnabled, setMapViewEnabled] = useState(false)\r\n\r\n return (\r\n <>\r\n
\r\n \r\n {screenSize ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {mapViewEnabled && (\r\n \r\n setMapViewEnabled(!mapViewEnabled)\r\n }\r\n >\r\n \r\n \r\n )}\r\n \r\n )}\r\n
\r\n setMapViewEnabled(!mapViewEnabled)}\r\n className=\"explore__button\"\r\n >\r\n \r\n \r\n \r\n Map view\r\n \r\n \r\n )\r\n}\r\n\r\nexport default Explore\r\n","import { useContext, useEffect, useRef, useState } from 'react'\r\nimport { useSelector } from 'react-redux'\r\n\r\n// COMPONENTS\r\nimport Explore from './Explore'\r\n\r\n// STORE\r\nimport { useAppDispatch } from '../../redux/store'\r\nimport {\r\n getExploreContent,\r\n getExploreContentByMyLocation,\r\n} from '../../redux/explore-content/explore-content-thunks'\r\nimport { exploreContentRequestPayload } from '../../redux/explore-content/explore-content-selectors'\r\n\r\n// CONTEXT\r\nimport { GlobalContext } from '../../Context/GlobalContext'\r\n\r\n// INTERFACES\r\nimport { IPerformSearchRequest } from '../../redux/explore-content/explore-content-interfaces'\r\n\r\n// UTILS\r\nimport {\r\n getAffiliateSearchParams,\r\n getStoredSearchParams,\r\n getUKPlacesSearchParams,\r\n isAffiliate,\r\n isUKPlacesLocation,\r\n resetCurrentPage,\r\n} from './explore-utils'\r\n\r\nconst ExploreContainer = () => {\r\n const dispatch = useAppDispatch()\r\n const global = useContext(GlobalContext)\r\n const [isLoading, setIsLoading] = useState(true)\r\n const requestParams = useSelector(exploreContentRequestPayload)\r\n const firstLoad = useRef(true)\r\n\r\n useEffect(() => {\r\n const pageSetup = async (): Promise => {\r\n if (firstLoad.current) {\r\n firstLoad.current = false\r\n let searchParams: IPerformSearchRequest = { ...requestParams }\r\n const storedSearchParams = getStoredSearchParams()\r\n\r\n if (isUKPlacesLocation(global)) {\r\n searchParams = getUKPlacesSearchParams(global, searchParams)\r\n await dispatch(getExploreContent(searchParams))\r\n } else if (isAffiliate()) {\r\n searchParams = getAffiliateSearchParams(searchParams)\r\n await dispatch(getExploreContent(searchParams))\r\n } else if (storedSearchParams) {\r\n searchParams = resetCurrentPage(storedSearchParams)\r\n await dispatch(getExploreContent(searchParams))\r\n } else {\r\n await dispatch(getExploreContentByMyLocation())\r\n }\r\n setIsLoading(false)\r\n }\r\n }\r\n void pageSetup()\r\n }, [dispatch, global, requestParams])\r\n\r\n if (isLoading) {\r\n return null\r\n }\r\n\r\n return \r\n}\r\nexport default ExploreContainer\r\n","import { getValueByPath } from '../../../Helpers/utils'\r\nimport { IExploreItemMedia } from './ExploreItemMedia'\r\n\r\nexport function transformMediaData(media: T): IExploreItemMedia {\r\n const video = getValueByPath(media, [0, 'video']) as IExploreItemMedia\r\n if (video) {\r\n return video\r\n } else {\r\n const image = getValueByPath(media, [\r\n 0,\r\n 'images',\r\n 0,\r\n ]) as IExploreItemMedia\r\n if (image) {\r\n return image\r\n }\r\n return {\r\n altText: 'no image available',\r\n caption: '',\r\n height: 0,\r\n id: 0,\r\n mediaId: 0,\r\n mediaTypes: [''],\r\n url: '',\r\n path: '',\r\n width: 0,\r\n }\r\n }\r\n}\r\n\r\nexport function getIframeUrl(embeddedCode: string) {\r\n const iframeUrlRegex = /src=\"(.*?)\\?/\r\n const match = embeddedCode.match(iframeUrlRegex)\r\n\r\n if (match && match.length > 1) {\r\n return match[1].trim()\r\n }\r\n return ''\r\n}\r\n","import { IPerformSearchRequest } from '../../redux/explore-content/explore-content-interfaces'\r\nimport { ILocation } from '../../interfaces/interfaces'\r\nimport { DEFAULT_LOCATION } from '../../Helpers/constants'\r\nimport Cookies from 'js-cookie'\r\nimport { IGlobalContext } from '../../Context/GlobalContext'\r\n\r\nexport function isUKPlacesLocation(global: IGlobalContext): boolean {\r\n return !!global.latitude && !!global.longitude\r\n}\r\n\r\nexport function getUKPlacesSearchParams(\r\n global: IGlobalContext,\r\n baseParams: IPerformSearchRequest\r\n): IPerformSearchRequest {\r\n return {\r\n ...baseParams,\r\n location: {\r\n latitude: parseFloat(global.latitude),\r\n longitude: parseFloat(global.longitude),\r\n maxDistance:\r\n global.maxDistance !== undefined\r\n ? parseFloat(global.maxDistance)\r\n : undefined,\r\n },\r\n }\r\n}\r\n\r\nexport function isAffiliate(): boolean {\r\n return !!Cookies.get('wa')\r\n}\r\n\r\nexport function getAffiliateSearchParams(\r\n baseParams: IPerformSearchRequest\r\n): IPerformSearchRequest {\r\n const location = Cookies.get('ul')\r\n return {\r\n ...baseParams,\r\n location: location\r\n ? (JSON.parse(location) as ILocation)\r\n : DEFAULT_LOCATION,\r\n }\r\n}\r\n\r\nexport function getStoredSearchParams(): IPerformSearchRequest | undefined {\r\n const storedSearch = sessionStorage.getItem('storedSearch')\r\n return storedSearch === null\r\n ? undefined\r\n : (JSON.parse(storedSearch) as IPerformSearchRequest)\r\n}\r\n\r\nexport function resetCurrentPage(searchParams: IPerformSearchRequest) {\r\n searchParams.currentPage = 1\r\n return searchParams\r\n}\r\n","import React from 'react'\r\nimport './NavBarGeneral.css'\r\nimport { motion } from 'framer-motion'\r\nimport IconSvg, { ICON_TYPE } from '../Shared/SVG/iconSvg'\r\nimport { LogoSVGComponent } from '../Shared/SVG/logoSVG'\r\n\r\nconst navVariants = {\r\n initial: {\r\n opacity: 0,\r\n },\r\n in: {\r\n opacity: 1,\r\n transition: { duration: 0.3 },\r\n },\r\n out: {\r\n opacity: 0,\r\n },\r\n}\r\n\r\ninterface INavBarProps {\r\n logoUrl?: string\r\n showBackButton?: boolean\r\n onGoBack?: () => void\r\n onClose?: () => void\r\n showLogo?: boolean\r\n homePagePath?: string\r\n headingLabel?: string\r\n}\r\n\r\nconst NavBarGeneral: React.FC = ({\r\n logoUrl,\r\n showBackButton,\r\n onGoBack,\r\n onClose,\r\n showLogo,\r\n homePagePath,\r\n headingLabel,\r\n}: INavBarProps): JSX.Element => {\r\n const handleBack = (): void => {\r\n if (onGoBack) {\r\n onGoBack()\r\n } else {\r\n window.history.back()\r\n }\r\n }\r\n\r\n const showModal = (): void => {\r\n if (onClose) {\r\n onClose()\r\n } else {\r\n if (homePagePath) {\r\n window.location.href = homePagePath\r\n } else {\r\n window.location.href = '/'\r\n }\r\n }\r\n }\r\n\r\n return (\r\n \r\n
\r\n {(showBackButton || onGoBack) && (\r\n \r\n \r\n \r\n )}\r\n {showLogo && (\r\n
\r\n \r\n
\r\n )}\r\n {headingLabel && (\r\n
\r\n

{headingLabel}

\r\n
\r\n )}\r\n {onClose && (\r\n \r\n \r\n \r\n )}\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default NavBarGeneral\r\n","import React, { useMemo } from 'react'\r\nimport IconSvg, { ICON_TYPE } from '../SVG/iconSvg'\r\nimport { accountLovedItems } from '../../../redux/account/account-selectors'\r\nimport { useSelector } from 'react-redux'\r\n\r\ninterface IProps {\r\n id: number\r\n}\r\n\r\nconst HeartIcon = (props: IProps) => {\r\n const lovedItems = useSelector(accountLovedItems)\r\n\r\n const loved = useMemo(\r\n () => lovedItems.some((item) => Object.values(item).includes(props.id)),\r\n [lovedItems, props.id]\r\n )\r\n\r\n return loved ? (\r\n \r\n ) : (\r\n \r\n )\r\n}\r\nexport default HeartIcon\r\n","import './love-button.css'\r\nimport React, {\r\n useEffect,\r\n useState,\r\n useRef,\r\n useCallback,\r\n lazy,\r\n Suspense,\r\n} from 'react'\r\n\r\n// STORE\r\nimport { useAppDispatch } from '../../../redux/store'\r\nimport { setUserVar } from '../../../redux/userSlice'\r\nimport { fetchCustomerDetailsThunk } from '../../../redux/account/account-thunks'\r\nimport {\r\n getLoveCountThunk,\r\n toggleLovedItemThunk,\r\n} from '../../../redux/explore-content/explore-content-thunks'\r\nimport { updateLovedItems } from '../../../redux/account/account-slice'\r\n\r\n// COMPONENTS\r\nimport ReusableModal from '../../Shared/Modal/ReusableModal'\r\nimport HeartIcon from '../HeartIcon/HeartIcon'\r\nimport Loader from '../../Shared/Loader/Loader'\r\nconst AccountScreens = lazy(() => import('../../AccountScreens/AccountScreens'))\r\n\r\n// CUSTOM HOOKS\r\nimport useIntersectionObserver from '../../../customHooks/useIntersectionObserver'\r\n\r\n// INTERFACES\r\nimport { IUser } from '../../../interfaces/interfaces'\r\n\r\nexport enum ContentType {\r\n Attraction = 1,\r\n Event = 2,\r\n Article = 3,\r\n}\r\n\r\nexport type ContentTypes = keyof typeof ContentType\r\n\r\ninterface IProps {\r\n contentType: ContentTypes\r\n id: number\r\n}\r\n\r\nconst LoveButton = (props: IProps) => {\r\n const dispatch = useAppDispatch()\r\n const [lovedTotal, setLovedTotal] = useState(0)\r\n const [show, setShow] = useState(false)\r\n const buttonRef = useRef(null)\r\n const apiCalledRef = useRef(false)\r\n const contentType = ContentType[props.contentType]\r\n\r\n const loadLoveCount = useCallback(() => {\r\n if (apiCalledRef.current) return // Prevent loading if API has already been called\r\n\r\n apiCalledRef.current = true // Mark API as called\r\n void dispatch(getLoveCountThunk({ id: props.id, type: contentType }))\r\n .unwrap()\r\n .then((payload) => {\r\n setLovedTotal(payload)\r\n })\r\n .catch(() => {\r\n setLovedTotal(0)\r\n })\r\n }, [dispatch, props.id, contentType])\r\n\r\n const { observe, unobserve } = useIntersectionObserver(\r\n (entries) => {\r\n if (entries[0].isIntersecting && !apiCalledRef.current) {\r\n loadLoveCount()\r\n }\r\n },\r\n { root: null, rootMargin: '0px', threshold: 0.1 }\r\n )\r\n\r\n useEffect(() => {\r\n if (buttonRef.current) {\r\n observe(buttonRef.current)\r\n }\r\n // Cleanup function to remove the observer when the component unmounts\r\n return () => {\r\n if (buttonRef.current) {\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n unobserve(buttonRef.current)\r\n }\r\n }\r\n }, [observe, unobserve])\r\n\r\n const onClickHandler = async () => {\r\n await dispatch(\r\n toggleLovedItemThunk({\r\n id: props.id,\r\n type: contentType,\r\n })\r\n )\r\n .unwrap()\r\n .then((payload) => {\r\n if (typeof payload === 'number') {\r\n dispatch(updateLovedItems(props.id))\r\n setLovedTotal(payload)\r\n } else {\r\n setShow(true)\r\n }\r\n })\r\n }\r\n\r\n const onSuccessHandler = async (jwt: string) => {\r\n await dispatch(fetchCustomerDetailsThunk(jwt))\r\n .unwrap()\r\n .then((payload) => {\r\n // This is a hack fix.\r\n // Should be removed when userSlice\r\n // is not required anymore.\r\n dispatch(\r\n setUserVar(payload.customerDetails as IUser | undefined)\r\n )\r\n setShow(false)\r\n })\r\n }\r\n return (\r\n <>\r\n void onClickHandler()}\r\n >\r\n \r\n {lovedTotal}\r\n \r\n {show && (\r\n \r\n }>\r\n void onSuccessHandler(jwt)}\r\n onClose={() => setShow(false)}\r\n />\r\n \r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default LoveButton\r\n","import './reusableModal.css'\r\nimport React, { useEffect, useState } from 'react'\r\n\r\nimport { motion } from 'framer-motion'\r\nimport { createPortal } from 'react-dom'\r\nimport NavBarGeneral from '../../NavBarGeneral/NavBarGeneral'\r\n\r\nconst variants = {\r\n initial: {\r\n y: '100%',\r\n },\r\n in: {\r\n y: 0,\r\n },\r\n out: {\r\n y: '100%',\r\n },\r\n}\r\n\r\ninterface IModal {\r\n children: React.ReactNode\r\n onGoBack?: () => void\r\n onClose?: () => void\r\n headerTitle?: string\r\n element?: Element | DocumentFragment | null\r\n full?: boolean\r\n additionalClasses?: string\r\n noScroll?: boolean\r\n}\r\n\r\nconst ReusableModal: React.FC = ({\r\n children,\r\n onGoBack,\r\n onClose,\r\n headerTitle,\r\n element,\r\n full = true,\r\n additionalClasses,\r\n noScroll = false,\r\n}: IModal): JSX.Element => {\r\n let navbarVisible = false\r\n\r\n if (onGoBack || onClose || headerTitle) {\r\n navbarVisible = true\r\n }\r\n\r\n const [docFragment, setDocFragment] = useState(\r\n document.body\r\n )\r\n\r\n useEffect(() => {\r\n if (element) setDocFragment(element)\r\n if (noScroll) document.body.classList.add('no-scroll')\r\n\r\n return () => {\r\n if (noScroll) document.body.classList.remove('no-scroll')\r\n }\r\n }, [element, noScroll])\r\n\r\n // add additional classes to the modal to identify specific handled sections/Components when needed\r\n let modalClasses = `${full ? 'Modal__full' : 'Modal'}`\r\n modalClasses = additionalClasses\r\n ? `${modalClasses} ${additionalClasses}`\r\n : modalClasses\r\n\r\n return createPortal(\r\n
\r\n \r\n {navbarVisible && (\r\n \r\n )}\r\n\r\n \r\n {children}\r\n
\r\n \r\n
,\r\n docFragment\r\n )\r\n}\r\n\r\nexport default ReusableModal\r\n","import './share-button.css'\r\nimport React from 'react'\r\nimport IconSvg, { ICON_TYPE } from '../../Shared/SVG/iconSvg'\r\n\r\ninterface IProps {\r\n title: string\r\n text: string\r\n url: string\r\n}\r\n\r\nconst ShareButton = (props: IProps) => {\r\n return (\r\n {\r\n void navigator.share({\r\n title: props.title,\r\n url: props.url,\r\n text: props.text,\r\n })\r\n }}\r\n title=\"Share\"\r\n >\r\n \r\n \r\n )\r\n}\r\nexport default ShareButton\r\n","const regexp = new RegExp('#([^\\\\s]*)', 'g')\r\n\r\nconst getOS = (): string => {\r\n const userAgent = window.navigator.userAgent,\r\n platform = window.navigator.platform,\r\n macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],\r\n windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],\r\n iosPlatforms = ['iPhone', 'iPad', 'iPod']\r\n\r\n let os = ''\r\n\r\n if (macosPlatforms.indexOf(platform) !== -1) {\r\n os = 'Mac OS'\r\n } else if (iosPlatforms.indexOf(platform) !== -1) {\r\n os = 'iOS'\r\n } else if (windowsPlatforms.indexOf(platform) !== -1) {\r\n os = 'Windows'\r\n } else if (/Android/.test(userAgent)) {\r\n os = 'Android'\r\n } else if (!os && /Linux/.test(platform)) {\r\n os = 'Linux'\r\n }\r\n\r\n return os\r\n}\r\n\r\nconst removeTrailingSlash = (urlBefore: string): string => {\r\n let url = urlBefore.replace(regexp, '')\r\n\r\n if (url.includes('?')) {\r\n url = url.split('?')[0]\r\n }\r\n\r\n return url[url.length - 1] === '/' ? url.substr(0, url.length - 1) : url\r\n}\r\n\r\nexport const MEDIA_BASE_PATH = document\r\n .querySelector('[data-media-base-path]')\r\n ?.getAttribute('data-media-base-path') as string\r\n\r\nconst trimMediaUrl = (url: string): string => {\r\n if (MEDIA_BASE_PATH && url.startsWith(MEDIA_BASE_PATH)) {\r\n return url.replace(MEDIA_BASE_PATH, '')\r\n }\r\n\r\n return url\r\n}\r\n\r\nexport const PATH_VALUES = {\r\n isHome: () =>\r\n removeTrailingSlash(window.location.href) ===\r\n removeTrailingSlash(window.location.origin),\r\n\r\n pathName: window.location.pathname.substring(\r\n window.location.pathname.lastIndexOf('/') + 1\r\n ),\r\n trimMediaUrl: trimMediaUrl,\r\n params: window.location.search,\r\n baseUrl: window.location.origin,\r\n hostName: window.location.hostname,\r\n fullUrl: window.location.href,\r\n referrer: document.referrer,\r\n navigationType:\r\n window.performance &&\r\n window.performance.getEntriesByType('navigation')?.[0]?.entryType,\r\n os: getOS(),\r\n zoomLevel: Math.round(window.devicePixelRatio * 100),\r\n}\r\n","import { useEffect, useRef, useCallback } from 'react'\r\n\r\ntype ObserverCallback = (entries: IntersectionObserverEntry[]) => void\r\n\r\nexport default function useIntersectionObserver(\r\n callback: ObserverCallback,\r\n options?: IntersectionObserverInit\r\n) {\r\n const observerRef = useRef(null)\r\n\r\n useEffect(() => {\r\n observerRef.current = new IntersectionObserver(callback, options)\r\n return () => {\r\n if (observerRef.current) {\r\n observerRef.current.disconnect()\r\n }\r\n }\r\n }, [callback, options])\r\n\r\n const observe = useCallback((element: Element) => {\r\n if (observerRef.current) {\r\n observerRef.current.observe(element)\r\n }\r\n }, [])\r\n\r\n const unobserve = useCallback((element: Element) => {\r\n if (observerRef.current) {\r\n observerRef.current.unobserve(element)\r\n }\r\n }, [])\r\n\r\n return { observe, unobserve }\r\n}\r\n","import { createSelector } from '@reduxjs/toolkit'\r\nimport { RootState } from '../store'\r\nimport { IMapPin } from './explore-content-interfaces'\r\nimport placeHeart from '../../assets/images/love_black.png'\r\nimport homeHeart from '../../assets/images/love.png'\r\n\r\nconst exploreContent = (state: RootState) => state.exploreContent\r\n\r\nexport const exploreContentRequestPayload = createSelector(\r\n exploreContent,\r\n (state) => state.requestPayload\r\n)\r\n\r\nexport const exploreContentRequestPayloadLocation = createSelector(\r\n exploreContentRequestPayload,\r\n (state) => state.location\r\n)\r\n\r\nexport const exploreContentItemsPerPage = createSelector(\r\n exploreContentRequestPayload,\r\n (state) => state.itemsPerPage\r\n)\r\n\r\nexport const exploreContentKeywords = createSelector(\r\n exploreContentRequestPayload,\r\n (state) => state.keywords\r\n)\r\n\r\nexport const exploreContentItems = createSelector(\r\n exploreContent,\r\n (state) => state.items\r\n)\r\n\r\nexport const exploreContentLoading = createSelector(\r\n exploreContent,\r\n (state) => state.loading\r\n)\r\n\r\nexport const exploreContentItemTotal = createSelector(\r\n exploreContent,\r\n (state) => state.itemTotal\r\n)\r\n\r\nexport const exploreContentPageNumber = createSelector(\r\n exploreContent,\r\n (state) => state.pageNumber\r\n)\r\n\r\nexport const exploreContentLocationText = createSelector(\r\n exploreContent,\r\n (state) => state.locationText\r\n)\r\n\r\nexport const locationPin = createSelector(\r\n exploreContentRequestPayloadLocation,\r\n (location) => ({\r\n clusterEnabled: false,\r\n location: [location.latitude, location.longitude],\r\n option: {\r\n title: '',\r\n color: 'var(--pop)',\r\n icon: homeHeart,\r\n },\r\n })\r\n)\r\n\r\nexport const mapPins = createSelector(\r\n [exploreContentItems, locationPin],\r\n (items, pin) => {\r\n const pins: IMapPin[] = items\r\n .filter(({ contentType }) => contentType !== 'Article')\r\n .map((item) => ({\r\n clusterEnabled: true,\r\n location: [\r\n item.locations[0].latitude,\r\n item.locations[0].longitude,\r\n ],\r\n metadata: item,\r\n option: {\r\n title: item.title,\r\n color: 'var(--pop)',\r\n icon: placeHeart,\r\n },\r\n }))\r\n pins.push(pin)\r\n return pins\r\n }\r\n)\r\n","import { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n","import * as React from 'react';\nimport { useId, useRef, useInsertionEffect } from 'react';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n });\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n top: ${top}px !important;\n left: ${left}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (React.createElement(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size }, React.cloneElement(children, { ref })));\n}\n\nexport { PopChild };\n","import * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout ? undefined : [isPresent]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = React.createElement(PopChild, { isPresent: isPresent }, children);\n }\n return (React.createElement(PresenceContext.Provider, { value: context }, children));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import * as React from 'react';\nimport { useContext, useRef, cloneElement, Children, isValidElement } from 'react';\nimport { env } from '../../utils/process.mjs';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { useIsMounted } from '../../utils/use-is-mounted.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';\nimport { warnOnce } from '../../utils/warn-once.mjs';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction updateChildLookup(children, allChildren) {\n children.forEach((child) => {\n const key = getChildKey(child);\n allChildren.set(key, child);\n });\n}\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * \n * {items.map(item => (\n * \n * ))}\n * \n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode = \"sync\", }) => {\n // Support deprecated exitBeforeEnter prop\n if (exitBeforeEnter) {\n mode = \"wait\";\n warnOnce(false, \"Replace exitBeforeEnter with mode='wait'\");\n }\n // We want to force a re-render once all exiting animations have finished. We\n // either use a local forceRender function, or one from a parent context if it exists.\n let [forceRender] = useForceUpdate();\n const forceRenderLayoutGroup = useContext(LayoutGroupContext).forceRender;\n if (forceRenderLayoutGroup)\n forceRender = forceRenderLayoutGroup;\n const isMounted = useIsMounted();\n // Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key\n const filteredChildren = onlyElements(children);\n let childrenToRender = filteredChildren;\n const exiting = new Set();\n // Keep a living record of the children we're actually rendering so we\n // can diff to figure out which are entering and exiting\n const presentChildren = useRef(childrenToRender);\n // A lookup table to quickly reference components by key\n const allChildren = useRef(new Map()).current;\n // If this is the initial component render, just deal with logic surrounding whether\n // we play onMount animations or not.\n const isInitialRender = useRef(true);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n updateChildLookup(filteredChildren, allChildren);\n presentChildren.current = childrenToRender;\n });\n useUnmountEffect(() => {\n isInitialRender.current = true;\n allChildren.clear();\n exiting.clear();\n });\n if (isInitialRender.current) {\n return (React.createElement(React.Fragment, null, childrenToRender.map((child) => (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child)))));\n }\n // If this is a subsequent render, deal with entering and exiting children\n childrenToRender = [...childrenToRender];\n // Diff the keys of the currently-present and target children to update our\n // exiting list.\n const presentKeys = presentChildren.current.map(getChildKey);\n const targetKeys = filteredChildren.map(getChildKey);\n // Diff the present children with our target children and mark those that are exiting\n const numPresent = presentKeys.length;\n for (let i = 0; i < numPresent; i++) {\n const key = presentKeys[i];\n if (targetKeys.indexOf(key) === -1) {\n exiting.add(key);\n }\n }\n // If we currently have exiting children, and we're deferring rendering incoming children\n // until after all current children have exiting, empty the childrenToRender array\n if (mode === \"wait\" && exiting.size) {\n childrenToRender = [];\n }\n // Loop through all currently exiting components and clone them to overwrite `animate`\n // with any `exit` prop they might have defined.\n exiting.forEach((key) => {\n // If this component is actually entering again, early return\n if (targetKeys.indexOf(key) !== -1)\n return;\n const child = allChildren.get(key);\n if (!child)\n return;\n const insertionIndex = presentKeys.indexOf(key);\n const onExit = () => {\n allChildren.delete(key);\n exiting.delete(key);\n // Remove this child from the present children\n const removeIndex = presentChildren.current.findIndex((presentChild) => presentChild.key === key);\n presentChildren.current.splice(removeIndex, 1);\n // Defer re-rendering until all exiting children have indeed left\n if (!exiting.size) {\n presentChildren.current = filteredChildren;\n if (isMounted.current === false)\n return;\n forceRender();\n onExitComplete && onExitComplete();\n }\n };\n childrenToRender.splice(insertionIndex, 0, React.createElement(PresenceChild, { key: getChildKey(child), isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));\n });\n // Add `MotionContext` even to children that don't need it to ensure we're rendering\n // the same tree between renders\n childrenToRender = childrenToRender.map((child) => {\n const key = child.key;\n return exiting.has(key) ? (child) : (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));\n });\n if (env !== \"production\" &&\n mode === \"wait\" &&\n childrenToRender.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n return (React.createElement(React.Fragment, null, exiting.size\n ? childrenToRender\n : childrenToRender.map((child) => cloneElement(child))));\n};\n\nexport { AnimatePresence };\n","import { sync } from '../frameloop/index.mjs';\nimport { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => sync.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n"],"names":["top","arguments","length","undefined","concat","_ref","children","tileRef","global","useContext","GlobalContext","widgetHeight","setWidgetHeight","useState","show","setShow","ref","useRef","useEffect","window","addEventListener","setWidgetSize","removeEventListener","newWidgetHeight","document","documentElement","clientHeight","pageId","_jsx","className","style","height","getExtraSpacing","right","_Fragment","props","dispatch","useAppDispatch","requestPayload","useSelector","exploreContentRequestPayload","changeLocation","clickHandler","movedCoords","onClick","getExploreContent","_objectSpread","location","latitude","longitude","updateLocationText","getExploreContentByMyLocation","_jsxs","IconSvg","type","ICON_TYPE","Location","AzureMaps","lazy","ExploreMap","pushPins","mapPins","cachedPushPins","setCachedPushPins","setChangeLocation","setMovedCoords","showMap","setShowMap","isDeepEqual","timer","setTimeout","clearTimeout","ExploreMapButton","Suspense","fallback","Loader","messages","getLocation","e","position","coordinates","reverse","MEDIA_TYPES","ExploreItemMedia","size","width","mediaRef","isInView","setIsInView","mediaType","useMemo","embedCode","includes","observe","useIntersectionObserver","entries","_mediaRef$current","_mediaRef$current$que","_mediaRef$current2","_mediaRef$current2$qu","isIntersecting","current","querySelector","play","pause","root","rootMargin","threshold","url","IKVideo","path","transformation","String","controls","autoPlay","loop","muted","playsInline","src","getIframeUrl","title","id","allow","allowFullScreen","IKImage","alt","altText","background","memo","item","currentDate","Date","dateFormat","reopenDate","endDate","contentType","publishDate","isOpen","href","format","locations","district","tagName","borderRadius","ShareButton","text","summary","LoveButton","entityId","transformMediaData","media","parentName","PATH_VALUES","baseUrl","parentUrl","ExploreItemTag","bookingEnabled","ExploreListHero","heroVideo","heroImage","heroLink","heroTitle","lqip","active","loading","ExploreList","exploreContentList","exploreContentItems","exploreContentLoading","itemTotal","exploreContentItemTotal","pageNumber","exploreContentPageNumber","cachePageNum","lastChildRef","exploreListRef","intersectionCallback","useCallback","getExploreContentByPage","unobserve","index","map","ExploreItem","Explore","screenSize","useScreenSize","titleRef","mapViewEnabled","setMapViewEnabled","WidgetContainer","AnimatePresence","ReusableModal","additionalClasses","onClose","ExploreContainer","isLoading","setIsLoading","requestParams","firstLoad","async","searchParams","storedSearchParams","getStoredSearchParams","isUKPlacesLocation","getUKPlacesSearchParams","isAffiliate","getAffiliateSearchParams","resetCurrentPage","pageSetup","video","getValueByPath","image","caption","mediaId","mediaTypes","embeddedCode","match","trim","baseParams","parseFloat","maxDistance","Cookies","get","JSON","parse","DEFAULT_LOCATION","storedSearch","sessionStorage","getItem","currentPage","navVariants","initial","opacity","in","transition","duration","out","logoUrl","showBackButton","onGoBack","showLogo","homePagePath","headingLabel","motion","div","animate","exit","variants","handleBack","history","back","Back","LogoSVGComponent","showMobile","showModal","Close","lovedItems","accountLovedItems","some","Object","values","Loved","Love","AccountScreens","ContentType","lovedTotal","setLovedTotal","buttonRef","apiCalledRef","loadLoveCount","getLoveCountThunk","unwrap","then","payload","catch","toggleLovedItemThunk","updateLovedItems","onClickHandler","HeartIcon","element","body","full","onSuccess","jwt","fetchCustomerDetailsThunk","setUserVar","customerDetails","onSuccessHandler","y","headerTitle","noScroll","navbarVisible","docFragment","setDocFragment","classList","add","remove","modalClasses","createPortal","NavBarGeneral","navigator","share","Share","regexp","RegExp","removeTrailingSlash","urlBefore","replace","split","substr","MEDIA_BASE_PATH","_document$querySelect","getAttribute","isHome","origin","pathName","pathname","substring","lastIndexOf","trimMediaUrl","startsWith","params","search","hostName","hostname","fullUrl","referrer","navigationType","performance","_window$performance$g","getEntriesByType","_window$performance$g2","entryType","os","getOS","userAgent","platform","indexOf","test","zoomLevel","Math","round","devicePixelRatio","callback","options","observerRef","IntersectionObserver","disconnect","exploreContent","state","createSelector","exploreContentRequestPayloadLocation","exploreContentKeywords","itemsPerPage","keywords","items","exploreContentLocationText","locationText","locationPin","clusterEnabled","option","color","icon","pin","pins","filter","metadata","push","useIsMounted","isMounted","useIsomorphicLayoutEffect","PopChildMeasure","React","getSnapshotBeforeUpdate","prevProps","this","childRef","isPresent","sizeRef","offsetHeight","offsetWidth","offsetTop","left","offsetLeft","componentDidUpdate","render","PopChild","useId","useInsertionEffect","dataset","motionPopId","createElement","head","appendChild","sheet","insertRule","removeChild","PresenceChild","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","context","childId","set","isComplete","register","delete","forEach","_","key","PresenceContext","Provider","value","Map","getChildKey","child","exitBeforeEnter","warnOnce","forceRender","forcedRenderCount","setForcedRenderCount","sync","postRender","useForceUpdate","forceRenderLayoutGroup","LayoutGroupContext","filteredChildren","filtered","Children","isValidElement","onlyElements","childrenToRender","exiting","Set","presentChildren","allChildren","isInitialRender","updateChildLookup","useUnmountEffect","clear","presentKeys","targetKeys","numPresent","i","insertionIndex","splice","onExit","removeIndex","findIndex","presentChild","has","env","console","warn","cloneElement"],"sourceRoot":""}