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,GAAW,IAAK,KACvD,E,6DCrBF,MAWA,EAXsBtN,KACpB,MAAO6M,EAAYC,IAAiBtH,EAAAA,EAAAA,UAAsBqF,EAAAA,GACpDgD,GAAsBC,EAAAA,EAAAA,IAAoBC,GAAUA,EAAMlB,aAMhE,OAJArK,EAAAA,EAAAA,YAAU,KACRsK,EAAce,EAAoB,GACjC,CAACA,IAEGhB,CAAU,C,kDCVnB,MA4CA,EA5C0BjF,KACxB,MAAMoG,GAAczL,EAAAA,EAAAA,WACb0L,EAAkBC,IAAuB1I,EAAAA,EAAAA,UAAS,CACvD/E,MAAO,EACPC,OAAQ,EACRmF,YAAa,EACbsI,aAAc,EACdC,YAAa,EACbC,aAAc,IAGVC,GAAe3L,EAAAA,EAAAA,cAAa4L,IAChC,IAAKC,MAAMC,QAAQF,GAAU,OAE7B,MAAMG,EAAQH,EAAQ,GAEtBL,EAAoB,CAClBzN,MAAOiO,GAAOC,YAAYlO,OAAS,EACnCC,OAAQgO,GAAOC,YAAYjO,QAAU,EACrCmF,YAAa6I,GAAOrL,OAAOwC,aAAe,EAC1CsI,aAAcO,GAAOrL,OAAO8K,cAAgB,EAC5CC,YAAaM,GAAOrL,OAAO+K,aAAe,EAC1CC,aAAcK,GAAOrL,OAAOgL,cAAgB,GAC5C,GACD,IAiBH,MAAO,EAfK1L,EAAAA,EAAAA,cACT2F,IACK0F,EAAY7K,UAAYmF,IAC1B0F,EAAY7K,QAAQyL,aACpBZ,EAAY7K,aAAUkC,IAGnB2I,EAAY7K,SAAWmF,IAC1B0F,EAAY7K,QAAU,IAAI0L,eAAeP,GACzCN,EAAY7K,QAAQ2L,QAAQxG,GAC9B,GAEF,CAACgG,IAGUL,EAAiB,C","sources":["webpack://nikon-client/./components/atoms/CloseButton/CloseButton.tsx","webpack://nikon-client/./components/atoms/LoadingSpinner/LoadingSpinner.tsx","webpack://nikon-client/./components/atoms/Modal/Modal.tsx","webpack://nikon-client/./components/atoms/Portal/Portal.tsx","webpack://nikon-client/./utility/hooks/useVerticalGrabScroll.ts","webpack://nikon-client/./utility/hooks/useVerticalScrollShadows.ts","webpack://nikon-client/./components/atoms/ShadowContainerVertical/ShadowContainerVertical.tsx","webpack://nikon-client/./components/organisms/AuthorTypeListings/AuthorTypeListings.tsx","webpack://nikon-client/./models/enums/ErrorBannerNotificationEnum.ts","webpack://nikon-client/./models/enums/IconSizeEnum.ts","webpack://nikon-client/./models/enums/ScrollProgressEnum.ts","webpack://nikon-client/./state-management/AriaLabelsStore.ts","webpack://nikon-client/./state-management/ErrorBannerNotificationDisplayStore.ts","webpack://nikon-client/./utility/helpers/bodyScrollLock.ts","webpack://nikon-client/./utility/hooks/useAriaLabels.ts","webpack://nikon-client/./utility/hooks/useResizeObserver.ts"],"sourcesContent":["import IconSizeEnum from '@models/enums/IconSizeEnum';\nimport useAriaLabels from '@utils/hooks/useAriaLabels';\nimport classNames from 'classnames';\nimport { MouseEventHandler } from 'react';\n\ninterface Props {\n readonly ariaLabel?: string;\n readonly className?: string;\n readonly color?: 'black' | 'white' | 'red';\n readonly onClick: MouseEventHandler;\n readonly size?: IconSizeEnum | string;\n readonly dataTestId?: string;\n}\n\nconst CloseButton = ({\n ariaLabel,\n className,\n color = 'black',\n onClick,\n size = IconSizeEnum.lg,\n dataTestId,\n}: Props) => {\n const { closeModalAriaLabel } = useAriaLabels();\n\n const closeColours = {\n black: 'before:bg-black-100 after:bg-black-100',\n white: 'before:bg-white after:bg-white',\n red: 'before:bg-red-100 after:bg-red-100',\n };\n\n return (\n <button\n type=\"button\"\n className={classNames('close-button', closeColours[color], className)}\n aria-label={ariaLabel ?? closeModalAriaLabel}\n style={{ width: size, height: size }}\n onClick={onClick}\n data-testid={dataTestId}\n />\n );\n};\n\nexport default CloseButton;\n","import classNames from 'classnames';\n\ninterface Props {\n readonly extraClasses?: string;\n readonly svgClasses?: string;\n readonly trackColor?: string;\n readonly animationStyle?: 'pulse' | 'spin';\n readonly pulseContainerClasses?: string;\n readonly pulseItemClasses?: string;\n}\n\nconst LoadingSpinner = ({\n extraClasses,\n svgClasses = 'text-yellow h-9 w-9',\n pulseContainerClasses,\n pulseItemClasses = 'bg-yellow h-7.5 w-7.5',\n trackColor = '#E5E7EB',\n animationStyle = 'pulse',\n}: Props) => (\n <div className={classNames('flex items-center justify-center', extraClasses)}>\n {animationStyle === 'pulse' && (\n <div className={classNames('flex gap-[15px]', pulseContainerClasses)}>\n <div\n className={classNames(\n 'animate-[pulse_2s_ease-in-out_infinite]',\n pulseItemClasses\n )}\n />\n <div\n className={classNames(\n `animate-[pulse_2s_0.25s_ease-in-out_infinite] delay-75 `,\n pulseItemClasses\n )}\n />\n <div\n className={classNames(\n 'delay-250 animate-[pulse_2s_0.5s_ease-in-out_infinite]',\n pulseItemClasses\n )}\n />\n </div>\n )}\n {animationStyle === 'spin' && (\n <svg\n role=\"status\"\n className={classNames('inline animate-spin', svgClasses)}\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n fill={trackColor}\n />\n <path\n d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n fill=\"currentColor\"\n />\n </svg>\n )}\n </div>\n);\n\nexport default LoadingSpinner;\n","import CloseButton from '@atoms/CloseButton/CloseButton';\nimport Portal from '@atoms/Portal/Portal';\nimport IconSizeEnum from '@models/enums/IconSizeEnum';\nimport bodyScrollLock from '@utils/helpers/bodyScrollLock';\nimport classNames from 'classnames';\nimport FocusTrap from 'focus-trap-react';\nimport { motion } from 'framer-motion';\nimport { PropsWithChildren, useCallback, useEffect, useRef } from 'react';\n\ninterface Props {\n readonly onCloseCallback?: () => void;\n readonly contentClasses?: string;\n readonly crossMarginsClassName?: string;\n readonly crossClasses?: string;\n readonly crossColor?: 'black' | 'white';\n readonly isOpen: boolean;\n readonly modalClasses?: string;\n readonly setIsOpen?: (param: boolean) => void;\n readonly showCloseButton?: boolean;\n readonly transparent?: boolean;\n readonly isCloseButtonFixed?: boolean;\n readonly closeButtonIconSize?: IconSizeEnum | string;\n readonly shouldCloseOnClickOutsideContent?: boolean;\n readonly shouldLockBody?: boolean;\n}\n\nconst Modal = ({\n onCloseCallback,\n children,\n contentClasses,\n crossColor = 'white',\n crossMarginsClassName = 'mr-8 mt-8',\n crossClasses,\n isOpen,\n modalClasses,\n setIsOpen,\n showCloseButton = true,\n transparent = false,\n isCloseButtonFixed = true,\n closeButtonIconSize = IconSizeEnum.md,\n shouldCloseOnClickOutsideContent = false,\n shouldLockBody = true,\n}: PropsWithChildren<Props>) => {\n const contentRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (isOpen && shouldLockBody) {\n bodyScrollLock(true);\n }\n\n return () => {\n if (shouldLockBody) bodyScrollLock(false);\n };\n }, [isOpen, shouldLockBody]);\n\n const close = useCallback(() => {\n setIsOpen?.(false);\n onCloseCallback?.();\n }, [onCloseCallback, setIsOpen]);\n\n useEffect(() => {\n const keyboardClose = (ev: KeyboardEvent) => {\n if (ev.key === 'Escape' && isOpen === true) {\n setIsOpen?.(false);\n }\n };\n window.addEventListener('keydown', keyboardClose);\n\n return () => {\n window.removeEventListener('keydown', keyboardClose);\n };\n }, [isOpen, setIsOpen]);\n\n useEffect(() => {\n const handleClickOutsideContent = (ev: Event) => {\n if (\n isOpen &&\n shouldCloseOnClickOutsideContent &&\n !contentRef.current?.contains(ev.target as HTMLElement)\n ) {\n close();\n }\n };\n\n window.addEventListener('click', handleClickOutsideContent, true);\n\n return () => {\n window.removeEventListener('click', handleClickOutsideContent, true);\n };\n }, [close, isOpen, shouldCloseOnClickOutsideContent]);\n\n if (!isOpen) {\n return null;\n }\n\n return (\n <Portal key=\"portal\" mountId=\"drawer-root\">\n <FocusTrap\n focusTrapOptions={{\n preventScroll: true,\n escapeDeactivates: false,\n }}\n >\n <motion.div\n animate={{ opacity: 1 }}\n className=\"relative z-max h-auto\"\n exit={{ opacity: 0 }}\n initial={{ opacity: 0 }}\n transition={{\n duration: 0.8,\n ease: [0.04, 0.62, 0.23, 0.98],\n }}\n >\n <section\n className={classNames(\n transparent ? 'bg-black-100/50' : 'bg-black-100',\n 'fixed inset-0 z-100 text-white'\n )}\n >\n <div className=\"flex h-full w-full\">\n <div\n className={classNames(\n modalClasses,\n 'container h-full w-full overflow-y-auto'\n )}\n >\n <div\n className={classNames(contentClasses, 'relative text-left')}\n ref={contentRef}\n >\n {showCloseButton && (\n <>\n {/* A hidden button that steals the inital focus of the modal preventing the close icon from animating on modal open */}\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <button className=\"hidden\" />\n\n <CloseButton\n color={crossColor}\n size={closeButtonIconSize}\n onClick={close}\n className={classNames(\n 'right-0 top-0 z-100 flex cursor-pointer flex-col items-center',\n isCloseButtonFixed ? 'fixed' : 'absolute',\n crossMarginsClassName,\n crossClasses\n )}\n />\n </>\n )}\n {children}\n </div>\n </div>\n </div>\n </section>\n </motion.div>\n </FocusTrap>\n </Portal>\n );\n};\n\nexport default Modal;\n","import { PropsWithChildren, useEffect, useMemo } from 'react';\nimport { createPortal } from 'react-dom';\n\ninterface Props {\n readonly mountId: string;\n}\n\nconst Portal = ({ mountId, children }: PropsWithChildren<Props>) => {\n const containerElement = useMemo(() => document.createElement('div'), []);\n\n useEffect(() => {\n document.getElementById(mountId)?.appendChild(containerElement);\n\n return () => {\n document.getElementById(mountId)?.removeChild(containerElement);\n };\n }, [mountId, containerElement]);\n\n return createPortal(children, containerElement);\n};\n\nexport default Portal;\n","import { RefObject, useEffect, useRef, useState } from 'react';\n\nconst useVerticalGrabScroll = (\n containerRef: RefObject<HTMLElement>,\n containerHeight: number,\n contentHeight: number,\n disabled = false\n) => {\n const [isMouseDown, setIsMouseDown] = useState(false);\n const mouseScrollPosition = useRef<{ top: number; y: number }>({\n top: 0,\n y: 0,\n });\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container?.clientWidth) return;\n\n if (containerHeight >= contentHeight || disabled) {\n container.style.cursor = 'inherit';\n return;\n }\n\n if (isMouseDown) {\n container.style.cursor = 'grabbing';\n return;\n }\n\n container.style.cursor = 'grab';\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [containerHeight, contentHeight, isMouseDown, disabled]);\n\n useEffect(() => {\n mouseScrollPosition.current = { top: 0, y: 0 };\n const container = containerRef.current;\n\n if (!container) return () => ({});\n if (disabled) {\n container.scrollTop = 0;\n\n return () => ({});\n }\n\n const mouseMoveHandler = (e: MouseEvent) => {\n const dy = e.clientY - mouseScrollPosition.current.y;\n\n container.scrollTop = mouseScrollPosition.current.top - dy;\n };\n\n const mouseUpHandler = () => {\n document.removeEventListener('mousemove', mouseMoveHandler);\n document.removeEventListener('mouseup', mouseUpHandler);\n setIsMouseDown(false);\n };\n\n const mouseDownHandler = (e: MouseEvent) => {\n mouseScrollPosition.current = {\n top: container.scrollTop,\n y: e.clientY,\n };\n setIsMouseDown(true);\n\n document.addEventListener('mousemove', mouseMoveHandler);\n document.addEventListener('mouseup', mouseUpHandler);\n };\n\n container.addEventListener('mousedown', mouseDownHandler);\n\n return () => {\n container.removeEventListener('mousedown', mouseDownHandler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [disabled]);\n};\n\nexport default useVerticalGrabScroll;\n","import ScrollProgressEnum from '@models/enums/ScrollProgressEnum';\nimport { useMotionValueEvent, useScroll } from 'framer-motion';\nimport { RefObject, useEffect, useState } from 'react';\n\nconst useVerticalScrollShadows = (\n containerRef: RefObject<HTMLElement>,\n containerHeight: number,\n contentHeight: number,\n disabled = false\n) => {\n const { scrollYProgress } = useScroll({\n container: containerRef,\n });\n const [isStart, setIsStart] = useState(true);\n const [isEnd, setIsEnd] = useState(false);\n const [scrollProgress, setScrollProgress] = useState(\n ScrollProgressEnum.Start\n );\n const threshold = 0.05;\n\n useMotionValueEvent(scrollYProgress, 'change', (value: number) => {\n if (value < threshold) {\n setScrollProgress(ScrollProgressEnum.Start);\n }\n\n if (value >= threshold && value <= 1 - threshold) {\n setScrollProgress(ScrollProgressEnum.Middle);\n }\n\n if (value > 1 - threshold) {\n setScrollProgress(ScrollProgressEnum.End);\n }\n });\n\n useEffect(() => {\n if (!containerHeight || disabled) return;\n\n if (containerHeight >= contentHeight) {\n setIsStart(true);\n setIsEnd(true);\n\n return;\n }\n\n if (scrollProgress === ScrollProgressEnum.Start) {\n setIsStart(true);\n setIsEnd(false);\n }\n\n if (scrollProgress === ScrollProgressEnum.Middle) {\n setIsStart(false);\n setIsEnd(false);\n }\n\n if (scrollProgress === ScrollProgressEnum.End) {\n setIsEnd(true);\n }\n }, [disabled, scrollProgress, containerHeight, contentHeight]);\n\n return { isStart, isEnd };\n};\n\nexport default useVerticalScrollShadows;\n","import useResizeObserver from '@utils/hooks/useResizeObserver';\nimport useVerticalGrabScroll from '@utils/hooks/useVerticalGrabScroll';\nimport useVerticalScrollShadows from '@utils/hooks/useVerticalScrollShadows';\nimport classNames from 'classnames';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport {\n PropsWithChildren,\n forwardRef,\n useImperativeHandle,\n useRef,\n} from 'react';\n\nexport interface IShadowContainerVerticalRef {\n readonly scrollTo: (offset: number, behavior?: ScrollBehavior) => void;\n}\n\ninterface Props {\n readonly className?: string;\n readonly customScrollbarTheme?: 'light' | 'dark';\n readonly hideScrollbar?: boolean;\n readonly shadowColour?: string;\n readonly disableScroll?: boolean;\n readonly shadowHeight?: string;\n}\n\nconst ShadowContainerVertical = forwardRef<\n IShadowContainerVerticalRef,\n PropsWithChildren<Props>\n>(\n (\n {\n children,\n className,\n customScrollbarTheme,\n disableScroll = false,\n shadowColour = 'from-white dark:from-black-100',\n hideScrollbar = true,\n shadowHeight = 'h-10',\n },\n ref\n ) => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const [containerRefCallback, { height: containerHeight }] =\n useResizeObserver();\n const [contentRefCallback, { height: contentHeight }] = useResizeObserver();\n const { isStart, isEnd } = useVerticalScrollShadows(\n containerRef,\n containerHeight,\n contentHeight,\n disableScroll\n );\n useVerticalGrabScroll(\n containerRef,\n containerHeight,\n contentHeight,\n disableScroll\n );\n\n useImperativeHandle(ref, () => ({\n scrollTo: (topOffset: number, behavior: ScrollBehavior = 'smooth') => {\n containerRef.current?.scrollTo({ top: topOffset, behavior });\n },\n }));\n\n return (\n <div className={classNames(className, 'relative h-full')}>\n <AnimatePresence>\n {!isStart && !disableScroll && (\n <motion.span\n animate={{ opacity: 1 }}\n className={classNames(\n shadowColour,\n shadowHeight,\n `pointer-events-none absolute top-0 z-10 w-full bg-gradient-to-b to-transparent`\n )}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0 }}\n transition={{ duration: 0.25 }}\n />\n )}\n </AnimatePresence>\n\n <div\n ref={(node) => {\n containerRef.current = node;\n containerRefCallback(node);\n }}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n className={classNames(\n {\n 'scrollbar-hide': hideScrollbar,\n 'overflow-y-hidden': disableScroll,\n 'overflow-y-auto': !disableScroll,\n 'custom-scrollbar': !disableScroll && customScrollbarTheme,\n 'custom-scrollbar--light': customScrollbarTheme === 'light',\n 'custom-scrollbar--dark': customScrollbarTheme === 'dark',\n },\n 'relative h-full select-none'\n )}\n >\n <div ref={contentRefCallback}>{children}</div>\n </div>\n\n <AnimatePresence>\n {!isEnd && !disableScroll && (\n <motion.span\n animate={{ opacity: 1 }}\n className={classNames(\n shadowColour || 'from-white dark:from-black-100',\n shadowHeight,\n `pointer-events-none absolute bottom-0 z-10 w-full bg-gradient-to-t to-transparent`\n )}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0 }}\n transition={{ duration: 0.25 }}\n />\n )}\n </AnimatePresence>\n </div>\n );\n }\n);\n\nexport default ShadowContainerVertical;\n","import { IAuthor } from '@models/IAuthor';\nimport { IListingComponent } from '@models/IListingComponent';\nimport AuthorCard from '@molecules/AuthorCard/AuthorCard';\nimport ListingResultsContainer from '@molecules/ListingResultsContainer/ListingResultsContainer';\nimport ListingTopBar from '@molecules/ListingTopBar/ListingTopBar';\nimport LoadMoreListing from '@molecules/LoadMoreListing/LoadMoreListing';\nimport useListingComponentProps from '@utils/hooks/useListingComponentProps';\nimport useRefocus from '@utils/hooks/useRefocus';\n\ninterface Props extends IListingComponent {\n readonly type: string[];\n readonly campaign: string[];\n readonly specialism: string[];\n readonly sectionTitle: string;\n readonly showExpandedFilters?: boolean;\n readonly showProfilePhotos?: boolean;\n}\n\nconst AuthorTypeListings = (props: Props) => {\n const {\n campaign,\n componentName,\n showExpandedFilters,\n specialism,\n sectionTitle,\n showProfilePhotos = false,\n type,\n } = props;\n\n const preFilterParams = {\n AuthorType: type,\n GenreList: specialism,\n CampaignList: campaign,\n };\n\n const { results, ...listingProps } = useListingComponentProps({\n ...props,\n pageSize: 9,\n preFilterParams,\n });\n\n const placeholderRef = useRefocus(results);\n const placeIndex = listingProps.pageSize * listingProps.pageNumber;\n\n return (\n <section\n data-testid=\"authorTypeListingWrapper\"\n data-name={componentName}\n className=\"component-padding bg-black-100 text-white\"\n >\n <div className=\"container\">\n {sectionTitle && (\n <h2 className=\"w-full pb-32 pt-[4.375rem] text-2xl lg:w-8/12 lg:pb-28 lg:pt-[8.75rem] lg:text-4xl\">\n {sectionTitle}\n </h2>\n )}\n\n <ListingTopBar\n {...listingProps}\n pageType=\"AuthorListing\"\n showExpandedFilters={showExpandedFilters}\n />\n </div>\n\n <ListingResultsContainer\n results={results}\n {...listingProps}\n resultsClassName=\"px-5 md:container\"\n noResultsClassName=\"container\"\n errorClassName=\"container\"\n >\n <div className=\"mt-10 grid grid-cols-1 gap-x-4 gap-y-14 md:grid-cols-2 xl:grid-cols-3 xl:gap-y-36\">\n {(results as IAuthor[]).map((author, index) => (\n <div\n tabIndex={-1}\n key={`${author.authorName}-${author.link?.url}`}\n ref={\n placeIndex > 0 && placeIndex === index ? placeholderRef : null\n }\n >\n <AuthorCard\n author={{\n ...author,\n initials: showProfilePhotos ? author.initials : undefined,\n thumbnail: showProfilePhotos ? author.thumbnail : undefined,\n }}\n />\n </div>\n ))}\n </div>\n </ListingResultsContainer>\n\n {results?.length > 0 && (\n <div className=\"container flex justify-center pb-24 pt-8\">\n <div className=\"py-4 text-lg\">\n <LoadMoreListing results={results as IAuthor[]} {...listingProps} />\n </div>\n </div>\n )}\n </section>\n );\n};\n\nexport default AuthorTypeListings;\n","enum ErrorBannerNotificationEnum {\n AccountDeleteAddress = 'accountDeleteAddress',\n AccountDefaultAddressUpdate = 'defaultAddressUpdate',\n AccountDeleteContactSubmit = 'deleteContactSubmit',\n AccountGetOrderDetails = 'accountGetOrderDetails',\n ShippingPickUpLocations = 'shippingPickUpLocations',\n LightboxOuterImages = 'lightboxOuterImages',\n MiniBasketDetails = 'miniBasketDetails',\n OrderSummaryRemoveVoucher = 'orderSummaryRemoveVoucher',\n ProductDetailsNotifyMe = 'productDetailsNotifyMe',\n CartRemoveItem = 'cartRemoveItem',\n NewsletterSignupBanner = 'newsletterSignupBanner',\n NewsletterSignupPopup = 'newsletterSignupPopup',\n OnlineRetailersData = 'onlineRetailersData',\n SearchResults = 'searchResults',\n}\n\nexport default ErrorBannerNotificationEnum;\n","const enum IconSizeEnum {\n xs = '.5rem',\n sm = '.75rem',\n md = '1rem',\n lg = '1.5rem',\n xl = '1.75rem',\n}\n\nexport default IconSizeEnum;\n","enum ScrollProgressEnum {\n Start = 'Start',\n Middle = 'Middle',\n End = 'End',\n}\n\nexport default ScrollProgressEnum;\n","import { IAriaLabels } from '@models/IAriaLabels';\nimport create from 'zustand';\n\ninterface IAriaLabelsState {\n ariaLabels: IAriaLabels;\n setAriaLabels: (ariaLabels: IAriaLabels) => void;\n}\n\nexport const initialAriaLabels: IAriaLabels = {\n backToFirstLevelNavigationAriaLabel: 'Back to first level of navigation',\n breadcrumbAriaLabel: 'Breadcrumb navigation',\n breadcrumbFooterAriaLabel: 'Breadcrumb footer navigation',\n clearFiltersAriaLabel: 'Clear filters',\n closeMenuAriaLabel: 'Close menu',\n closeAddressListAriaLabel: 'Close address list',\n closeMobileNavigationAriaLabel: 'Close navigation',\n closeModalAriaLabel: 'Close Modal',\n closeSignUpFormAriaLabel: 'Close signup form',\n closeSiteNotificationAriaLabel: 'Close site notification',\n copyToClipboardAriaLabel: 'Copy to clipboard',\n editOrDeleteAriaLabel: 'Edit or delete',\n mainNavigationAriaLabel: 'Main navigation',\n moreInformationAriaLabel: 'More information',\n nextAriaLabel: 'Go to next slide',\n openAddressListAriaLabel: 'Open address list',\n openImageInFullScreenAriaLabel: 'Open image in full screen',\n openMenuAriaLabel: 'Open menu',\n overlayToCloseDesktopNavigationAriaLabel: 'Close overlay',\n pauseVideoAriaLabel: 'Pause video',\n playVideoAriaLabel: 'Play video',\n previousAriaLabel: 'Go to previous slide',\n searchAriaLabel: 'Search',\n shareToFacebookAriaLabel: 'Share to Facebook',\n shareToWhatsappAriaLabel: 'Share to Whatsapp',\n shareToXAriaLabel: 'Share to X',\n siteNotificationsAriaLabel: 'Site notifications banner',\n uspStripAriaLabel: 'Unique Selling Point Strip',\n zoomInAriaLabel: 'Zoom in',\n zoomOutAriaLabel: 'Zoom out',\n};\n\nconst useAriaLabelsStore = create<IAriaLabelsState>((set) => ({\n ariaLabels: initialAriaLabels,\n setAriaLabels: (ariaLabels: IAriaLabels) => set({ ariaLabels }),\n}));\n\nexport default useAriaLabelsStore;\n","import ErrorBannerNotificationEnum from '@models/enums/ErrorBannerNotificationEnum';\nimport create from 'zustand';\n\ninterface IErrorBannerNotificationState {\n readonly errorBannerNotification: ErrorBannerNotificationEnum | null;\n readonly setErrorBannerNotification: (\n errorNotificationDisplay: ErrorBannerNotificationEnum | null\n ) => void;\n}\n\nconst useErrorNotificationStore = create<IErrorBannerNotificationState>(\n (set) => ({\n errorBannerNotification: null,\n setErrorBannerNotification: (\n errorBannerNotification: ErrorBannerNotificationEnum | null\n ) => set({ errorBannerNotification }),\n })\n);\n\nexport default useErrorNotificationStore;\n","const bodyScrollLock = (isScrollLocked: boolean) => {\n const documentElementScroll =\n document.documentElement.style.getPropertyValue('--scroll-y');\n const cacheLocator = documentElementScroll || `${window.scrollY}px`;\n\n if (!documentElementScroll) {\n window.addEventListener('scroll', () => {\n document.documentElement.style.setProperty(\n '--scroll-y',\n `${window.scrollY}px`\n );\n });\n }\n\n if (isScrollLocked) {\n const scrollY = cacheLocator;\n const { body } = document;\n body.style.position = 'fixed';\n body.style.top = `-${scrollY}`;\n } else {\n const { body } = document;\n body.style.position = '';\n const scrollY = body.style.top || cacheLocator;\n body.style.top = '';\n window.scrollTo(0, Math.abs(parseInt(scrollY || '0', 10)));\n }\n};\n\nexport default bodyScrollLock;\n","import { IAriaLabels } from '@models/IAriaLabels';\nimport useAriaLabelsStore, { initialAriaLabels } from '@state/AriaLabelsStore';\nimport { useEffect, useState } from 'react';\n\nconst useAriaLabels = () => {\n const [ariaLabels, setAriaLabels] = useState<IAriaLabels>(initialAriaLabels);\n const ariaLabelsFromStore = useAriaLabelsStore((state) => state.ariaLabels);\n\n useEffect(() => {\n setAriaLabels(ariaLabelsFromStore);\n }, [ariaLabelsFromStore]);\n\n return ariaLabels;\n};\n\nexport default useAriaLabels;\n","import { useCallback, useRef, useState } from 'react';\n\nconst useResizeObserver = () => {\n const observerRef = useRef<ResizeObserver>();\n const [resizeParameters, setResizeParameters] = useState({\n width: 0,\n height: 0,\n clientWidth: 0,\n clientHeight: 0,\n scrollWidth: 0,\n scrollHeight: 0,\n });\n\n const handleResize = useCallback((entries: ResizeObserverEntry[]) => {\n if (!Array.isArray(entries)) return;\n\n const entry = entries[0];\n\n setResizeParameters({\n width: entry?.contentRect.width ?? 0,\n height: entry?.contentRect.height ?? 0,\n clientWidth: entry?.target.clientWidth ?? 0,\n clientHeight: entry?.target.clientHeight ?? 0,\n scrollWidth: entry?.target.scrollWidth ?? 0,\n scrollHeight: entry?.target.scrollHeight ?? 0,\n });\n }, []);\n\n const ref = useCallback(\n (node: HTMLElement | null) => {\n if (observerRef.current && !node) {\n observerRef.current.disconnect();\n observerRef.current = undefined;\n }\n\n if (!observerRef.current && node) {\n observerRef.current = new ResizeObserver(handleResize);\n observerRef.current.observe(node);\n }\n },\n [handleResize]\n );\n\n return [ref, resizeParameters] as const;\n};\n\nexport default useResizeObserver;\n"],"names":["_ref","ariaLabel","className","color","onClick","size","IconSizeEnum","lg","dataTestId","closeModalAriaLabel","useAriaLabels","React","createElement","type","classNames","black","white","red","style","width","height","extraClasses","svgClasses","pulseContainerClasses","pulseItemClasses","trackColor","animationStyle","role","viewBox","fill","xmlns","d","onCloseCallback","children","contentClasses","crossColor","crossMarginsClassName","crossClasses","isOpen","modalClasses","setIsOpen","showCloseButton","transparent","isCloseButtonFixed","closeButtonIconSize","md","shouldCloseOnClickOutsideContent","shouldLockBody","contentRef","useRef","useEffect","bodyScrollLock","close","useCallback","keyboardClose","ev","key","window","addEventListener","removeEventListener","handleClickOutsideContent","current","contains","target","Portal","mountId","FocusTrap","focusTrapOptions","preventScroll","escapeDeactivates","motion","div","animate","opacity","exit","initial","transition","duration","ease","ref","Fragment","CloseButton","containerElement","useMemo","document","getElementById","appendChild","removeChild","createPortal","containerRef","containerHeight","contentHeight","disabled","arguments","length","undefined","isMouseDown","setIsMouseDown","useState","mouseScrollPosition","top","y","container","clientWidth","cursor","scrollTop","mouseMoveHandler","e","dy","clientY","mouseUpHandler","mouseDownHandler","scrollYProgress","useScroll","isStart","setIsStart","isEnd","setIsEnd","scrollProgress","setScrollProgress","ScrollProgressEnum","Start","threshold","useMotionValueEvent","value","Middle","End","forwardRef","customScrollbarTheme","disableScroll","shadowColour","hideScrollbar","shadowHeight","containerRefCallback","useResizeObserver","contentRefCallback","useVerticalScrollShadows","useVerticalGrabScroll","useImperativeHandle","scrollTo","topOffset","behavior","AnimatePresence","span","node","tabIndex","props","campaign","componentName","showExpandedFilters","specialism","sectionTitle","showProfilePhotos","preFilterParams","AuthorType","GenreList","CampaignList","results","listingProps","useListingComponentProps","pageSize","placeholderRef","useRefocus","placeIndex","pageNumber","ListingTopBar","_extends","pageType","ListingResultsContainer","resultsClassName","noResultsClassName","errorClassName","map","author","index","authorName","link","url","AuthorCard","initials","thumbnail","LoadMoreListing","ErrorBannerNotificationEnum","initialAriaLabels","backToFirstLevelNavigationAriaLabel","breadcrumbAriaLabel","breadcrumbFooterAriaLabel","clearFiltersAriaLabel","closeMenuAriaLabel","closeAddressListAriaLabel","closeMobileNavigationAriaLabel","closeSignUpFormAriaLabel","closeSiteNotificationAriaLabel","copyToClipboardAriaLabel","editOrDeleteAriaLabel","mainNavigationAriaLabel","moreInformationAriaLabel","nextAriaLabel","openAddressListAriaLabel","openImageInFullScreenAriaLabel","openMenuAriaLabel","overlayToCloseDesktopNavigationAriaLabel","pauseVideoAriaLabel","playVideoAriaLabel","previousAriaLabel","searchAriaLabel","shareToFacebookAriaLabel","shareToWhatsappAriaLabel","shareToXAriaLabel","siteNotificationsAriaLabel","uspStripAriaLabel","zoomInAriaLabel","zoomOutAriaLabel","create","set","ariaLabels","setAriaLabels","errorBannerNotification","setErrorBannerNotification","isScrollLocked","documentElementScroll","documentElement","getPropertyValue","cacheLocator","scrollY","setProperty","body","position","Math","abs","parseInt","ariaLabelsFromStore","useAriaLabelsStore","state","observerRef","resizeParameters","setResizeParameters","clientHeight","scrollWidth","scrollHeight","handleResize","entries","Array","isArray","entry","contentRect","disconnect","ResizeObserver","observe"],"sourceRoot":""}