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AO,EADmB,IAAAE,cAAY,WAAc,OAAO,KAAKC,WAAWhP,EAAc,GAAG,CAACA,IAChE6O,EACjC,C,0DCdA,SAASI,IACL,IAAI5B,GAAY,IAAApN,SAAO,GAOvB,OANA,QAA0B,WAEtB,OADAoN,EAAUhU,SAAU,EACb,WACHgU,EAAUhU,SAAU,CACxB,CACJ,GAAG,IACIgU,CACX,C","sources":["webpack://eploy/./src/helpers/image.ts","webpack://eploy/./src/helpers/layers.ts","webpack://eploy/./src/hoc/withMotionMax.tsx","webpack://eploy/./src/hoc/withQueryParams.tsx","webpack://eploy/./src/hoc/withRouter.tsx","webpack://eploy/./src/hooks/useApi.ts","webpack://eploy/./src/hooks/useMedia.ts","webpack://eploy/./src/stories/Components/Misc/CategoryTags/CategoryTags.styles.ts","webpack://eploy/./src/stories/Components/Misc/CategoryTags/CategoryTags.tsx","webpack://eploy/./src/stories/Components/Buttons/FilterButton/FilterButton.styles.ts","webpack://eploy/./src/stories/Components/Buttons/FilterButton/FilterButton.tsx","webpack://eploy/./node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/projection/node/group.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs","webpack://eploy/./node_modules/react-use/esm/useLockBodyScroll.js","webpack://eploy/./src/stories/Components/Misc/Filters/Filters.styles.ts","webpack://eploy/./src/stories/Components/Misc/Filters/Filters.tsx","webpack://eploy/./src/stories/Components/Misc/Pagination/Pagination.styles.ts","webpack://eploy/./src/stories/Components/Misc/Pagination/Pagination.tsx","webpack://eploy/./src/stories/Components/Misc/SectionWrapper/SectionWrapper.styles.ts","webpack://eploy/./src/stories/Components/Misc/SectionWrapper/SectionWrapper.tsx","webpack://eploy/./node_modules/react-use/esm/misc/util.js","webpack://eploy/./node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/utils/use-force-update.mjs","webpack://eploy/./node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs"],"sourcesContent":["import queryString from 'query-string';\r\n/**\r\n * Create an image URL for ImageProcessor\r\n * @param image The image model\r\n * @param imageParams The image parameters\r\n * @returns The image URL\r\n */\r\nexport function imageUrl(image, imageParams) {\r\n if (!image) {\r\n return '';\r\n }\r\n const params = {\r\n center: image.focalPoint ? `${image.focalPoint.top},${image.focalPoint.left}` : undefined,\r\n ...imageParams,\r\n };\r\n if (params.width && params.heightratio) {\r\n params.height = Math.round(params.width / params.heightratio);\r\n }\r\n const paramsString = queryString.stringify(params);\r\n return `${image.src}${paramsString ? `?${queryString.stringify(params)}` : ''}`;\r\n}\r\nexport function getSrcs(image, upper, lower, steps, ratio) {\r\n if (!image) {\r\n return { src: '', srcSet: '' };\r\n }\r\n const sizes = getRange(upper, lower, steps);\r\n const sizesArr = sizes.map((size) => `${imageUrl(image, { width: size, heightratio: ratio })} ${size}w`);\r\n return {\r\n src: sizesArr[0].split(' ')[0],\r\n srcSet: sizesArr.join(','),\r\n };\r\n}\r\nexport function getRetinaSrcs(image, width, ratio) {\r\n const dprs = [1, 1.5, 2, 2.5, 3];\r\n const dprsArr = dprs.map((dpr) => `${imageUrl(image, { width: width * dpr, heightratio: ratio })} ${dpr}x`);\r\n return {\r\n src: dprsArr[0].split(' ')[0],\r\n srcSet: dprsArr.join(','),\r\n };\r\n}\r\nfunction getRange(upper, lower, steps) {\r\n const difference = upper - lower;\r\n const increment = difference / (steps - 1);\r\n return [\r\n lower,\r\n ...Array(steps - 2)\r\n .fill('')\r\n .map((_, index) => Math.ceil(lower + increment * (index + 1))),\r\n upper,\r\n ];\r\n}\r\n","/**\r\n * The various major z-index layers, adjust with caution and leave space between to add to later.\r\n */\r\nexport const Layers = {\r\n Header: 100,\r\n Navigation: 98,\r\n Modal: 1000,\r\n};\r\n","import { domMax, LazyMotion } from 'framer-motion';\r\nimport React from 'react';\r\nexport function withMotionMax(WrappedComponent) {\r\n const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n const ComponentWithMotionMax = (props) => {\r\n return (React.createElement(LazyMotion, { features: domMax, strict: true },\r\n React.createElement(WrappedComponent, { ...props })));\r\n };\r\n ComponentWithMotionMax.displayName = `withMotionMax(${displayName})`;\r\n return ComponentWithMotionMax;\r\n}\r\n","import React from 'react';\r\nimport { Route } from 'react-router';\r\nimport { QueryParamProvider } from 'use-query-params';\r\nimport { withRouter } from './withRouter';\r\nexport function withQueryParams(WrappedComponent) {\r\n const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n const ComponentWithQueryParams = (props) => {\r\n return (React.createElement(QueryParamProvider, { ReactRouterRoute: Route },\r\n React.createElement(WrappedComponent, { ...props })));\r\n };\r\n ComponentWithQueryParams.displayName = `withQueryParams(${displayName})`;\r\n return withRouter(ComponentWithQueryParams);\r\n}\r\n","import React from 'react';\r\nimport { BrowserRouter, StaticRouter } from 'react-router-dom';\r\nexport function withRouter(WrappedComponent) {\r\n const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n const ComponentWithRouter = (props) => {\r\n if (typeof window === 'undefined') {\r\n if (!props.location) {\r\n throw new Error(`The \"location\" prop was not provided when the \"withRouter\" HOC was used. Ensure the Tag Helper is using the \"use-router\" parameter.`);\r\n }\r\n return (React.createElement(StaticRouter, { basename: props.basename, context: props.context, location: props.location },\r\n React.createElement(WrappedComponent, { ...props })));\r\n }\r\n return (React.createElement(BrowserRouter, { basename: props.basename },\r\n React.createElement(WrappedComponent, { ...props })));\r\n };\r\n ComponentWithRouter.displayName = `withRouter(${displayName})`;\r\n return ComponentWithRouter;\r\n}\r\n","import { sleep } from '@helpers/utils';\r\nimport * as React from 'react';\r\nimport { useFirstMountState } from 'react-use';\r\nexport function useApi(params) {\r\n const refAbortController = React.useRef();\r\n const isFirstMount = useFirstMountState();\r\n const [data, setData] = React.useState(params.initialData);\r\n const [status, setStatus] = React.useState('initial');\r\n const minTime = 500;\r\n const clear = () => {\r\n setData(undefined);\r\n };\r\n React.useEffect(() => {\r\n // Ignore first mount if initial data is supplied.\r\n if (isFirstMount && params.initialData) {\r\n return;\r\n }\r\n // Ignore if validate is supplied and returns false.\r\n if (params.validate && !params.validate()) {\r\n return;\r\n }\r\n // Setup abortable fetch.\r\n refAbortController.current = new AbortController();\r\n const signal = refAbortController.current.signal;\r\n // Trigger fetch with abort signal.\r\n doAsync(signal);\r\n return () => {\r\n // Abort pending request if re-fetching.\r\n refAbortController.current?.abort();\r\n };\r\n async function doAsync(signal) {\r\n setStatus('loading');\r\n const start = Date.now();\r\n const res = await fetch(params.url, {\r\n cache: 'no-cache',\r\n credentials: 'same-origin',\r\n headers: {\r\n Accept: 'application/json',\r\n },\r\n method: 'get',\r\n signal,\r\n });\r\n const resData = await res.json();\r\n const end = Date.now();\r\n const diff = end - start;\r\n /** Ensure at least 500ms is taken to return results to prevent loader flash */\r\n if (diff < minTime) {\r\n await sleep(minTime - diff);\r\n }\r\n setData(resData);\r\n setStatus('complete');\r\n }\r\n }, [params.url]);\r\n return { clear, data, status };\r\n}\r\n","import { useEffect, useState } from 'react';\r\n/**\r\n * Store a value in state based on the specified media queries.\r\n * @param {Array} queries\r\n * @param {Array} values\r\n * @param {T} defaultValue\r\n */\r\nfunction useMedia(queries, values, defaultValue) {\r\n // Function that gets value based on matching media query\r\n const getValue = () => {\r\n // Get index of first media query that matches\r\n const index = mediaQueryLists.findIndex((mql) => mql.matches);\r\n // Return related value or defaultValue if none\r\n return typeof values[index] !== 'undefined' ? values[index] : defaultValue;\r\n };\r\n // State and setter for matched value\r\n const [value, setValue] = useState(defaultValue);\r\n const [mediaQueryLists, setMediaQueryLists] = useState([]);\r\n useEffect(() => {\r\n // Array containing a media query list for each query\r\n setMediaQueryLists(queries.map((query) => window.matchMedia(query)));\r\n }, []);\r\n useEffect(() => {\r\n setValue(getValue);\r\n // Event listener callback\r\n // Note: By defining getValue outside of useEffect we ensure that it has ...\r\n // ... current values of hook args (as this hook callback is created once on mount).\r\n const handler = () => setValue(getValue);\r\n // Set a listener for each media query with above handler as callback.\r\n mediaQueryLists.forEach((mql) => mql.addListener(handler));\r\n // Remove listeners on cleanup\r\n return () => mediaQueryLists.forEach((mql) => mql.removeListener(handler));\r\n }, [mediaQueryLists]); // Empty array ensures effect is only run on mount and unmount\r\n return value;\r\n}\r\nexport default useMedia;\r\n","import brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { tag } from '@helpers/typography';\r\nimport { m } from 'framer-motion';\r\nimport styled from 'styled-components';\r\nconst Container = styled(m.ul) `\r\n --bgColour: ${brand.primary.black};\r\n --fgColour: ${brand.primary.white};\r\n\r\n display: flex;\r\n gap: 8px;\r\n flex-wrap: wrap;\r\n`;\r\nconst Tag = styled.li `\r\n ${tag};\r\n\r\n background-color: var(--bgColour);\r\n color: var(--fgColour);\r\n margin: 0;\r\n padding: 6px ${fluid(8, 12)};\r\n border-radius: ${fluid(4, 8)};\r\n`;\r\nconst CategoryTagsStyles = {\r\n Container,\r\n Tag,\r\n};\r\nexport default CategoryTagsStyles;\r\n","import * as React from 'react';\r\nimport S from './CategoryTags.styles';\r\nconst CategoryTags = (props) => {\r\n if (!props.items || props.items.length === 0) {\r\n return null;\r\n }\r\n return (React.createElement(S.Container, { variants: props.animation }, props.items.map((item) => (React.createElement(S.Tag, { key: item.id, style: {\r\n '--bgColour': item.backgroundColor,\r\n '--fgColour': item.textColor,\r\n } }, item.name)))));\r\n};\r\nexport default CategoryTags;\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { Device, until } from '@helpers/media';\r\nimport styled from 'styled-components';\r\nconst Button = styled.span `\r\n ${transition('background-color, color, border-color, opacity', 0.25, 'ease-in-out')}\r\n\r\n flex-shrink: 0;\r\n opacity: 1;\r\n background-color: transparent;\r\n border: 1px solid ${brand.primary.black};\r\n border-radius: 4px;\r\n width: 32px;\r\n height: 32px;\r\n position: relative;\r\n color: ${brand.primary.black};\r\n\r\n button[disabled] & {\r\n opacity: 0.75;\r\n }\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n border-width: 2px;\r\n\r\n &[data-active='true'] {\r\n background-color: ${brand.primary.black};\r\n color: ${brand.primary.white};\r\n }\r\n }\r\n`;\r\nconst ButtonSvg = styled.div `\r\n position: absolute;\r\n inset: 0;\r\n width: 100%;\r\n height: 100%;\r\n\r\n display: flex;\r\n\r\n svg {\r\n width: 19px;\r\n height: 13px;\r\n margin: auto;\r\n }\r\n`;\r\nexport const FilterButtonStyles = {\r\n Button,\r\n ButtonSvg,\r\n};\r\n","import { Icon, getSvgIcon } from '@helpers/icons';\r\nimport React from 'react';\r\nimport { FilterButtonStyles as S } from './FilterButton.styles';\r\nconst FilterButton = ({ state, onClick }) => {\r\n return (React.createElement(S.Button, { \"data-active\": state !== 'blank', onClick: () => onClick && onClick() },\r\n React.createElement(S.ButtonSvg, { id: state, key: state },\r\n state === 'minus' && getSvgIcon(Icon.Minus),\r\n state === 'check' && getSvgIcon(Icon.Tick))));\r\n};\r\nexport default FilterButton;\r\n","import { createContext } from 'react';\n\n/**\n * @deprecated\n */\nvar DeprecatedLayoutGroupContext = createContext(null);\n\nexport { DeprecatedLayoutGroupContext };\n","var notify = function (node) {\n return !node.isLayoutDirty && node.willUpdate(false);\n};\nfunction nodeGroup() {\n var nodes = new Set();\n var subscriptions = new WeakMap();\n var dirtyAll = function () { return nodes.forEach(notify); };\n return {\n add: function (node) {\n nodes.add(node);\n subscriptions.set(node, node.addEventListener(\"willUpdate\", dirtyAll));\n },\n remove: function (node) {\n var _a;\n nodes.delete(node);\n (_a = subscriptions.get(node)) === null || _a === void 0 ? void 0 : _a();\n subscriptions.delete(node);\n dirtyAll();\n },\n dirty: dirtyAll,\n };\n}\n\nexport { nodeGroup };\n","import { __read, __assign } from 'tslib';\nimport * as React from 'react';\nimport { useContext, useRef, useMemo } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { DeprecatedLayoutGroupContext } from '../../context/DeprecatedLayoutGroupContext.mjs';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { nodeGroup } from '../../projection/node/group.mjs';\n\nvar shouldInheritGroup = function (inherit) { return inherit === true; };\nvar shouldInheritId = function (inherit) {\n return shouldInheritGroup(inherit === true) || inherit === \"id\";\n};\nvar LayoutGroup = function (_a) {\n var _b, _c;\n var children = _a.children, id = _a.id, inheritId = _a.inheritId, _d = _a.inherit, inherit = _d === void 0 ? true : _d;\n // Maintain backwards-compatibility with inheritId until 7.0\n if (inheritId !== undefined)\n inherit = inheritId;\n var layoutGroupContext = useContext(LayoutGroupContext);\n var deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);\n var _e = __read(useForceUpdate(), 2), forceRender = _e[0], key = _e[1];\n var context = useRef(null);\n var upstreamId = (_b = layoutGroupContext.id) !== null && _b !== void 0 ? _b : deprecatedLayoutGroupContext;\n if (context.current === null) {\n if (shouldInheritId(inherit) && upstreamId) {\n id = id ? upstreamId + \"-\" + id : upstreamId;\n }\n context.current = {\n id: id,\n group: shouldInheritGroup(inherit)\n ? (_c = layoutGroupContext === null || layoutGroupContext === void 0 ? void 0 : layoutGroupContext.group) !== null && _c !== void 0 ? _c : nodeGroup()\n : nodeGroup(),\n };\n }\n var memoizedContext = useMemo(function () { return (__assign(__assign({}, context.current), { forceRender: forceRender })); }, [key]);\n return (React.createElement(LayoutGroupContext.Provider, { value: memoizedContext }, children));\n};\n\nexport { LayoutGroup };\n","import { warning } from 'hey-listen';\nimport * as React from 'react';\nimport { useConstant } from '../utils/use-constant.mjs';\nimport { LayoutGroup } from './LayoutGroup/index.mjs';\n\nvar id = 0;\nvar AnimateSharedLayout = function (_a) {\n var children = _a.children;\n React.useEffect(function () {\n warning(false, \"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations\");\n }, []);\n return (React.createElement(LayoutGroup, { id: useConstant(function () { return \"asl-\".concat(id++); }) }, children));\n};\n\nexport { AnimateSharedLayout };\n","import { useEffect, useRef } from 'react';\nimport { isBrowser, off, on } from './misc/util';\nexport function getClosestBody(el) {\n if (!el) {\n return null;\n }\n else if (el.tagName === 'BODY') {\n return el;\n }\n else if (el.tagName === 'IFRAME') {\n var document_1 = el.contentDocument;\n return document_1 ? document_1.body : null;\n }\n else if (!el.offsetParent) {\n return null;\n }\n return getClosestBody(el.offsetParent);\n}\nfunction preventDefault(rawEvent) {\n var e = rawEvent || window.event;\n // Do not prevent if the event has more than one touch (usually meaning this is a multi touch gesture like pinch to zoom).\n if (e.touches.length > 1)\n return true;\n if (e.preventDefault)\n e.preventDefault();\n return false;\n}\nvar isIosDevice = isBrowser &&\n window.navigator &&\n window.navigator.platform &&\n /iP(ad|hone|od)/.test(window.navigator.platform);\nvar bodies = new Map();\nvar doc = typeof document === 'object' ? document : undefined;\nvar documentListenerAdded = false;\nexport default !doc\n ? function useLockBodyMock(_locked, _elementRef) {\n if (_locked === void 0) { _locked = true; }\n }\n : function useLockBody(locked, elementRef) {\n if (locked === void 0) { locked = true; }\n var bodyRef = useRef(doc.body);\n elementRef = elementRef || bodyRef;\n var lock = function (body) {\n var bodyInfo = bodies.get(body);\n if (!bodyInfo) {\n bodies.set(body, { counter: 1, initialOverflow: body.style.overflow });\n if (isIosDevice) {\n if (!documentListenerAdded) {\n on(document, 'touchmove', preventDefault, { passive: false });\n documentListenerAdded = true;\n }\n }\n else {\n body.style.overflow = 'hidden';\n }\n }\n else {\n bodies.set(body, {\n counter: bodyInfo.counter + 1,\n initialOverflow: bodyInfo.initialOverflow,\n });\n }\n };\n var unlock = function (body) {\n var bodyInfo = bodies.get(body);\n if (bodyInfo) {\n if (bodyInfo.counter === 1) {\n bodies.delete(body);\n if (isIosDevice) {\n body.ontouchmove = null;\n if (documentListenerAdded) {\n off(document, 'touchmove', preventDefault);\n documentListenerAdded = false;\n }\n }\n else {\n body.style.overflow = bodyInfo.initialOverflow;\n }\n }\n else {\n bodies.set(body, {\n counter: bodyInfo.counter - 1,\n initialOverflow: bodyInfo.initialOverflow,\n });\n }\n }\n };\n useEffect(function () {\n var body = getClosestBody(elementRef.current);\n if (!body) {\n return;\n }\n if (locked) {\n lock(body);\n }\n else {\n unlock(body);\n }\n }, [locked, elementRef.current]);\n // clean up, on un-mount\n useEffect(function () {\n var body = getClosestBody(elementRef.current);\n if (!body) {\n return;\n }\n return function () {\n unlock(body);\n };\n }, []);\n };\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Layers } from '@helpers/layers';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport { h5, paragraphLarge, paragraphSmall } from '@helpers/typography';\r\nimport ButtonStyles from '@stories/Components/Buttons/Button/Button.styles';\r\nimport { FilterButtonStyles } from '@stories/Components/Buttons/FilterButton/FilterButton.styles';\r\nimport { m } from 'framer-motion';\r\nimport styled from 'styled-components';\r\nconst Container = styled.div ``;\r\nconst FilterPill = styled(m.div).attrs(() => ({\r\n initial: 'hidden',\r\n animate: 'visible',\r\n exit: 'hidden',\r\n variants: {\r\n hidden: { opacity: 0, scale: 0.9 },\r\n visible: { opacity: 1, scale: 1 },\r\n },\r\n})) `\r\n background-color: ${brand.tertiary.teal};\r\n padding: 7px 12px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n gap: ${fluid(12, 16)};\r\n border-radius: ${fluid(8, 12)};\r\n color: ${brand.primary.white};\r\n cursor: pointer;\r\n\r\n filter: grayscale(0);\r\n ${transition('filter', 0.25, 'ease-in-out')}\r\n [data-loading='true'] & {\r\n pointer-events: none;\r\n filter: grayscale(1);\r\n }\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n white-space: nowrap;\r\n width: max-content;\r\n min-width: max-content;\r\n height: max-content;\r\n }\r\n\r\n span {\r\n ${paragraphSmall}\r\n margin: 0;\r\n ${fonts.poppins.extraBold};\r\n color: ${brand.primary.white};\r\n }\r\n\r\n svg {\r\n --size: ${fluid(20, 32)};\r\n width: var(--size);\r\n height: var(--size);\r\n flex-shrink: 0;\r\n }\r\n`;\r\nconst FiltersHeader = styled.div `\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n color: ${brand.primary.black};\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n\r\n svg {\r\n width: 32px;\r\n height: 32px;\r\n color: ${brand.primary.black};\r\n\r\n path {\r\n fill: ${brand.primary.black};\r\n }\r\n }\r\n`;\r\nconst FiltersTitle = styled.span `\r\n ${fonts.poppins.bold};\r\n font-size: 32px;\r\n line-height: 30px;\r\n`;\r\nconst FiltersSelected = styled(m.div).attrs(() => ({\r\n initial: 'hidden',\r\n animate: 'visible',\r\n exit: 'hidden',\r\n variants: {\r\n hidden: { opacity: 0, scale: 0.9 },\r\n visible: { opacity: 1, scale: 1 },\r\n },\r\n})) `\r\n display: flex;\r\n flex-wrap: nowrap;\r\n gap: 8px;\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n overflow-x: auto;\r\n overflow-y: clip;\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n flex-wrap: wrap;\r\n }\r\n`;\r\nconst CollapsibleFilters = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n gap: ${fluid(15, 56)};\r\n`;\r\nconst CollapsibleFilter = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n`;\r\nconst CollapsibleFilterHeader = styled.div `\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding-bottom: ${fluid(13, 16)};\r\n cursor: pointer;\r\n\r\n border-bottom: 1px solid ${brand.primary.black};\r\n @media ${until(Device.TabletLarge)} {\r\n border-bottom-width: 2px;\r\n }\r\n\r\n span {\r\n ${h5}\r\n margin: 0;\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n margin-right: auto;\r\n ${fonts.poppins.extraBold};\r\n }\r\n }\r\n\r\n svg {\r\n width: 18px;\r\n height: 9px;\r\n ${transition('transform', 0.35, 'ease-in-out')}\r\n\r\n [data-expanded='true'] & {\r\n transform: rotate(180deg);\r\n }\r\n }\r\n`;\r\nconst CollapsibleBodyWrapper = styled(m.div).attrs((props) => ({\r\n initial: 'collapsed',\r\n animate: props['data-expanded'] ? 'expanded' : 'collapsed',\r\n variants: {\r\n collapsed: {\r\n height: '0px',\r\n },\r\n expanded: {\r\n height: 'auto',\r\n },\r\n },\r\n transition: {\r\n bounce: 0,\r\n },\r\n})) `\r\n overflow: hidden;\r\n`;\r\nconst CollapsibleBody = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n gap: ${fluid(15, 24)};\r\n padding-top: 24px;\r\n`;\r\nconst FilterOption = styled.button `\r\n ${ButtonReset};\r\n\r\n display: flex;\r\n align-items: center;\r\n gap: ${fluid(8, 16)};\r\n cursor: pointer;\r\n text-align: left;\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n &:last-child {\r\n padding-bottom: 15px;\r\n }\r\n }\r\n\r\n &[data-is-all='true'] {\r\n border-bottom: 1px solid ${brand.grey.light};\r\n padding-bottom: 14px;\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n border-width: 2px;\r\n }\r\n }\r\n\r\n span {\r\n ${paragraphLarge};\r\n\r\n margin: 0;\r\n }\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n &:has(${FilterButtonStyles.Button}[data-active='true']) {\r\n span {\r\n font-weight: 800;\r\n }\r\n }\r\n }\r\n`;\r\nconst FilterActiveIndicator = styled.div `\r\n width: 6px;\r\n height: 6px;\r\n margin-right: 8px;\r\n border-radius: 50%;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n\r\n background: ${brand.primary.orange};\r\n`;\r\nconst MobileFilterToggleButton = styled.button `\r\n ${ButtonReset};\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n\r\n grid-column: 1 / -1;\r\n width: 100%;\r\n border-radius: 12px;\r\n\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\r\n background-color: ${brand.tertiary.teal};\r\n padding: 12px 16px;\r\n\r\n [data-mobile-tray='true'] & {\r\n margin-bottom: 24px;\r\n background-color: unset;\r\n padding: 0;\r\n\r\n ${() => MobileFilterToggleIcon} {\r\n background-color: ${brand.primary.black};\r\n color: ${brand.primary.white};\r\n }\r\n\r\n ${() => MobileFilterToggleText} {\r\n & > * {\r\n color: ${brand.primary.black};\r\n }\r\n }\r\n\r\n ${() => MobileFilterToggleChevron} {\r\n ${ButtonStyles.Container} {\r\n --bgColour: ${brand.primary.black};\r\n --borderColour: ${brand.primary.black};\r\n --colourText: ${brand.primary.white};\r\n --colourTextHover: ${brand.primary.black};\r\n }\r\n }\r\n }\r\n`;\r\nconst MobileFilterToggleIcon = styled.div `\r\n width: 48px;\r\n height: 48px;\r\n border-radius: 8px;\r\n\r\n background-color: ${brand.primary.white};\r\n color: ${brand.primary.black};\r\n\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n svg {\r\n width: 20px;\r\n height: 20px;\r\n\r\n path {\r\n fill: ${brand.primary.black};\r\n }\r\n\r\n [data-mobile-tray='true'] & {\r\n path {\r\n stroke: ${brand.primary.white};\r\n fill: ${brand.primary.white};\r\n }\r\n }\r\n }\r\n`;\r\nconst MobileFilterToggleText = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n\r\n > span {\r\n color: ${brand.primary.white};\r\n ${fonts.poppins.extraBold};\r\n font-size: 16px;\r\n line-height: 18px;\r\n }\r\n\r\n small {\r\n ${fonts.poppins.regular};\r\n color: ${brand.primary.white};\r\n font-size: 10px;\r\n line-height: 18px;\r\n text-align: left;\r\n\r\n span {\r\n ${fonts.poppins.extraBold};\r\n }\r\n }\r\n`;\r\nconst MobileFilterToggleChevron = styled.div `\r\n margin-left: auto;\r\n\r\n ${ButtonStyles.Container} {\r\n --buttonHeight: 32px;\r\n\r\n ${ButtonStyles.IconWrapper} {\r\n --iconHeight: 12px;\r\n }\r\n }\r\n`;\r\nconst MotionMobileTray = styled(m.div).attrs((props) => ({\r\n initial: 'collapsed',\r\n animate: props['data-tray-expanded'] ? 'expanded' : 'collapsed',\r\n variants: {\r\n collapsed: {\r\n left: '100%',\r\n },\r\n expanded: {\r\n left: '0%',\r\n },\r\n },\r\n transition: {\r\n ease: 'easeInOut',\r\n bounce: 0,\r\n duration: 0.75,\r\n },\r\n})) `\r\n position: fixed;\r\n inset: 0;\r\n z-index: ${Layers.Modal - 1};\r\n height: 100dvh;\r\n width: 100dvw;\r\n overflow-y: auto;\r\n overflow-x: clip;\r\n background: ${brand.primary.white};\r\n\r\n padding: 24px 16px;\r\n`;\r\nconst DesktopFilters = styled.div `\r\n display: contents;\r\n @media ${until(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n`;\r\nconst MobileFilters = styled.div `\r\n display: contents;\r\n @media ${from(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n`;\r\nconst FiltersContainer = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n gap: ${fluid(20, 58)};\r\n`;\r\nexport const FiltersStyles = {\r\n CollapsibleBody,\r\n CollapsibleBodyWrapper,\r\n CollapsibleFilter,\r\n CollapsibleFilterHeader,\r\n CollapsibleFilters,\r\n Container,\r\n DesktopFilters,\r\n FilterActiveIndicator,\r\n FilterOption,\r\n FilterPill,\r\n FiltersContainer,\r\n FiltersHeader,\r\n FiltersSelected,\r\n FiltersTitle,\r\n MobileFilters,\r\n MobileFilterToggleButton,\r\n MobileFilterToggleChevron,\r\n MobileFilterToggleIcon,\r\n MobileFilterToggleText,\r\n MotionMobileTray,\r\n};\r\n","import { Icon, getSvgIcon } from '@helpers/icons';\r\nimport { withMotionMax } from '@hoc/withMotionMax';\r\nimport { FakeButton } from '@stories/Components/Buttons/Button/Button';\r\nimport FilterButton from '@stories/Components/Buttons/FilterButton/FilterButton';\r\nimport { AnimatePresence, AnimateSharedLayout } from 'framer-motion';\r\nimport React from 'react';\r\nimport { useLockBodyScroll } from 'react-use';\r\nimport { FiltersStyles as S } from './Filters.styles';\r\nconst Filters = ({ filters, data: api, translations }) => {\r\n const [filtersExpanded, setFiltersExpanded] = React.useState(false);\r\n const [expandedFilters, setExpandedFilters] = React.useState(filters.length > 0 ? [filters[0].id] : []);\r\n useLockBodyScroll(filtersExpanded);\r\n const toggleFilterCollapse = (filterId) => {\r\n const clone = [...expandedFilters];\r\n const index = clone.indexOf(filterId);\r\n if (index === -1) {\r\n clone.push(filterId);\r\n }\r\n else {\r\n clone.splice(index, 1);\r\n }\r\n setExpandedFilters(clone);\r\n };\r\n const ActiveFilters = React.useMemo(() => {\r\n const filterItems = filters\r\n .filter((f) => f.value.length > 0)\r\n .map((filter) => {\r\n if (filter.value.length === 0) {\r\n return [];\r\n }\r\n return filter.options\r\n .filter((option) => filter.value.includes(option.id) && option.id !== 'all')\r\n .map((option) => (React.createElement(S.FilterPill, { onClick: () => filter.onChange(option.id), key: `${option.id}_${filter.id}_selected`, layoutId: `${option.id}_${filter.id}_selected` },\r\n React.createElement(\"span\", null, option.title),\r\n getSvgIcon(Icon.CircleClose))));\r\n })\r\n .flat();\r\n return filterItems;\r\n }, [filters]);\r\n if (filters.length === 0) {\r\n return null;\r\n }\r\n const FilterContent = (React.createElement(S.FiltersContainer, null,\r\n React.createElement(S.FiltersHeader, null,\r\n React.createElement(S.FiltersTitle, null, translations?.['listings.filters'] ?? 'Filters'),\r\n getSvgIcon(Icon.Filter)),\r\n React.createElement(AnimatePresence, null, ActiveFilters && ActiveFilters.length > 0 && (React.createElement(S.FiltersSelected, null,\r\n React.createElement(AnimateSharedLayout, null,\r\n React.createElement(AnimatePresence, null, ActiveFilters))))),\r\n React.createElement(S.CollapsibleFilters, null, filters.map((filter) => {\r\n const expanded = expandedFilters.indexOf(filter.id) > -1;\r\n const active = filter.value && filter.value.length > 0;\r\n return (React.createElement(S.CollapsibleFilter, { \"data-expanded\": expanded, key: `BlogListing_${filter.id}` },\r\n React.createElement(S.CollapsibleFilterHeader, { onClick: () => api.status !== 'loading' && toggleFilterCollapse(filter.id) },\r\n active && React.createElement(S.FilterActiveIndicator, null),\r\n React.createElement(\"span\", null, filter.title),\r\n getSvgIcon(Icon.Chevron)),\r\n React.createElement(S.CollapsibleBodyWrapper, { \"data-expanded\": expanded },\r\n React.createElement(S.CollapsibleBody, null, filter.options.map((option) => {\r\n let state = 'blank';\r\n if (filter.value.indexOf(option.id) > -1 ||\r\n (option.isAll && filter.value.length === 0)) {\r\n state = 'check';\r\n }\r\n else if (filter.value.length > 0 && option.isAll) {\r\n state = 'minus';\r\n }\r\n return (React.createElement(S.FilterOption, { key: `BlogListing_${filter.id}_Option_${option.id}`, \"data-is-all\": option.isAll, onClick: () => api.status !== 'loading' && filter.onChange(option.id), disabled: api.status === 'loading' },\r\n React.createElement(FilterButton, { state: state }),\r\n React.createElement(\"span\", null,\r\n option.title,\r\n \" \",\r\n option.count && React.createElement(\"strong\", null,\r\n \"(\",\r\n option.count,\r\n \")\"))));\r\n })))));\r\n }))));\r\n const getMobileFilterToggleButton = (icon) => (React.createElement(S.MobileFilterToggleButton, { onClick: () => setFiltersExpanded(!filtersExpanded) },\r\n React.createElement(S.MobileFilterToggleIcon, null, getSvgIcon(Icon.Filter)),\r\n React.createElement(S.MobileFilterToggleText, null,\r\n React.createElement(\"span\", null, translations?.['filters.title'] ?? 'Filters'),\r\n React.createElement(\"small\", null,\r\n React.createElement(\"span\", null, api.data?.totalItems),\r\n \" \",\r\n translations?.['filters.results'] ?? 'results')),\r\n React.createElement(S.MobileFilterToggleChevron, null,\r\n React.createElement(FakeButton, { buttonType: \"solid-white\", iconOnly: true, icon: icon }))));\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(S.DesktopFilters, null, FilterContent),\r\n getMobileFilterToggleButton(Icon.ChevronRight),\r\n React.createElement(S.MotionMobileTray, { \"data-mobile-tray\": true, \"data-tray-expanded\": filtersExpanded },\r\n getMobileFilterToggleButton(Icon.CrossClose),\r\n FilterContent)));\r\n};\r\nexport default withMotionMax(Filters);\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport ButtonStyles from '@stories/Components/Buttons/Button/Button.styles';\r\nimport styled from 'styled-components';\r\nconst Container = styled.div `\r\n display: flex;\r\n align-items: center;\r\n overflow: hidden;\r\n\r\n @media ${until(Device.MobileLarge)} {\r\n flex-direction: column;\r\n gap: 16px;\r\n }\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n justify-content: space-between;\r\n }\r\n`;\r\nconst PaginationControls = styled.div `\r\n display: flex;\r\n align-items: center;\r\n gap: ${fluid(0, 30)};\r\n\r\n @media ${until(Device.MobileLarge)} {\r\n width: 100%;\r\n justify-content: space-between;\r\n }\r\n\r\n ul.pagination {\r\n display: flex;\r\n align-items: center;\r\n gap: ${fluid(6, 8)};\r\n\r\n li {\r\n --borderColour: transparent;\r\n --bgColour: ${brand.primary.stone};\r\n\r\n [data-disabled='true'] & {\r\n opacity: 0.75;\r\n pointer-events: none;\r\n }\r\n\r\n a {\r\n --size: ${fluid(33, 42)};\r\n width: var(--size);\r\n height: var(--size);\r\n\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n }\r\n\r\n cursor: pointer;\r\n user-select: none;\r\n border-radius: 6px;\r\n\r\n ${fonts.poppins.extraBold};\r\n font-size: ${fluid(19, 23)};\r\n line-height: ${fluid(25, 30)};\r\n\r\n &.selected {\r\n --borderColour: ${brand.tertiary.teal};\r\n --bgColour: ${brand.primary.white};\r\n }\r\n\r\n &.break {\r\n --bgColour: transparent;\r\n }\r\n\r\n border: 3px solid var(--borderColour);\r\n background-color: var(--bgColour);\r\n\r\n ${transition('border, background-color, opacity', 0.25, 'ease-out')}\r\n }\r\n\r\n li.previous,\r\n li.next {\r\n display: none;\r\n }\r\n }\r\n`;\r\nconst PageDisplay = styled.small `\r\n font-size: 16px;\r\n line-height: 24px;\r\n user-select: none;\r\n\r\n ${fonts.poppins.regular};\r\n span {\r\n ${fonts.poppins.bold};\r\n }\r\n`;\r\nconst PageButton = styled.button `\r\n ${ButtonReset}\r\n\r\n &:disabled {\r\n opacity: 0.5;\r\n pointer-events: none;\r\n }\r\n\r\n &:first-child {\r\n transform: rotate(180deg);\r\n }\r\n\r\n ${ButtonStyles.Container} {\r\n --buttonHeight: ${fluid(38, 48)};\r\n --colourText: ${brand.primary.white};\r\n --bgColour: ${brand.tertiary.teal};\r\n\r\n --colourTextHover: ${brand.primary.black};\r\n --borderColour: ${brand.tertiary.teal};\r\n --borderWidth: 3px;\r\n }\r\n`;\r\nexport const PaginationStyles = {\r\n Container,\r\n PageButton,\r\n PageDisplay,\r\n PaginationControls,\r\n};\r\n","import { Device, until } from '@helpers/media';\r\nimport useMedia from '@hooks/useMedia';\r\nimport { FakeButton } from '@stories/Components/Buttons/Button/Button';\r\nimport React from 'react';\r\nimport ReactPaginate from 'react-paginate';\r\nimport { PaginationStyles as S } from './Pagination.styles';\r\nconst Pagination = ({ currentPage, pageCount, onChange, disabled, translations, }) => {\r\n const isMobile = useMedia([`${until(Device.MobileLarge)}`], [true], false);\r\n return (React.createElement(S.Container, { \"data-disabled\": disabled },\r\n React.createElement(S.PageDisplay, null,\r\n \"Page \",\r\n React.createElement(\"span\", null, currentPage),\r\n \" of \",\r\n React.createElement(\"span\", null, pageCount)),\r\n React.createElement(S.PaginationControls, null,\r\n React.createElement(S.PageButton, { disabled: currentPage === 1 || disabled, onClick: () => onChange(currentPage - 1), \"aria-label\": translations?.['listings.previousPage'] ?? 'Previous Page' },\r\n React.createElement(FakeButton, { buttonType: \"solid-white\", iconOnly: true })),\r\n React.createElement(ReactPaginate, { pageCount: pageCount, forcePage: currentPage - 1, pageRangeDisplayed: isMobile ? 1 : 2, marginPagesDisplayed: 1, breakLabel: \"...\", onPageChange: (s) => onChange(s.selected + 1), className: \"pagination\" }),\r\n React.createElement(S.PageButton, { disabled: currentPage === pageCount || disabled, onClick: () => onChange(currentPage + 1), \"aria-label\": translations?.['listings.nextPage'] ?? 'Next Page' },\r\n React.createElement(FakeButton, { buttonType: \"solid-white\", iconOnly: true })))));\r\n};\r\nexport default Pagination;\r\n","import brand from '@helpers/brand';\r\nimport { siteWide } from '@helpers/grid';\r\nimport { m } from 'framer-motion';\r\nimport styled, { css } from 'styled-components';\r\nexport const SectionWrapperCSS = css `\r\n color: var(--sectionColour, ${brand.primary.black});\r\n background: var(--sectionBackground, transparent);\r\n scroll-margin: var(--headerHeight, 0px) 0 0;\r\n\r\n &[data-flush='top'] {\r\n --sectionSpacingTop: 0;\r\n }\r\n\r\n &[data-flush='bottom'] {\r\n --sectionSpacingBottom: 0;\r\n }\r\n\r\n &[data-flush='both'] {\r\n --sectionSpacingTop: 0;\r\n --sectionSpacingBottom: 0;\r\n }\r\n\r\n /* Variant text colours */\r\n &[data-variant='blue'],\r\n &[data-variant='charcoal'],\r\n &[data-variant='orange'],\r\n &[data-variant='pink'] {\r\n --sectionColour: ${brand.primary.white};\r\n }\r\n\r\n &[data-variant='stone'],\r\n &[data-variant='white'] {\r\n --sectionColour: ${brand.primary.black};\r\n }\r\n\r\n /* Variant background colours */\r\n &[data-variant='pink'] {\r\n --bgAngle: 90deg;\r\n }\r\n\r\n &[data-variant='blue'],\r\n &[data-variant='charcoal'] {\r\n --bgAngle: 105deg;\r\n }\r\n\r\n &[data-variant='orange'] {\r\n --bgAngle: 0deg;\r\n }\r\n\r\n &[data-variant='blue'] {\r\n --sectionBackground: linear-gradient(var(--bgAngle), #3372aa 0%, #1e2f6d 100%);\r\n }\r\n\r\n &[data-variant='charcoal'] {\r\n --sectionBackground: linear-gradient(var(--bgAngle), #2b2b2b 0%, #505050 100%);\r\n }\r\n\r\n &[data-variant='orange'] {\r\n --sectionBackground: linear-gradient(var(--bgAngle), #f47929 0%, #f17028 58.6%, #e24321 98.36%);\r\n }\r\n\r\n &[data-variant='pink'] {\r\n --sectionBackground: linear-gradient(var(--bgAngle), #9f4a92 0%, #cc709c 53%, #f491a4 100%);\r\n }\r\n\r\n &[data-variant='stone'] {\r\n --sectionBackground: ${brand.primary.stone};\r\n }\r\n\r\n &[data-variant='white'] {\r\n --sectionBackground: ${brand.primary.white};\r\n }\r\n`;\r\nconst Container = styled(m.section) `\r\n ${SectionWrapperCSS};\r\n`;\r\nexport const SectionWrapperInnerCSS = css `\r\n ${siteWide};\r\n\r\n padding-top: var(--sectionSpacingTop);\r\n padding-bottom: var(--sectionSpacingBottom);\r\n`;\r\nconst Inner = styled.div `\r\n ${SectionWrapperInnerCSS};\r\n`;\r\nconst SectionWrapperStyles = {\r\n Container,\r\n Inner,\r\n};\r\nexport default SectionWrapperStyles;\r\n","import * as React from 'react';\r\nimport S from './SectionWrapper.styles';\r\nconst SectionWrapper = React.forwardRef((props, ref) => {\r\n const { id, children, layout = 'default', flush = 'none', variant, ...otherProps } = props;\r\n return (React.createElement(S.Container, { ref: ref, id: id, \"data-flush\": flush, \"data-variant\": variant, ...otherProps }, renderLayout()));\r\n function renderLayout() {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n //@ts-ignore\r\n if (layout === 'fullWidth') {\r\n return children;\r\n }\r\n return React.createElement(S.Inner, null, children);\r\n }\r\n});\r\nSectionWrapper.displayName = 'SectionWrapper';\r\nexport default SectionWrapper;\r\n","export var noop = function () { };\nexport function on(obj) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (obj && obj.addEventListener) {\n obj.addEventListener.apply(obj, args);\n }\n}\nexport function off(obj) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (obj && obj.removeEventListener) {\n obj.removeEventListener.apply(obj, args);\n }\n}\nexport var isBrowser = typeof window !== 'undefined';\nexport var isNavigator = typeof navigator !== 'undefined';\n","import { __values } from 'tslib';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useId } from '../../utils/use-id.mjs';\n\nvar PresenceChild = function (_a) {\n var children = _a.children, initial = _a.initial, isPresent = _a.isPresent, onExitComplete = _a.onExitComplete, custom = _a.custom, presenceAffectsLayout = _a.presenceAffectsLayout;\n var presenceChildren = useConstant(newChildrenMap);\n var id = useId();\n var context = useMemo(function () { return ({\n id: id,\n initial: initial,\n isPresent: isPresent,\n custom: custom,\n onExitComplete: function (childId) {\n var e_1, _a;\n presenceChildren.set(childId, true);\n try {\n for (var _b = __values(presenceChildren.values()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var isComplete = _c.value;\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n onExitComplete === null || onExitComplete === void 0 ? void 0 : onExitComplete();\n },\n register: function (childId) {\n presenceChildren.set(childId, false);\n return function () { 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(function () {\n presenceChildren.forEach(function (_, key) { return 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(function () {\n !isPresent && !presenceChildren.size && (onExitComplete === null || onExitComplete === void 0 ? void 0 : onExitComplete());\n }, [isPresent]);\n return (React.createElement(PresenceContext.Provider, { value: context }, children));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import { __read, __spreadArray } from 'tslib';\nimport * 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';\n\nvar getChildKey = function (child) { return child.key || \"\"; };\nfunction updateChildLookup(children, allChildren) {\n children.forEach(function (child) {\n var key = getChildKey(child);\n allChildren.set(key, child);\n });\n}\nfunction onlyElements(children) {\n var filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, function (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 */\nvar AnimatePresence = function (_a) {\n var children = _a.children, custom = _a.custom, _b = _a.initial, initial = _b === void 0 ? true : _b, onExitComplete = _a.onExitComplete, exitBeforeEnter = _a.exitBeforeEnter, _c = _a.presenceAffectsLayout, presenceAffectsLayout = _c === void 0 ? true : _c;\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 var _d = __read(useForceUpdate(), 1), forceRender = _d[0];\n var forceRenderLayoutGroup = useContext(LayoutGroupContext).forceRender;\n if (forceRenderLayoutGroup)\n forceRender = forceRenderLayoutGroup;\n var isMounted = useIsMounted();\n // Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key\n var filteredChildren = onlyElements(children);\n var childrenToRender = filteredChildren;\n var 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 var presentChildren = useRef(childrenToRender);\n // A lookup table to quickly reference components by key\n var 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 var isInitialRender = useRef(true);\n useIsomorphicLayoutEffect(function () {\n isInitialRender.current = false;\n updateChildLookup(filteredChildren, allChildren);\n presentChildren.current = childrenToRender;\n });\n useUnmountEffect(function () {\n isInitialRender.current = true;\n allChildren.clear();\n exiting.clear();\n });\n if (isInitialRender.current) {\n return (React.createElement(React.Fragment, null, childrenToRender.map(function (child) { return (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout }, child)); })));\n }\n // If this is a subsequent render, deal with entering and exiting children\n childrenToRender = __spreadArray([], __read(childrenToRender), false);\n // Diff the keys of the currently-present and target children to update our\n // exiting list.\n var presentKeys = presentChildren.current.map(getChildKey);\n var targetKeys = filteredChildren.map(getChildKey);\n // Diff the present children with our target children and mark those that are exiting\n var numPresent = presentKeys.length;\n for (var i = 0; i < numPresent; i++) {\n var 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 (exitBeforeEnter && 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(function (key) {\n // If this component is actually entering again, early return\n if (targetKeys.indexOf(key) !== -1)\n return;\n var child = allChildren.get(key);\n if (!child)\n return;\n var insertionIndex = presentKeys.indexOf(key);\n var onExit = function () {\n allChildren.delete(key);\n exiting.delete(key);\n // Remove this child from the present children\n var removeIndex = presentChildren.current.findIndex(function (presentChild) { return 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 }, 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(function (child) {\n var key = child.key;\n return exiting.has(key) ? (child) : (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout: presenceAffectsLayout }, child));\n });\n if (env !== \"production\" &&\n exitBeforeEnter &&\n childrenToRender.length > 1) {\n console.warn(\"You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.\");\n }\n return (React.createElement(React.Fragment, null, exiting.size\n ? childrenToRender\n : childrenToRender.map(function (child) { return cloneElement(child); })));\n};\n\nexport { AnimatePresence };\n","import { __read } from 'tslib';\nimport sync from 'framesync';\nimport { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\n\nfunction useForceUpdate() {\n var isMounted = useIsMounted();\n var _a = __read(useState(0), 2), forcedRenderCount = _a[0], setForcedRenderCount = _a[1];\n var forceRender = useCallback(function () {\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 var deferredForceRender = useCallback(function () { return sync.postRender(forceRender); }, [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n","import { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n var isMounted = useRef(false);\n useIsomorphicLayoutEffect(function () {\n isMounted.current = true;\n return function () {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n"],"names":["imageUrl","image","imageParams","params","center","focalPoint","top","left","undefined","width","heightratio","height","Math","round","paramsString","queryString","src","getSrcs","upper","lower","steps","ratio","srcSet","sizes","increment","Array","fill","map","_","index","ceil","getRange","sizesArr","size","split","join","Layers","Header","Navigation","Modal","withMotionMax","WrappedComponent","displayName","name","ComponentWithMotionMax","props","React","LazyMotion","features","domMax","strict","withQueryParams","ComponentWithQueryParams","QueryParamProvider","ReactRouterRoute","Route","ComponentWithRouter","window","location","Error","StaticRouter","basename","context","BrowserRouter","withRouter","useApi","refAbortController","isFirstMount","useFirstMountState","data","setData","initialData","status","setStatus","validate","current","AbortController","async","signal","start","Date","now","res","fetch","url","cache","credentials","headers","Accept","method","resData","json","diff","sleep","doAsync","_refAbortController$c","abort","clear","queries","values","defaultValue","getValue","mediaQueryLists","findIndex","mql","matches","value","setValue","useState","setMediaQueryLists","useEffect","query","matchMedia","handler","forEach","addListener","removeListener","Container","styled","m","ul","withConfig","componentId","brand","primary","black","white","Tag","li","tag","fluid","items","length","S","variants","animation","item","key","id","style","backgroundColor","textColor","FilterButtonStyles","Button","span","transition","until","Device","TabletLarge","ButtonSvg","div","_ref","state","onClick","getSvgIcon","Icon","Minus","Tick","DeprecatedLayoutGroupContext","createContext","notify","node","isLayoutDirty","willUpdate","shouldInheritGroup","inherit","LayoutGroup","_a","_b","_c","children","inheritId","_d","nodes","subscriptions","dirtyAll","layoutGroupContext","useContext","LayoutGroupContext","L","deprecatedLayoutGroupContext","_e","forceRender","useRef","upstreamId","shouldInheritId","group","Set","WeakMap","add","set","addEventListener","remove","delete","get","dirty","memoizedContext","useMemo","Provider","AnimateSharedLayout","concat","getClosestBody","el","tagName","document_1","contentDocument","body","offsetParent","preventDefault","rawEvent","e","event","touches","isIosDevice","navigator","platform","test","bodies","Map","doc","document","documentListenerAdded","locked","elementRef","bodyRef","unlock","bodyInfo","counter","ontouchmove","overflow","initialOverflow","on","passive","lock","_locked","_elementRef","FilterPill","attrs","initial","animate","exit","hidden","opacity","scale","visible","tertiary","teal","paragraphSmall","fonts","poppins","extraBold","FiltersHeader","FiltersTitle","bold","FiltersSelected","from","CollapsibleFilters","CollapsibleFilter","CollapsibleFilterHeader","h5","CollapsibleBodyWrapper","collapsed","expanded","bounce","CollapsibleBody","FilterOption","button","ButtonReset","grey","light","paragraphLarge","FilterActiveIndicator","orange","MobileFilterToggleButton","MobileFilterToggleIcon","MobileFilterToggleText","MobileFilterToggleChevron","ButtonStyles","regular","IconWrapper","MotionMobileTray","ease","duration","DesktopFilters","MobileFilters","FiltersStyles","FiltersContainer","_translations$listing","filters","api","translations","filtersExpanded","setFiltersExpanded","expandedFilters","setExpandedFilters","useLockBodyScroll","ActiveFilters","filter","f","options","option","includes","onChange","layoutId","title","CircleClose","flat","FilterContent","Filter","AnimatePresence","indexOf","active","filterId","clone","push","splice","toggleFilterCollapse","Chevron","isAll","disabled","FilterButton","count","getMobileFilterToggleButton","icon","_translations$filters","_api$data","_translations$filters2","totalItems","FakeButton","buttonType","iconOnly","ChevronRight","CrossClose","MobileLarge","PaginationControls","stone","PageDisplay","small","PaginationStyles","PageButton","_translations$listing2","currentPage","pageCount","isMobile","useMedia","ReactPaginate","forcePage","pageRangeDisplayed","marginPagesDisplayed","breakLabel","onPageChange","s","selected","className","SectionWrapperCSS","css","section","SectionWrapperInnerCSS","siteWide","Inner","SectionWrapper","ref","layout","flush","variant","otherProps","obj","args","_i","arguments","apply","off","removeEventListener","isBrowser","PresenceChild","isPresent","onExitComplete","custom","presenceAffectsLayout","presenceChildren","newChildrenMap","childId","e_1","next","done","e_1_1","error","return","call","register","PresenceContext","getChildKey","child","exitBeforeEnter","forceRenderLayoutGroup","isMounted","filteredChildren","filtered","Children","isValidElement","onlyElements","childrenToRender","exiting","presentChildren","allChildren","isInitialRender","updateChildLookup","presentKeys","targetKeys","numPresent","i","insertionIndex","removeIndex","presentChild","has","console","warn","cloneElement","useForceUpdate","forcedRenderCount","setForcedRenderCount","useCallback","postRender","useIsMounted"],"sourceRoot":""}