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c/withQueryParams.tsx","webpack://lcci/./src/hoc/withRouter.tsx","webpack://lcci/./src/hooks/useApi.ts","webpack://lcci/./src/stories/Components/Inputs/Dropdown/Dropdown.tsx","webpack://lcci/./src/stories/Components/Listings/Filters/DropdownFilter/DropdownFilter.styles.ts","webpack://lcci/./src/stories/Components/Listings/Filters/Filters.styles.ts","webpack://lcci/./src/img/icons/cross-squared.svg","webpack://lcci/./src/img/icons/tick-thin.svg","webpack://lcci/./src/stories/Components/Listings/Filters/DropdownFilter/DropdownFilter.tsx","webpack://lcci/./src/stories/Components/Listings/Filters/Filters.tsx","webpack://lcci/./src/stories/Components/Misc/LoadingIndicator/LoadingIndicator.styles.ts","webpack://lcci/./src/stories/Components/Misc/LoadingIndicator/LoadingIndicator.tsx","webpack://lcci/./src/stories/Components/Misc/SectionWrapper/SectionWrapper.styles.ts","webpack://lcci/./src/stories/Components/Misc/SectionWrapper/SectionWrapper.tsx"],"sourcesContent":["var _path;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgChevronUp(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"-0.01 0 12.03 6.01\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"currentColor\",\n d: \"M6.038 0a.545.545 0 01.328.136l5.451 4.907a.548.548 0 11-.733.814L6 1.28.915 5.858a.548.548 0 11-.733-.814L5.634.138A.545.545 0 016.038 0z\"\n })));\n}\n\nexport default SvgChevronUp;","import { css } from 'styled-components';\r\nimport brand from './brand';\r\nexport default css `\r\n &::-webkit-scrollbar-track {\r\n background-color: ${brand.grey.grey40};\r\n }\r\n\r\n &::-webkit-scrollbar {\r\n background-color: ${brand.grey.grey40};\r\n height: 6px;\r\n width: 6px;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb {\r\n background-color: ${brand.primary.base};\r\n border-radius: 0;\r\n cursor: pointer;\r\n }\r\n`;\r\n","import { domAnimation, LazyMotion } from 'framer-motion';\r\nimport React from 'react';\r\nexport function withMotion(WrappedComponent) {\r\n const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n const ComponentWithMotion = (props) => {\r\n return (React.createElement(LazyMotion, { features: domAnimation, strict: true },\r\n React.createElement(WrappedComponent, { ...props })));\r\n };\r\n ComponentWithMotion.displayName = `withMotion(${displayName})`;\r\n return ComponentWithMotion;\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 SvgChevron from '@img/icons/chevron-right.svg';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './Dropdown.styles';\r\nconst Dropdown = React.forwardRef(({ children, hasError = false, ...otherProps }, ref) => {\r\n const [open, setOpen] = React.useState(false);\r\n return (React.createElement(S.Container, { \"data-open\": open, \"data-value\": !!otherProps.value },\r\n React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Select, { ref: ref, \"data-error\": hasError, onClick: () => setOpen(!open), onBlur: () => setOpen(false), onKeyDown: (event) => {\r\n switch (event.key) {\r\n case ' ':\r\n case 'Enter':\r\n setOpen(!open);\r\n break;\r\n default:\r\n break;\r\n }\r\n }, onChange: (event) => {\r\n setOpen(false);\r\n if (otherProps.onChange) {\r\n otherProps.onChange(event);\r\n }\r\n }, ...otherProps }, children)),\r\n React.createElement(SvgChevron, null)));\r\n});\r\nDropdown.displayName = 'Dropdown';\r\nexport default Dropdown;\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 scrollbars from '@helpers/scrollbars';\r\nimport CheckboxStyles from '@stories/Components/Inputs/Checkbox/Checkbox.styles';\r\nimport { m } from 'framer-motion';\r\nimport styled from 'styled-components';\r\nconst FilterItem = styled(m.div) `\r\n position: relative;\r\n color: ${brand.primary.blue};\r\n`;\r\nconst FilterLabel = styled(m.button) `\r\n ${ButtonReset};\r\n ${transition('border-radius')};\r\n ${fonts.apparat.bold};\r\n\r\n font-size: ${fluid(16, 18)};\r\n padding: 7px ${fluid(46, 64)} 7px ${fluid(24, 42)};\r\n margin: 0;\r\n width: 100%;\r\n display: flex;\r\n gap: 16px;\r\n align-items: center;\r\n overflow: hidden;\r\n text-transform: uppercase;\r\n background-color: ${brand.white};\r\n border-radius: 50px;\r\n color: currentColor;\r\n height: ${fluid(45, 54)};\r\n border: 2px solid currentColor;\r\n\r\n @media ${from(Device.Tablet)} {\r\n padding: 7px ${fluid(24, 39)};\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n &[aria-expanded='true'] {\r\n border-radius: 25px 25px 0 0;\r\n }\r\n`;\r\nconst FilterItemIcon = styled(m.span) `\r\n display: block;\r\n flex: 0 0 auto;\r\n width: 8px;\r\n height: 15px;\r\n margin-left: auto;\r\n color: currentColor;\r\n\r\n svg {\r\n display: block;\r\n height: 100%;\r\n width: 100%;\r\n }\r\n`;\r\nconst FilterItemBody = styled(m.div) `\r\n min-width: 0;\r\n overflow: hidden;\r\n`;\r\nconst FilterItemBodyInner = styled.div `\r\n --shadowColour: rgba(0, 0, 0, 0.05);\r\n --borderColor: rgba(0, 0, 0, 0.25);\r\n\r\n position: absolute;\r\n top: 100%;\r\n background-color: ${brand.white};\r\n z-index: 2;\r\n width: 100%;\r\n box-shadow: -0.1px 1px 1.1px var(--shadowColour), -0.2px 2.7px 3px -0.8px var(--shadowColour),\r\n -0.4px 6.3px 7.1px -1.7px var(--shadowColour), -0.9px 15px 16.9px -2.5px var(--shadowColour);\r\n border: 1px solid var(--borderColor);\r\n border-top: 0;\r\n border-radius: 0 0 25px 25px;\r\n padding: 0;\r\n overflow: hidden;\r\n`;\r\nconst FilterGroupButton = styled.button `\r\n ${ButtonReset};\r\n ${fonts.apparat.semiBold};\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n gap: 12px;\r\n width: 100%;\r\n text-align: left;\r\n border-bottom: 1px solid var(--borderColor);\r\n margin: 0;\r\n font-size: ${fluid(16, 18)};\r\n line-height: ${fluid(20, 24)};\r\n text-transform: uppercase;\r\n color: ${brand.black};\r\n`;\r\nconst FilterGroupButtonIcon = styled.span `\r\n position: relative;\r\n display: block;\r\n width: ${fluid(12, 14)};\r\n aspect-ratio: 1;\r\n\r\n &::before,\r\n &::after {\r\n content: '';\r\n position: absolute;\r\n width: 100%;\r\n height: 2px;\r\n top: 50%;\r\n left: 0;\r\n transform: translateY(-50%);\r\n background-color: currentColor;\r\n }\r\n\r\n &::after {\r\n ${transition('transform')};\r\n\r\n ${FilterGroupButton}[data-open='false'] & {\r\n transform: translateY(-50%) rotate(90deg);\r\n }\r\n }\r\n`;\r\nconst CheckboxList = styled.div `\r\n ${scrollbars};\r\n\r\n max-height: 400px;\r\n overflow: auto;\r\n\r\n ${FilterGroupButton},\r\n ${CheckboxStyles.Container} {\r\n padding: ${fluid(8, 10)} ${fluid(24, 32)};\r\n margin: 0;\r\n border-bottom: 1px solid var(--borderColor);\r\n\r\n @media ${from(Device.Tablet)} {\r\n padding: ${fluid(8, 10)} 10px;\r\n }\r\n\r\n @media ${from(Device.DesktopSmall)} {\r\n padding: ${fluid(8, 10)} ${fluid(24, 32)};\r\n }\r\n }\r\n\r\n ${FilterItemBody}:last-of-type ${CheckboxStyles.Container}:last-of-type {\r\n border: 0;\r\n }\r\n\r\n ${CheckboxStyles.CheckboxText} {\r\n padding: 2px 0 0 37px;\r\n\r\n &::before {\r\n height: 21px;\r\n width: 21px;\r\n border-radius: 2px;\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n padding: 0 32px 0 0;\r\n\r\n &::before,\r\n &::after {\r\n display: none;\r\n }\r\n }\r\n }\r\n\r\n &[data-size='large'] ${CheckboxStyles.Tick},${CheckboxStyles.Tick} {\r\n left: 4px;\r\n width: ${fluid(12, 14)};\r\n\r\n @media ${until(Device.Tablet)} {\r\n left: auto;\r\n right: 0;\r\n }\r\n }\r\n`;\r\nconst DropdownFilterStyles = {\r\n CheckboxList,\r\n FilterItem,\r\n FilterItemBody,\r\n FilterItemBodyInner,\r\n FilterItemIcon,\r\n FilterLabel,\r\n FilterGroupButton,\r\n FilterGroupButtonIcon,\r\n};\r\nexport default DropdownFilterStyles;\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 scrollbars from '@helpers/scrollbars';\r\nimport { paragraphSmall } from '@helpers/typography';\r\nimport ButtonStyles from '@stories/Components/Buttons/Button/Button.styles';\r\nimport CheckboxStyles from '@stories/Components/Inputs/Checkbox/Checkbox.styles';\r\nimport DropdownStyles from '@stories/Components/Inputs/Dropdown/Dropdown.styles';\r\nimport { m } from 'framer-motion';\r\nimport { rgba } from 'polished';\r\nimport styled, { css } from 'styled-components';\r\nimport DropdownFilterStyles from './DropdownFilter/DropdownFilter.styles';\r\nconst Wrapper = styled.section `\r\n margin: 0 0 ${fluid(28, 42)};\r\n\r\n &[data-variant='grey'] {\r\n position: relative;\r\n padding: 32px 0;\r\n\r\n &::before {\r\n content: '';\r\n height: 100%;\r\n width: 100vw;\r\n position: absolute;\r\n z-index: 1;\r\n top: 0;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n background-color: ${brand.secondary.lightGrey};\r\n }\r\n }\r\n\r\n &[data-variant='blue'] {\r\n ${DropdownStyles.Container} {\r\n color: ${brand.white};\r\n\r\n option {\r\n color: ${brand.base.blue};\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n &[data-has-advanced='true'] {\r\n margin-bottom: calc(48px + ${fluid(28, 42)});\r\n }\r\n\r\n ${DropdownFilterStyles.FilterLabel} {\r\n white-space: nowrap;\r\n }\r\n\r\n ${DropdownFilterStyles.FilterItem},\r\n ${DropdownStyles.Container} {\r\n flex-basis: 33%;\r\n }\r\n\r\n &[data-many-filters='true'] {\r\n ${DropdownFilterStyles.FilterItem},\r\n ${DropdownStyles.Container} {\r\n max-width: 280px;\r\n }\r\n }\r\n\r\n &[data-many-filters='false'] {\r\n ${DropdownFilterStyles.FilterItem},\r\n ${DropdownStyles.Container} {\r\n max-width: 355px;\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n ${DropdownFilterStyles.FilterItem},\r\n ${DropdownStyles.Container} {\r\n flex-basis: 22%;\r\n }\r\n }\r\n`;\r\nconst Container = styled.div `\r\n position: relative;\r\n z-index: 3;\r\n display: flex;\r\n gap: ${fluid(8, 46)};\r\n\r\n > ${ButtonStyles.Container} {\r\n height: ${fluid(45, 54)};\r\n\r\n ${ButtonStyles.IconWrapper} {\r\n width: 17px;\r\n }\r\n }\r\n\r\n ${DropdownStyles.Container} {\r\n margin: 0 0 0 auto;\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n > ${ButtonStyles.Container}, ${DropdownFilterStyles.FilterItem}, ${DropdownStyles.Container} {\r\n flex: 0 1 50%;\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n align-items: flex-start;\r\n\r\n > ${ButtonStyles.Container} {\r\n display: none;\r\n }\r\n }\r\n`;\r\nconst FiltersWrapper = styled.div `\r\n display: none;\r\n\r\n @media ${from(Device.Tablet)} {\r\n flex: 1;\r\n display: flex;\r\n align-items: flex-start;\r\n flex-wrap: wrap;\r\n row-gap: ${fluid(8, 12)};\r\n\r\n ${Wrapper}[data-many-filters='false'] & {\r\n column-gap: ${fluid(8, 46)};\r\n }\r\n\r\n ${Wrapper}[data-many-filters='true'] & {\r\n column-gap: ${fluid(8, 16)};\r\n }\r\n }\r\n`;\r\nconst Unset = styled.div `\r\n width: 100%;\r\n flex: 0 0 100%;\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: ${fluid(8, 16)} ${fluid(18, 24)};\r\n margin-top: ${fluid(12, 16)};\r\n`;\r\nconst UnsetTitle = styled.span `\r\n ${fonts.apparat.semiBold};\r\n\r\n flex: 0 0 100%;\r\n border-top: 1px solid ${brand.secondary.blueGrey};\r\n padding-top: ${fluid(12, 16)};\r\n font-size: ${fluid(16, 18)};\r\n line-height: ${fluid(26, 28)};\r\n`;\r\nconst UnsetButton = styled.button `\r\n ${ButtonReset};\r\n ${transition('background-color')};\r\n ${fonts.apparat.light};\r\n\r\n border-radius: 5px;\r\n padding: 12px 14px 8px;\r\n color: ${brand.white};\r\n background: ${brand.primary.blue};\r\n display: inline-flex;\r\n align-items: center;\r\n gap: 8px;\r\n font-size: ${fluid(14, 16)};\r\n text-transform: uppercase;\r\n\r\n > svg {\r\n display: block;\r\n width: 9px;\r\n transform: translateY(-2px);\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n &.focus-ring,\r\n &:hover {\r\n background-color: ${rgba(brand.primary.blue, 0.8)};\r\n }\r\n\r\n &[data-type='clear-all'] {\r\n background: ${brand.primary.orange};\r\n\r\n &.focus-ring,\r\n &:hover {\r\n background-color: ${rgba(brand.primary.orange, 0.8)};\r\n }\r\n }\r\n`;\r\nconst Background = styled.div `\r\n ${transition('transform', 0.66)};\r\n\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n height: 100vh;\r\n width: 100vw;\r\n z-index: 998;\r\n background-color: ${rgba(brand.base.blue, 0.75)};\r\n transform: translateX(calc(100% + 50px));\r\n cursor: zoom-out;\r\n\r\n &[data-active='true'] {\r\n transform: none;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: none;\r\n }\r\n`;\r\nconst Tray = styled.div `\r\n ${transition('transform', 0.66)};\r\n\r\n --shadowColour: rgba(0, 0, 0, 0.05);\r\n\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n gap: 32px;\r\n position: fixed;\r\n top: 0;\r\n right: 0;\r\n height: 100vh;\r\n width: min(90vw, 375px);\r\n transform: translateX(calc(100% + 50px));\r\n padding: 24px 16px 16px;\r\n z-index: 999;\r\n background-color: ${brand.white};\r\n box-shadow: -0.1px 1px 1.1px var(--shadowColour), -0.2px 2.7px 3px -0.8px var(--shadowColour),\r\n -0.4px 6.3px 7.1px -1.7px var(--shadowColour), -0.9px 15px 16.9px -2.5px var(--shadowColour);\r\n\r\n &[data-active='true'] {\r\n transform: none;\r\n }\r\n\r\n > ${ButtonStyles.Container} {\r\n width: 100%;\r\n margin: auto 0 0;\r\n justify-content: center;\r\n text-align: center;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: none;\r\n }\r\n`;\r\nconst TrayTitle = styled.p `\r\n ${fonts.apparat.semiBold};\r\n\r\n font-size: ${fluid(22, 24)};\r\n line-height: ${fluid(32, 34)};\r\n`;\r\nconst FilterList = styled.ul `\r\n ${scrollbars};\r\n\r\n margin: 42px -8px ${fluid(24, 32)} 0;\r\n flex: 1;\r\n overflow: auto;\r\n width: calc(100% + 8px);\r\n padding: 0 8px 0 0;\r\n`;\r\nconst FilterItemCommonStyles = css `\r\n ${paragraphSmall};\r\n\r\n margin: 0;\r\n text-transform: uppercase;\r\n color: ${brand.primary.blue};\r\n`;\r\nconst FilterItem = styled.li `\r\n padding: 0 0 ${fluid(16, 18)};\r\n margin: 0;\r\n border-bottom: 1px solid ${brand.primary.blueGrey};\r\n\r\n &[data-label] {\r\n font-weight: bold;\r\n }\r\n\r\n &[data-label]:not(:first-of-type) {\r\n margin-top: 32px;\r\n }\r\n\r\n &:not(:last-of-type) {\r\n margin-bottom: ${fluid(16, 18)};\r\n }\r\n\r\n ${CheckboxStyles.CheckboxText} {\r\n ${transition('transform')};\r\n ${FilterItemCommonStyles};\r\n\r\n padding: 0 32px 0 0;\r\n\r\n &::before,\r\n &::after {\r\n display: none;\r\n }\r\n\r\n /* Mobile click styles - button should mimic press */\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n }\r\n\r\n ${CheckboxStyles.Tick} {\r\n left: auto;\r\n right: 0;\r\n width: ${fluid(12, 14)};\r\n }\r\n\r\n ${CheckboxStyles.CheckboxInput}:checked + ${CheckboxStyles.CheckboxText} {\r\n ${fonts.apparat.semiBold};\r\n }\r\n`;\r\nconst FilterButton = styled.button `\r\n ${ButtonReset};\r\n ${FilterItemCommonStyles};\r\n ${transition('transform')};\r\n\r\n display: flex;\r\n gap: 16px;\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n\r\n > span {\r\n display: grid;\r\n place-content: center;\r\n background-color: ${brand.primary.blueGrey};\r\n height: 30px;\r\n width: 30px;\r\n border-radius: 4px;\r\n }\r\n\r\n /* Mobile click styles - button should mimic press */\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n`;\r\nconst FilterTop = styled.div `\r\n display: flex;\r\n gap: ${fluid(12, 16)};\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n`;\r\nconst BackButton = styled.button `\r\n ${ButtonReset};\r\n ${transition('transform')};\r\n ${fonts.apparat.semiBold};\r\n\r\n display: inline-flex;\r\n gap: ${fluid(8, 10)};\r\n align-items: center;\r\n font-size: ${fluid(16, 18)};\r\n line-height: ${fluid(26, 28)};\r\n color: ${brand.primary.blue};\r\n\r\n > svg {\r\n display: block;\r\n width: ${fluid(12, 14)};\r\n color: var(--accentColor);\r\n transform: translateY(-1px);\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n /* Mobile click styles - button should mimic press */\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n`;\r\nconst ClearButton = styled.button `\r\n ${ButtonReset}\r\n ${FilterItemCommonStyles};\r\n\r\n letter-spacing: 0.05em;\r\n display: inline-flex;\r\n gap: ${fluid(8, 10)};\r\n align-items: center;\r\n\r\n > svg {\r\n display: block;\r\n width: ${fluid(12, 14)};\r\n transform: translateY(-2px);\r\n }\r\n\r\n &:not(div) {\r\n /* Mobile click styles - button should mimic press */\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n }\r\n`;\r\nconst AdvancedWrapper = styled(m.div) `\r\n position: relative;\r\n z-index: 2;\r\n min-width: 0;\r\n overflow: hidden;\r\n\r\n ${FiltersWrapper} {\r\n margin: ${fluid(48, 64)} 0 0;\r\n }\r\n`;\r\nconst AdvancedButton = styled.button `\r\n ${ButtonReset};\r\n ${transition('background-color, color')};\r\n ${fonts.apparat.semiBold};\r\n\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 8px;\r\n padding: 2px 14px 0;\r\n font-size: 20px;\r\n width: 300px;\r\n height: 48px;\r\n border-radius: 0 0 20px 20px;\r\n background-color: ${brand.primary.blue};\r\n color: ${brand.white};\r\n border: 2px solid ${brand.primary.blue};\r\n border-top: 0;\r\n bottom: 0;\r\n left: 50%;\r\n transform: translate(-50%, 100%);\r\n z-index: 1;\r\n\r\n &.focus-ring,\r\n &:hover {\r\n background-color: ${brand.white};\r\n color: ${brand.primary.blue};\r\n }\r\n\r\n svg {\r\n display: block;\r\n }\r\n\r\n &[data-open='false'] {\r\n svg {\r\n width: 10px;\r\n transform: translateY(-5%) rotate(180deg);\r\n }\r\n }\r\n\r\n &[data-open='true'] {\r\n svg {\r\n width: 14px;\r\n transform: translateY(-10%);\r\n }\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n display: none;\r\n }\r\n`;\r\nconst FiltersStyles = {\r\n BackButton,\r\n Background,\r\n ClearButton,\r\n Container,\r\n FilterButton,\r\n FilterItem,\r\n FilterList,\r\n FiltersWrapper,\r\n FilterTop,\r\n Tray,\r\n TrayTitle,\r\n Unset,\r\n UnsetButton,\r\n UnsetTitle,\r\n Wrapper,\r\n AdvancedWrapper,\r\n AdvancedButton,\r\n};\r\nexport default FiltersStyles;\r\n","var _g;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgCrossSquared(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 10.414 10.414\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M.707.707l9 9M9.707.707l-9 9\"\n }))));\n}\n\nexport default SvgCrossSquared;","var _path;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgTickThin(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 14.484 9.566\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M.707 4.358l4.708 4.708L13.776.707\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nexport default SvgTickThin;","import { withMotion } from '@hoc/withMotion';\r\nimport SvgChevron from '@img/icons/chevron-right.svg';\r\nimport { FocusRing, useFocusManager } from '@react-aria/focus';\r\nimport Checkbox from '@stories/Components/Inputs/Checkbox/Checkbox';\r\nimport * as React from 'react';\r\nimport S from './DropdownFilter.styles';\r\nconst DropdownFilter = (props) => {\r\n const [isActive, setIsActive] = React.useState(false);\r\n const fm = useFocusManager();\r\n const refFilterItem = React.useRef(null);\r\n const [openGroup, setOpenGroup] = React.useState('');\r\n const handleRefFilterItemBlur = React.useCallback((e) => {\r\n if (refFilterItem.current && !refFilterItem.current.contains(e.target)) {\r\n setIsActive(false);\r\n document.removeEventListener('click', handleRefFilterItemBlur);\r\n }\r\n }, []);\r\n React.useEffect(() => {\r\n if (isActive && refFilterItem.current) {\r\n window.addEventListener('click', handleRefFilterItemBlur);\r\n }\r\n }, [isActive, handleRefFilterItemBlur]);\r\n return (React.createElement(S.FilterItem, { initial: isActive ? 'opened' : 'closed', animate: isActive ? 'opened' : 'closed', onKeyDown: (event) => {\r\n switch (event.key) {\r\n case 'ArrowDown':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n fm.focusNext();\r\n break;\r\n case 'ArrowUp':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n fm.focusPrevious();\r\n break;\r\n case 'Home':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n fm.focusFirst();\r\n break;\r\n case 'End':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n fm.focusLast();\r\n break;\r\n default:\r\n break;\r\n }\r\n }, ref: refFilterItem },\r\n React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.FilterLabel, { \"aria-expanded\": isActive, onClick: (event) => {\r\n event.preventDefault();\r\n setIsActive(!isActive);\r\n } },\r\n props.label,\r\n React.createElement(S.FilterItemIcon, { \"aria-hidden\": \"true\", variants: {\r\n closed: {\r\n rotate: 90,\r\n },\r\n opened: {\r\n rotate: 270,\r\n },\r\n } },\r\n React.createElement(SvgChevron, null)))),\r\n React.createElement(S.FilterItemBody, { role: \"region\", tabIndex: -1, variants: {\r\n closed: {\r\n height: 0,\r\n transitionEnd: {\r\n visibility: 'hidden',\r\n },\r\n },\r\n opened: {\r\n visibility: 'visible',\r\n height: 'auto',\r\n },\r\n } },\r\n React.createElement(S.FilterItemBodyInner, null,\r\n React.createElement(S.CheckboxList, { \"data-size\": \"large\" }, props.options.map((option) => (React.createElement(React.Fragment, { key: `option-${props.name}-${option.label}` },\r\n props.options.length > 1 && (React.createElement(S.FilterGroupButton, { \"data-open\": openGroup === option.label, onClick: () => {\r\n if (openGroup === option.label) {\r\n setOpenGroup('');\r\n }\r\n else {\r\n setOpenGroup(option.label);\r\n }\r\n } },\r\n option.label,\r\n React.createElement(S.FilterGroupButtonIcon, null))),\r\n React.createElement(S.FilterItemBody, { variants: {\r\n closed: {\r\n height: 0,\r\n visibility: 'hidden',\r\n },\r\n opened: {\r\n visibility: 'visible',\r\n height: 'auto',\r\n },\r\n }, initial: !isActive || props.options.length > 1 ? 'closed' : 'opened', animate: isActive && (props.options.length === 1 || openGroup === option.label)\r\n ? 'opened'\r\n : 'closed' }, option.options.map((o) => (React.createElement(Checkbox, { key: `option-${props.name}-${o.value}`, id: `${props.name}-${o.value}`, name: `${props.name}-${o.value}`, value: o.value, onChange: (event) => props.onChange(event.target.value), checked: props.value.includes(o.value), labelText: o.text, \"data-size\": \"large\" }))))))))))));\r\n};\r\nexport default withMotion(DropdownFilter);\r\n","import { withMotion } from '@hoc/withMotion';\r\nimport SvgArrow from '@img/icons/arrow-left.svg';\r\nimport SvgChevron from '@img/icons/chevron-up.svg';\r\nimport SvgCross from '@img/icons/cross-squared.svg';\r\nimport SvgTick from '@img/icons/tick-thin.svg';\r\nimport Button from '@stories/Components/Buttons/Button/Button';\r\nimport Checkbox from '@stories/Components/Inputs/Checkbox/Checkbox';\r\nimport Dropdown from '@stories/Components/Inputs/Dropdown/Dropdown';\r\nimport { MotionConfig } from 'framer-motion';\r\nimport * as React from 'react';\r\nimport DropdownFilter from './DropdownFilter/DropdownFilter';\r\nimport S from './Filters.styles';\r\nconst Filters = (props) => {\r\n const [advancedFiltersActive, setAdvancedFiltersActive] = React.useState(false);\r\n const [mobileFilterActive, setMobileFilterActive] = React.useState(-1);\r\n React.useEffect(() => {\r\n const header = document.querySelector('header');\r\n if (!header) {\r\n return;\r\n }\r\n if (mobileFilterActive > -1) {\r\n header.style.zIndex = '1';\r\n }\r\n else {\r\n header.style.zIndex = '100';\r\n }\r\n }, [mobileFilterActive]);\r\n if (!props.sortOptions && !props.filterOptions) {\r\n return null;\r\n }\r\n const hasFilters = props.filterOptions && props.filterOptions.length > 0;\r\n const activeFilters = !hasFilters\r\n ? []\r\n : props.filterOptions?.filter((filter) => filter.value.length > 0);\r\n const dup = hasFilters ? props.filterOptions : [];\r\n const filterOptions = props.hasAdvancedFilters ? dup?.slice(0, 2) : dup;\r\n const advancedFilterOptions = props.hasAdvancedFilters ? dup?.slice(2) : [];\r\n return (React.createElement(S.Wrapper, { \"data-variant\": props.variant, \"data-many-filters\": props.filterOptions && props.filterOptions.length > 3 && !props.hasAdvancedFilters, \"data-has-advanced\": advancedFilterOptions && advancedFilterOptions.length > 0 },\r\n React.createElement(S.Container, null,\r\n hasFilters ? (React.createElement(React.Fragment, null,\r\n React.createElement(S.FiltersWrapper, null,\r\n filterOptions?.map((filter) => (React.createElement(DropdownFilter, { key: `filter-${filter.name}`, ...filter }))),\r\n activeFilters && activeFilters.length > 0 && (React.createElement(S.Unset, null,\r\n props.selectedTitle && React.createElement(S.UnsetTitle, null, props.selectedTitle),\r\n activeFilters.map((filter) => (React.createElement(React.Fragment, { key: `filter-${filter.name}-active` }, filter.options.map((option) => (React.createElement(React.Fragment, null, option.options.map((o) => {\r\n if (!filter.value.includes(o.value)) {\r\n return null;\r\n }\r\n return (React.createElement(S.UnsetButton, { key: `option-${filter.name}-${o.value}-remove`, onClick: () => filter.onChange(o.value) },\r\n React.createElement(\"span\", null, o.text),\r\n \" \",\r\n React.createElement(SvgCross, null)));\r\n }))))))),\r\n props.clearAll && (React.createElement(S.UnsetButton, { \"data-type\": \"clear-all\", onClick: props.clearAll },\r\n React.createElement(\"span\", null, \"Clear All\"),\r\n \" \",\r\n React.createElement(SvgCross, null)))))),\r\n React.createElement(Button, { buttonType: \"blue-outline\", icon: \"chevron\", iconPosition: \"right\", onClick: () => setMobileFilterActive(0) }, \"Filters\"))) : null,\r\n props.sortOptions && (React.createElement(Dropdown, { name: props.sortOptions.name, value: props.sortOptions.value, onChange: (event) => props.sortOptions?.onChange(event.target.value) },\r\n React.createElement(\"option\", { hidden: true, value: \"\" }, props.sortOptions.label),\r\n props.sortOptions.options.map((option) => (React.createElement(\"option\", { key: `option-${option.value}`, value: option.value }, option.text))))),\r\n hasFilters ? (React.createElement(React.Fragment, null,\r\n React.createElement(S.Background, { \"data-active\": mobileFilterActive > -1, onClick: () => setMobileFilterActive(-1) }),\r\n React.createElement(S.Tray, { \"data-active\": mobileFilterActive > -1 },\r\n React.createElement(S.TrayTitle, null, \"Filters\"),\r\n React.createElement(S.FilterList, null, props.filterOptions?.map((filter, i) => (React.createElement(S.FilterItem, { key: `filter-${filter.name}-button` },\r\n React.createElement(S.FilterButton, { onClick: () => setMobileFilterActive(i + 1) },\r\n filter.label,\r\n filter.value.length > 0 && React.createElement(\"span\", null, filter.value.length)))))),\r\n renderCloseButton()),\r\n props.filterOptions?.map((filter, i) => (React.createElement(S.Tray, { key: `filter-${filter.name}-tray`, \"data-active\": mobileFilterActive == i + 1 },\r\n React.createElement(S.FilterTop, null,\r\n renderBackButton(filter.label),\r\n filter.value.length > 0 ? renderClearAll(filter.onClear) : renderAllSelected()),\r\n React.createElement(S.FilterList, null, filter.options.map((option) => (React.createElement(React.Fragment, { key: `option-${filter.name}-${option.label}-mobile` },\r\n filter.options.length > 1 && (React.createElement(S.FilterItem, { \"data-label\": true }, option.label)),\r\n option.options.map((o) => (React.createElement(S.FilterItem, { key: `option-${filter.name}-${o.value}-mobile` },\r\n React.createElement(Checkbox, { id: `${filter.name}-${o.value}-mobile`, name: `${filter.name}-${o.value}-mobile`, value: o.value, onChange: (event) => filter.onChange(event.target.value), checked: filter.value.includes(o.value), labelText: o.text })))))))),\r\n renderCloseButton()))))) : null),\r\n advancedFilterOptions && advancedFilterOptions.length > 0 && (React.createElement(MotionConfig, { transition: { duration: 0.3, ease: 'easeOut' } },\r\n React.createElement(S.AdvancedWrapper, { initial: advancedFiltersActive ? 'opened' : 'closed', animate: advancedFiltersActive ? 'opened' : 'closed', variants: {\r\n closed: {\r\n height: 0,\r\n overflow: 'hidden',\r\n transitionEnd: {\r\n visibility: 'hidden',\r\n },\r\n },\r\n opened: {\r\n visibility: 'visible',\r\n height: 'auto',\r\n transitionEnd: {\r\n overflow: 'visible',\r\n },\r\n },\r\n } },\r\n React.createElement(S.FiltersWrapper, null, advancedFilterOptions.map((filter) => (React.createElement(DropdownFilter, { key: `filter-${filter.name}`, ...filter }))))),\r\n React.createElement(S.AdvancedButton, { onClick: () => setAdvancedFiltersActive(!advancedFiltersActive), \"data-open\": advancedFiltersActive }, advancedFiltersActive ? (React.createElement(React.Fragment, null,\r\n React.createElement(\"span\", null, \"Close\"),\r\n React.createElement(\"span\", null,\r\n React.createElement(SvgCross, null)))) : (React.createElement(React.Fragment, null,\r\n React.createElement(\"span\", null, \"Advanced Filters\"),\r\n React.createElement(\"span\", null,\r\n React.createElement(SvgChevron, null)))))))));\r\n function renderCloseButton() {\r\n return (React.createElement(Button, { buttonType: \"blue-solid\", onClick: () => setMobileFilterActive(-1) }, props.viewButtonLabel));\r\n }\r\n function renderBackButton(title) {\r\n return (React.createElement(S.BackButton, { onClick: () => setMobileFilterActive(0) },\r\n React.createElement(SvgArrow, null),\r\n \" \",\r\n React.createElement(\"span\", null, title)));\r\n }\r\n function renderAllSelected() {\r\n return (React.createElement(S.ClearButton, { as: \"div\" },\r\n React.createElement(\"span\", null, \"All\"),\r\n \" \",\r\n React.createElement(SvgTick, null)));\r\n }\r\n function renderClearAll(onClick) {\r\n return React.createElement(S.ClearButton, { onClick: onClick }, \"Clear All\");\r\n }\r\n};\r\nexport default withMotion(Filters);\r\n","import { fluid } from '@helpers/fluid';\r\nimport { paragraphMedium, paragraphSmall } from '@helpers/typography';\r\nimport styled from 'styled-components';\r\nconst Loader = styled.div `\r\n position: relative;\r\n display: flex;\r\n background: var(--bgColour);\r\n color: var(--fgColour);\r\n flex-direction: column;\r\n height: 100%;\r\n place-content: center;\r\n place-items: center;\r\n text-align: center;\r\n width: 100%;\r\n z-index: 999;\r\n\r\n &[data-layout='inline'] {\r\n padding: ${fluid(48, 96)};\r\n }\r\n\r\n &[data-layout='absolute'] {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n }\r\n\r\n &[data-layout='fixed'] {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n }\r\n\r\n &[data-alignment='top'] {\r\n place-content: flex-start;\r\n padding-top: 24px;\r\n }\r\n`;\r\nconst LoaderText = styled.span `\r\n ${paragraphMedium};\r\n\r\n display: block;\r\n margin: 1rem 0 0;\r\n`;\r\nconst AdditionalMessage = styled.span `\r\n ${paragraphSmall};\r\n\r\n display: block;\r\n max-width: 420px;\r\n margin: 8px 0 0;\r\n`;\r\nconst LoadingIndicatorStyles = {\r\n Loader,\r\n LoaderText,\r\n AdditionalMessage,\r\n};\r\nexport default LoadingIndicatorStyles;\r\n","import brand from '@helpers/brand';\r\nimport { rgba } from 'polished';\r\nimport * as React from 'react';\r\nimport { PuffLoader } from 'react-spinners';\r\nimport S from './LoadingIndicator.styles';\r\nconst LoadingIndicator = (props) => {\r\n return (React.createElement(S.Loader, { \"data-layout\": props.layout ?? 'inline', \"data-alignment\": props.alignment ?? 'center', style: {\r\n '--bgColour': props.bgColour ?? rgba(brand.primary.blue, 0.7),\r\n '--fgColour': props.fgColour ?? brand.white,\r\n } },\r\n React.createElement(PuffLoader, { color: \"currentColor\", size: props.size ?? 64 }),\r\n props.label && React.createElement(S.LoaderText, null, props.label),\r\n props.additionalMessage && (React.createElement(S.AdditionalMessage, null, props.additionalMessage))));\r\n};\r\nexport default LoadingIndicator;\r\n","import { fluid } from '@helpers/fluid';\r\nimport { siteWide } from '@helpers/grid';\r\nimport styled from 'styled-components';\r\nconst Container = styled.section `\r\n --scrollOffset: var(--headerHeight, 0px);\r\n --sectionSpacing: ${fluid(40, 66)};\r\n\r\n &[data-spacing='margin'],\r\n &[data-spacing='padding'] {\r\n scroll-margin: calc(var(--scrollOffset) + var(--sectionSpacing)) 0 0;\r\n }\r\n\r\n &[data-spacing='margin'] {\r\n margin: var(--sectionSpacing) 0;\r\n }\r\n\r\n &[data-spacing='padding'] {\r\n padding: var(--sectionSpacing) 0;\r\n }\r\n\r\n &[data-spacing='none'] {\r\n scroll-margin: var(--scrollOffset) 0 0;\r\n }\r\n\r\n position: relative;\r\n z-index: 5;\r\n\r\n &[data-hide-overflow='true'] {\r\n overflow: hidden;\r\n }\r\n`;\r\nconst Inner = styled.div `\r\n ${siteWide}\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(({ children, layout = 'default', spacing = 'margin', hideOverflow, id, ...otherProps }, ref) => {\r\n switch (layout) {\r\n case 'fullWidth':\r\n return (React.createElement(S.Container, { id: id ? id : undefined, ref: ref, \"data-spacing\": spacing, \"data-hide-overflow\": hideOverflow, ...otherProps }, children));\r\n case 'default':\r\n default:\r\n return (React.createElement(S.Container, { id: id ? id : undefined, ref: ref, \"data-spacing\": spacing, \"data-hide-overflow\": hideOverflow, ...otherProps },\r\n React.createElement(S.Inner, null, children)));\r\n }\r\n});\r\nSectionWrapper.displayName = 'SectionWrapper';\r\nexport default SectionWrapper;\r\n"],"names":["_path","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","xmlns","viewBox","fill","d","css","brand","withMotion","WrappedComponent","displayName","name","ComponentWithMotion","React","LazyMotion","features","domAnimation","strict","withQueryParams","ComponentWithQueryParams","QueryParamProvider","ReactRouterRoute","Route","ComponentWithRouter","window","location","Error","StaticRouter","basename","context","BrowserRouter","withRouter","useApi","params","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","abort","clear","undefined","Dropdown","ref","children","hasError","otherProps","open","setOpen","S","value","FocusRing","focusRingClass","onClick","onBlur","onKeyDown","event","onChange","SvgChevron","FilterItem","styled","m","FilterLabel","ButtonReset","transition","fonts","fluid","from","Device","FilterItemIcon","FilterItemBody","FilterItemBodyInner","FilterGroupButton","FilterGroupButtonIcon","CheckboxList","scrollbars","CheckboxStyles","until","Wrapper","DropdownStyles","DropdownFilterStyles","Container","ButtonStyles","FiltersWrapper","Unset","UnsetTitle","UnsetButton","rgba","Background","Tray","TrayTitle","FilterList","FilterItemCommonStyles","paragraphSmall","FilterButton","FilterTop","BackButton","ClearButton","AdvancedWrapper","AdvancedButton","_g","stroke","strokeWidth","strokeLinecap","strokeLinejoin","isActive","setIsActive","fm","useFocusManager","refFilterItem","openGroup","setOpenGroup","handleRefFilterItemBlur","e","contains","document","removeEventListener","addEventListener","initial","animate","preventDefault","stopPropagation","focusNext","focusPrevious","focusFirst","focusLast","label","variants","closed","rotate","opened","role","tabIndex","height","transitionEnd","visibility","options","map","option","o","Checkbox","id","checked","includes","labelText","text","advancedFiltersActive","setAdvancedFiltersActive","mobileFilterActive","setMobileFilterActive","header","querySelector","style","zIndex","sortOptions","filterOptions","hasFilters","activeFilters","filter","dup","hasAdvancedFilters","slice","advancedFilterOptions","variant","DropdownFilter","selectedTitle","SvgCross","clearAll","Button","buttonType","icon","iconPosition","hidden","renderCloseButton","title","SvgArrow","onClear","as","SvgTick","MotionConfig","duration","ease","overflow","viewButtonLabel","Loader","LoaderText","paragraphMedium","AdditionalMessage","layout","alignment","bgColour","fgColour","PuffLoader","color","size","additionalMessage","Inner","siteWide","SectionWrapper","spacing","hideOverflow"],"sourceRoot":""}