{"version":3,"sources":["webpack:///./src/stories/Components/Button/Button.styles.ts","webpack:///./src/stories/Components/Button/Button.tsx","webpack:///./src/img/icons/search.svg","webpack:///./src/img/icons/search-submit.svg","webpack:///./src/hoc/withMotionMax.tsx","webpack:///./src/stories/Components/ModalBackdrop/ModalBackdrop.styles.ts","webpack:///./src/stories/Components/ModalBackdrop/ModalBackdrop.tsx","webpack:///./src/helpers/srOnly.ts","webpack:///./src/stories/Components/LinkButton/LinkButton.tsx","webpack:///./src/stories/Components/MessageBanner/Components/CountdownTimer/CountdownTimer.tsx","webpack:///./src/stories/Components/MessageBanner/Components/ImageBanner/ImageBanner.styles.ts","webpack:///./src/stories/Components/MessageBanner/Components/ImageBanner/ImageBanner.tsx","webpack:///./src/stories/Components/MessageBanner/Components/VideoBanner/VideoBanner.styles.ts","webpack:///./src/stories/Components/MessageBanner/Components/VideoBanner/VideoBanner.tsx","webpack:///./src/stories/Components/MessageBanner/Components/CountdownBanner/CountdownBanner.styles.ts","webpack:///./src/stories/Components/MessageBanner/Components/CountdownBanner/CountdownBanner.tsx","webpack:///./src/stories/Components/MessageBanner/MessageBanner.styles.ts","webpack:///./src/stories/Components/MessageBanner/MessageBanner.tsx","webpack:///./src/stories/Components/MobileFloatingCta/MobileFloatingCta.styles.ts","webpack:///./src/stories/Components/MobileFloatingCta/MobileFloatingCta.tsx","webpack:///./src/stories/Components/SearchDropdown/SearchDropdown.styles.ts","webpack:///./src/stories/Components/SearchDropdown/SearchDropdown.tsx","webpack:///./src/stories/Widgets/Header/Header.tsx","webpack:///./src/helpers/utils.ts","webpack:///./node_modules/react-use/esm/useFirstMountState.js","webpack:///./node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js","webpack:///./node_modules/framer-motion/dist/es/components/AnimatePresence/index.js","webpack:///./node_modules/framer-motion/dist/es/utils/use-force-update.js","webpack:///./src/img/icons/close.svg"],"names":["Container","styled","button","transition","brand","green","white","black","until","Device","TabletLarge","Text","span","paragraphSmall","fonts","brandonGrotesque","bold","srOnly","ButtonStyles","IconWrapper","div","Button","buttonType","children","fillDirection","icon","iconOnly","iconPosition","otherProps","React","FocusRing","focusRingClass","S","_defs","_g","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","SvgSearch","props","xmlns","viewBox","id","d","transform","fill","clipPath","stroke","_path","SvgSearchSubmit","withMotionMax","WrappedComponent","displayName","name","ComponentWithMotionMax","createElement","LazyMotion","features","domMax","strict","ModalBackdropStyles","Layers","ModalBackdrop","ReactDOM","createPortal","className","onClick","document","body","css","LinkButton","as","CountdownTimer","timeRemaining","time","days","toString","padStart","hours","minutes","ImageBannerStyles","Image","img","ImageBanner","images","media","from","srcSet","imageUrl","desktop","width","Tablet","tablet","height","src","mobile","role","altText","undefined","loading","alt","VideoBannerStyles","Video","video","between","VideoBanner","videos","autoPlay","loop","muted","playsInline","poster","type","includes","ContentWrapper","m","fluid","MobileLarge","CountdownBannerStyles","TextWrapper","Countdown","medium","CtaWrapper","CtaLink","a","CountdownBanner","text","countdownEndDate","countdownUrl","cta","currentIndex","maxIndex","onTimerEnd","isFirstMount","useFirstMountState","setTimeRemaining","seconds","calculateTimeRemaining","remainingTime","Date","getTime","Math","floor","timerId","setInterval","clearInterval","clamp","AnimatePresence","initial","opacity","animate","exit","href","title","url","GlobalStyles","createGlobalStyle","Wrapper","MessageBannerStyles","MessageBannerType","section","beige","greyDark","Inner","currentItemIndex","setCurrentItemIndex","items","map","item","index","y","duration","backgroundColorHex","foregroundColorHex","style","nextIndex","renderBannerType","MobileFloatingCtaStyles","Header","MobileFloatingCta","Form","form","siteWide","InputWrapper","Input","input","regular","mix","TabletSmall","Submit","SearchDropdownStyles","Backdrop","HeaderBackdrop","SearchDropdown","value","setValue","onClose","action","searchResultsUrl","method","onKeyDown","event","autoFocus","placeholder","onChange","isSearchActive","setIsSearchActive","isMobileNavActive","setIsMobileNavActive","isPeeking","useScrollPeek","threshold","isScrollActive","setIsScrollActive","handleScroll","window","scrollY","addEventListener","removeEventListener","messageBanner","MessageBanner","TopContainer","TopInner","QuickLinkList","QuickLinkItem","QuickLinkAnchor","preventDefault","toggleSearch","QuickLinkIcon","SvgClose","pinboardUrl","SvgPin","MobileSearch","MobileSearchIcon","Logo","logo","MobileNav","Hamburger","color","size","toggled","contactLink","authUrl","SvgUser","isAuthenticated","NavigationContainer","NavigationDesktop","navigation","ctas","CtaContainer","Cta","searchPlaceholder","NavigationMobile","isAccountArea","isActive","scrollActive","locationLink","floatingCta","FloatingCtaContainer","EMAIL_RULE","message","trim","PASSWORD_RULE","POSTCODE_RULE","TELEPHONE_RULE","max","min","isFirst","current","presenceId","getPresenceId","PresenceChild","_a","isPresent","onExitComplete","custom","presenceAffectsLayout","presenceChildren","newChildrenMap","context","childId","set","allComplete","forEach","isComplete","register","delete","_","PresenceContext","Provider","Map","getChildKey","child","_b","exitBeforeEnter","_c","forceRender","unloadingRef","forcedRenderCount","setForcedRenderCount","useForceUpdate","layoutContext","SharedLayoutContext","forceUpdate","isInitialRender","filteredChildren","filtered","push","onlyElements","presentChildren","allChildren","exiting","Set","updateChildLookup","childrenToRender","presentKeys","targetKeys","numPresent","indexOf","add","get","insertionIndex","splice","removeIndex","findIndex","presentChild","has","fillRule"],"mappings":"sFAAA,sDAOA,MAAMA,EAAYC,IAAOC,OAAV,8EAAGD,CAAH,gpDAYXE,YAAW,0CAsDEC,IAAMC,MACND,IAAME,MACAF,IAAMG,MACNH,IAAME,MAIZF,IAAME,MACNF,IAAMG,MACAH,IAAMG,MACNH,IAAME,MAKZF,IAAME,MACNF,IAAMC,MACFD,IAAMC,MACJD,IAAMC,MACND,IAAME,MACFF,IAAMC,MAiBtBG,YAAMC,IAAOC,cAclBC,EAAOV,IAAOW,KAAV,yEAAGX,CAAH,2IACNE,YAAW,SACXU,IACAC,IAAMC,iBAAiBC,KASrBC,KAgCAC,EAAe,CACjBlB,YACAmB,YA/BgBlB,IAAOmB,IAAV,gFAAGnB,CAAH,oUAMbE,YAAW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gCEvLtE,sCAAIpP,EAAJ,OAEA,SAASzB,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,IAA2BS,MAAMC,KAAMR,WAItU,SAASwM,EAAS9L,GAChB,OAAoB,gBAAoB,MAAOhB,EAAS,CACtDiB,MAAO,6BACPC,QAAS,iBACRF,GAAQS,IAAUA,EAAqB,gBAAoB,OAAQ,CACpEH,KAAM,eACNF,EAAG,qxBACH4R,SAAU,cAIC","file":"90-1522fcfb19a600915a06.js","sourcesContent":["import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport fonts from '@helpers/fonts';\r\nimport { Device, until } from '@helpers/media';\r\nimport srOnly from '@helpers/srOnly';\r\nimport { paragraphSmall } from '@helpers/typography';\r\nimport styled from 'styled-components';\r\nconst Container = styled.button `\r\n display: inline-flex;\r\n align-items: center;\r\n border: var(--borderWidth, 0) solid var(--colorBorder, var(--colorBg));\r\n background: var(--colorBg);\r\n background-image: linear-gradient(to right, var(--colorBgActive), var(--colorBgActive));\r\n background-repeat: no-repeat;\r\n background-size: 0% 100%;\r\n color: var(--colorFg);\r\n min-height: 52px;\r\n padding: 12px 26px;\r\n text-decoration: none;\r\n ${transition('background-size, border-color, opacity')};\r\n user-select: none;\r\n width: auto;\r\n\r\n &[data-fill='right'] {\r\n background-position: left center;\r\n }\r\n\r\n &[data-fill='left'] {\r\n background-position: right center;\r\n }\r\n\r\n span& {\r\n button.focus-ring &,\r\n a.focus-ring & {\r\n outline: auto;\r\n outline-offset: -5px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n button.focus-ring,\r\n a.focus-ring,\r\n button:hover &,\r\n a:hover & {\r\n border-color: var(--colorBorderActive, var(--colorBgActive));\r\n color: var(--colorFgActive);\r\n background-size: 100% 100%;\r\n }\r\n }\r\n\r\n &:not(span) {\r\n cursor: pointer;\r\n\r\n &:focus {\r\n outline: none;\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: -5px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n &.focus-ring,\r\n &:hover {\r\n border-color: var(--colorBorderActive, var(--colorBgActive));\r\n color: var(--colorFgActive);\r\n background-size: 100% 100%;\r\n }\r\n }\r\n\r\n &[data-type='default'] {\r\n --colorBg: ${brand.green};\r\n --colorFg: ${brand.white};\r\n --colorBgActive: ${brand.black};\r\n --colorFgActive: ${brand.white};\r\n }\r\n\r\n &[data-type='inverted'] {\r\n --colorBg: ${brand.white};\r\n --colorFg: ${brand.black};\r\n --colorBgActive: ${brand.black};\r\n --colorFgActive: ${brand.white};\r\n }\r\n\r\n &[data-type='outline'] {\r\n --borderWidth: 2px;\r\n --colorBg: ${brand.white};\r\n --colorFg: ${brand.green};\r\n --colorBorder: ${brand.green};\r\n --colorBgActive: ${brand.green};\r\n --colorFgActive: ${brand.white};\r\n --colorBorderActive: ${brand.green};\r\n }\r\n\r\n &[data-icon-only='true'] {\r\n height: 52px;\r\n justify-content: center;\r\n padding: 0;\r\n width: 52px;\r\n }\r\n\r\n /* Increase specificity to override :not(span) style */\r\n &:disabled:disabled:disabled {\r\n background-size: 0% 100%;\r\n opacity: 0.5;\r\n pointer-events: none;\r\n }\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n min-height: 45px;\r\n padding: 6px 12px;\r\n\r\n &[data-icon-only='true'] {\r\n height: 45px;\r\n width: 45px;\r\n }\r\n }\r\n\r\n @media print {\r\n display: none !important;\r\n }\r\n`;\r\nconst Text = styled.span `\r\n ${transition('color')};\r\n ${paragraphSmall};\r\n ${fonts.brandonGrotesque.bold};\r\n\r\n color: currentColor;\r\n line-height: 1.25;\r\n margin: 0;\r\n text-decoration: none;\r\n text-transform: uppercase;\r\n\r\n [data-icon-only='true'] & {\r\n ${srOnly};\r\n }\r\n`;\r\nconst IconWrapper = styled.div `\r\n display: block;\r\n color: currentColor;\r\n height: 17px;\r\n margin: 0;\r\n padding: 0;\r\n ${transition('color')};\r\n width: 37px;\r\n\r\n [data-icon-position='left'] & {\r\n margin-right: auto;\r\n order: -1;\r\n padding-right: 20px;\r\n }\r\n\r\n [data-icon-position='right'] & {\r\n margin-left: auto;\r\n order: 1;\r\n padding-left: 20px;\r\n }\r\n\r\n [data-icon-only='true'] & {\r\n color: currentColor;\r\n height: 17px;\r\n margin: 0;\r\n padding: 0;\r\n width: 17px;\r\n }\r\n`;\r\nconst ButtonStyles = {\r\n Container,\r\n IconWrapper,\r\n Text,\r\n};\r\nexport default ButtonStyles;\r\n","import * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './Button.styles';\r\nconst Button = ({ buttonType, children, fillDirection = 'right', icon, iconOnly, iconPosition = 'right', ...otherProps }) => {\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Container, { \"data-fill\": fillDirection, \"data-icon-only\": iconOnly, \"data-icon-position\": iconPosition, \"data-type\": buttonType, ...otherProps },\r\n React.createElement(S.Text, null, children),\r\n icon && React.createElement(S.IconWrapper, null, icon))));\r\n};\r\nexport default Button;\r\n","var _defs, _g;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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 SvgSearch(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 19.089 19.089\"\n }, props), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"search_svg__a\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Path 116\",\n d: \"M0 5.339h19.089V-13.75H0z\",\n transform: \"translate(0 13.75)\",\n fill: \"none\"\n })))), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n \"data-name\": \"Group 216\",\n clipPath: \"url(#search_svg__a)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n \"data-name\": \"Group 214\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Path 114\",\n d: \"M7.983 15.271a7.289 7.289 0 007.288-7.288A7.289 7.289 0 007.983.694 7.289 7.289 0 00.694 7.983a7.289 7.289 0 007.289 7.288z\",\n fill: \"none\",\n stroke: \"#000\"\n })), /*#__PURE__*/React.createElement(\"g\", {\n \"data-name\": \"Group 215\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Path 115\",\n d: \"M13.086 13.087l5.512 5.512\",\n fill: \"none\",\n stroke: \"#000\"\n })))));\n}\n\nexport default __webpack_public_path__ + \"b4aa8e88b7678a529579d887ffe57d4d.svg\";\nexport { SvgSearch as ReactComponent };","var _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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 SvgSearchSubmit(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 25 25\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.211 20.411a10.148 10.148 0 006.293-2.18L23.27 25 25 23.269 18.234 16.5a10.2 10.2 0 10-8.024 3.911zm0-17.962a7.755 7.755 0 11-5.483 2.272 7.753 7.753 0 015.483-2.272z\",\n fill: \"currentColor\"\n })));\n}\n\nexport default __webpack_public_path__ + \"0c7749b88e5b97c795ed5e8cdb231f0f.svg\";\nexport { SvgSearchSubmit as ReactComponent };","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 { Layers } from '@helpers/layers';\r\nimport styled from 'styled-components';\r\nconst Container = styled.div `\r\n content: '';\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background: rgba(0, 0, 0, 0.5);\r\n height: 100%;\r\n width: 100%;\r\n z-index: ${Layers.ModalBackdrop};\r\n`;\r\nconst ModalBackdropStyles = {\r\n Container,\r\n};\r\nexport default ModalBackdropStyles;\r\n","import * as React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport S from './ModalBackdrop.styles';\r\nconst ModalBackdrop = (props) => {\r\n return ReactDOM.createPortal(React.createElement(S.Container, { className: props.className, onClick: props.onClick, \"aria-hidden\": true }), document.body);\r\n};\r\nexport default ModalBackdrop;\r\n","import { css } from 'styled-components';\r\n/**\r\n * Show only for screen readers.\r\n * @description Sourced from https://gist.github.com/ffoodd/000b59f431e3e64e4ce1a24d5bb36034\r\n */\r\nconst srOnly = css `\r\n border: 0 !important;\r\n clip: rect(1px, 1px, 1px, 1px) !important;\r\n -webkit-clip-path: inset(50%) !important;\r\n clip-path: inset(50%) !important;\r\n height: 1px !important;\r\n margin: -1px !important;\r\n overflow: hidden !important;\r\n padding: 0 !important;\r\n position: absolute !important;\r\n width: 1px !important;\r\n white-space: nowrap !important;\r\n`;\r\nexport default srOnly;\r\n","import * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from '../Button/Button.styles';\r\nconst LinkButton = ({ buttonType, children, fillDirection = 'right', icon, iconOnly, iconPosition = 'right', ...otherProps }) => {\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Container, { as: \"a\", \"data-fill\": fillDirection, \"data-icon-only\": iconOnly, \"data-icon-position\": iconPosition, \"data-type\": buttonType, ...otherProps },\r\n React.createElement(S.Text, null, children),\r\n icon && React.createElement(S.IconWrapper, null, icon))));\r\n};\r\nexport default LinkButton;\r\n","import * as React from 'react';\r\nconst CountdownTimer = ({ timeRemaining }) => {\r\n const formatTime = (time) => {\r\n const formattedDays = time.days.toString().padStart(2, '0');\r\n const formattedHours = time.hours.toString().padStart(2, '0');\r\n const formattedMinutes = time.minutes.toString().padStart(2, '0');\r\n return `${formattedDays} days ${formattedHours} hours ${formattedMinutes} mins`;\r\n };\r\n return React.createElement(React.Fragment, null, formatTime(timeRemaining));\r\n};\r\nexport default CountdownTimer;\r\n","import styled from 'styled-components';\r\nconst Image = styled.img `\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n`;\r\nconst ImageBannerStyles = {\r\n Image,\r\n};\r\nexport default ImageBannerStyles;\r\n","import { imageUrl } from '@helpers/image';\r\nimport { Device, from } from '@helpers/media';\r\nimport * as React from 'react';\r\nimport S from './ImageBanner.styles';\r\nconst ImageBanner = ({ images }) => {\r\n if (!images) {\r\n return null;\r\n }\r\n return (React.createElement(\"picture\", null,\r\n React.createElement(\"source\", { media: from(Device.TabletLarge), srcSet: imageUrl(images.desktop, { width: 1920 }) }),\r\n React.createElement(\"source\", { media: from(Device.Tablet), srcSet: imageUrl(images.tablet, { width: 1024, height: 54 }) }),\r\n React.createElement(S.Image, { src: imageUrl(images.mobile, { width: 768 }), role: !images.mobile.altText ? 'presentation' : undefined, loading: \"eager\", alt: images.mobile.altText })));\r\n};\r\nexport default ImageBanner;\r\n","import { Device, between, from } from '@helpers/media';\r\nimport styled from 'styled-components';\r\nconst Video = styled.video `\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n\r\n &[data-mobile='true'] {\r\n @media ${from(Device.Tablet)} {\r\n display: none;\r\n }\r\n }\r\n\r\n &[data-tablet='true'] {\r\n display: none;\r\n\r\n @media ${between(Device.Tablet, Device.TabletLarge)} {\r\n display: block;\r\n }\r\n }\r\n\r\n &[data-desktop='true'] {\r\n display: none;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n display: block;\r\n }\r\n }\r\n`;\r\nconst VideoBannerStyles = {\r\n Video,\r\n};\r\nexport default VideoBannerStyles;\r\n","import { imageUrl } from '@helpers/image';\r\nimport * as React from 'react';\r\nimport S from './VideoBanner.styles';\r\nconst VideoBanner = ({ images, videos }) => {\r\n if (!videos) {\r\n return null;\r\n }\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(S.Video, { autoPlay: true, loop: true, muted: true, playsInline: true, poster: images && images.desktop ? imageUrl(images.desktop, { width: 1920 }) : undefined, \"data-desktop\": true },\r\n React.createElement(\"source\", { type: videos.desktop.includes('webm') ? 'video/webm' : 'video/mp4', src: videos.desktop })),\r\n React.createElement(S.Video, { autoPlay: true, loop: true, muted: true, playsInline: true, poster: images && images.tablet ? imageUrl(images.tablet, { width: 1024 }) : undefined, \"data-tablet\": true },\r\n React.createElement(\"source\", { type: videos.tablet.includes('webm') ? 'video/webm' : 'video/mp4', src: videos.tablet })),\r\n React.createElement(S.Video, { autoPlay: true, loop: true, muted: true, playsInline: true, poster: images && images.mobile ? imageUrl(images.mobile, { width: 768 }) : undefined, \"data-mobile\": true },\r\n React.createElement(\"source\", { type: videos.mobile.includes('webm') ? 'video/webm' : 'video/mp4', src: videos.mobile }))));\r\n};\r\nexport default VideoBanner;\r\n","import { transition } from '@helpers/animate';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport styled from 'styled-components';\r\nimport ImageBannerStyles from '../ImageBanner/ImageBanner.styles';\r\nimport VideoBannerStyles from '../VideoBanner/VideoBanner.styles';\r\nimport { m } from 'framer-motion';\r\nconst Container = styled.div `\r\n display: flex;\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n\r\n ${ImageBannerStyles.Image},\r\n ${VideoBannerStyles.Video} {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n }\r\n`;\r\nconst ContentWrapper = styled(m.div) `\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n place-items: center;\r\n gap: ${fluid(4, 8)};\r\n width: 100%;\r\n margin: auto 0;\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n flex-direction: row;\r\n place-content: space-evenly;\r\n place-items: center;\r\n }\r\n`;\r\nconst TextWrapper = styled.div `\r\n color: var(--fgColor);\r\n text-decoration: none;\r\n text-align: center;\r\n padding: 0 16px;\r\n\r\n &:is(a) {\r\n text-decoration: none;\r\n\r\n &:hover {\r\n text-underline-offset: 2px;\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: flex;\r\n gap: 4px;\r\n }\r\n`;\r\nconst Text = styled.div `\r\n font-size: ${fluid(14, 18)};\r\n\r\n @media ${until(Device.Tablet)} {\r\n display: inline;\r\n\r\n &:after {\r\n content: ' ';\r\n }\r\n }\r\n`;\r\nconst Countdown = styled.div `\r\n ${fonts.brandonGrotesque.medium}\r\n font-size: ${fluid(14, 18)};\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n min-width: 140px;\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n display: inline;\r\n }\r\n`;\r\nconst CtaWrapper = styled.div ``;\r\nconst CtaLink = styled.a `\r\n ${fonts.brandonGrotesque.bold}\r\n color: var(--fgColor);\r\n font-size: ${fluid(14, 18)};\r\n text-underline-offset: 2px;\r\n ${transition('text-underline-offset')}\r\n\r\n &:hover {\r\n text-underline-offset: 4px;\r\n }\r\n`;\r\nconst CountdownBannerStyles = {\r\n Container,\r\n TextWrapper,\r\n Text,\r\n Countdown,\r\n CtaWrapper,\r\n CtaLink,\r\n ContentWrapper,\r\n};\r\nexport default CountdownBannerStyles;\r\n","import { clamp } from '@helpers/utils';\r\nimport { AnimatePresence } from 'framer-motion';\r\nimport * as React from 'react';\r\nimport { useFirstMountState } from 'react-use';\r\nimport CountdownTimer from '../CountdownTimer/CountdownTimer';\r\nimport ImageBanner from '../ImageBanner/ImageBanner';\r\nimport VideoBanner from '../VideoBanner/VideoBanner';\r\nimport S from './CountdownBanner.styles';\r\nconst CountdownBanner = ({ text, countdownEndDate, countdownUrl, cta, images, videos, currentIndex, maxIndex, onTimerEnd, }) => {\r\n const isFirstMount = useFirstMountState();\r\n const [timeRemaining, setTimeRemaining] = React.useState({\r\n days: 0,\r\n hours: 0,\r\n minutes: 0,\r\n seconds: 0,\r\n });\r\n React.useEffect(() => {\r\n if (!countdownEndDate) {\r\n return;\r\n }\r\n const calculateTimeRemaining = () => {\r\n const endTime = new Date(countdownEndDate).getTime();\r\n const currentTime = new Date().getTime();\r\n const remainingTime = endTime - currentTime;\r\n if (remainingTime < 0) {\r\n return setTimeRemaining({\r\n days: 0,\r\n hours: 0,\r\n minutes: 0,\r\n seconds: 0,\r\n });\r\n }\r\n const days = Math.floor(remainingTime / (1000 * 60 * 60 * 24));\r\n const hours = Math.floor((remainingTime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\r\n const minutes = Math.floor((remainingTime % (1000 * 60 * 60)) / (1000 * 60));\r\n const seconds = Math.floor((remainingTime % (1000 * 60)) / 1000);\r\n setTimeRemaining({\r\n days,\r\n hours,\r\n minutes,\r\n seconds,\r\n });\r\n };\r\n calculateTimeRemaining();\r\n const timerId = setInterval(calculateTimeRemaining, 1000);\r\n return () => clearInterval(timerId);\r\n }, [countdownEndDate]);\r\n React.useEffect(() => {\r\n if (!isFirstMount &&\r\n timeRemaining.days === 0 &&\r\n timeRemaining.hours === 0 &&\r\n timeRemaining.minutes === 0 &&\r\n timeRemaining.seconds < 59) {\r\n onTimerEnd(clamp(currentIndex + 1, maxIndex));\r\n }\r\n }, [timeRemaining]);\r\n return (React.createElement(S.Container, null,\r\n videos ? (React.createElement(VideoBanner, { videos: videos, images: images })) : images ? (React.createElement(ImageBanner, { images: images })) : null,\r\n React.createElement(AnimatePresence, null, !isFirstMount &&\r\n timeRemaining.days === 0 &&\r\n timeRemaining.hours === 0 &&\r\n timeRemaining.minutes === 0 &&\r\n timeRemaining.seconds < 59 ? null : (React.createElement(S.ContentWrapper, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } },\r\n React.createElement(S.TextWrapper, { ...(countdownUrl\r\n ? {\r\n as: 'a',\r\n href: countdownUrl,\r\n title: text,\r\n }\r\n : {}) },\r\n text && React.createElement(S.Text, null, text),\r\n countdownEndDate && (React.createElement(S.Countdown, null,\r\n React.createElement(CountdownTimer, { timeRemaining: timeRemaining })))),\r\n cta && cta.text && cta.url && (React.createElement(S.CtaWrapper, null,\r\n React.createElement(S.CtaLink, { href: cta.url, target: cta.target ?? '_self' }, cta.text))))))));\r\n};\r\nexport default CountdownBanner;\r\n","import brand from '@helpers/brand';\r\nimport { m } from 'framer-motion';\r\nimport styled, { createGlobalStyle } from 'styled-components';\r\nconst GlobalStyles = createGlobalStyle `\r\n :root {\r\n --headerMessageHeight: 55px;\r\n }\r\n`;\r\nconst Wrapper = styled.div `\r\n height: var(--headerMessageHeight, 0px);\r\n position: relative;\r\n overflow: hidden;\r\n`;\r\nconst Container = styled(m.section) `\r\n --bgColor: ${brand.beige};\r\n --fgColor: ${brand.greyDark};\r\n height: 100%;\r\n width: 100%;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n background: var(--bgColor);\r\n color: var(--fgColor);\r\n`;\r\nconst Inner = styled.span `\r\n display: flex;\r\n width: 100%;\r\n place-items: center;\r\n height: var(--headerMessageHeight, 0px);\r\n width: 100%;\r\n max-width: 1920px;\r\n margin: 0 auto;\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: -3px;\r\n outline-color: ${brand.greyDark};\r\n outline-width: 2px;\r\n }\r\n`;\r\nconst MessageBannerStyles = {\r\n Container,\r\n GlobalStyles,\r\n Inner,\r\n Wrapper,\r\n};\r\nexport default MessageBannerStyles;\r\n","import { withMotionMax } from '@hoc/withMotionMax';\r\nimport { AnimatePresence } from 'framer-motion';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport CountdownBanner from './Components/CountdownBanner/CountdownBanner';\r\nimport ImageBanner from './Components/ImageBanner/ImageBanner';\r\nimport VideoBanner from './Components/VideoBanner/VideoBanner';\r\nimport S from './MessageBanner.styles';\r\nexport var MessageBannerType;\r\n(function (MessageBannerType) {\r\n MessageBannerType[MessageBannerType[\"Countdown\"] = 0] = \"Countdown\";\r\n MessageBannerType[MessageBannerType[\"Image\"] = 1] = \"Image\";\r\n MessageBannerType[MessageBannerType[\"Video\"] = 2] = \"Video\";\r\n})(MessageBannerType || (MessageBannerType = {}));\r\nconst MessageBanner = (props) => {\r\n const [currentItemIndex, setCurrentItemIndex] = React.useState(0);\r\n if (!props.items || !props.items.length) {\r\n return null;\r\n }\r\n return (React.createElement(S.Wrapper, null,\r\n React.createElement(S.GlobalStyles, null),\r\n React.createElement(AnimatePresence, null, props.items.map((item, index) => {\r\n if (index !== currentItemIndex) {\r\n return null;\r\n }\r\n return (React.createElement(S.Container, { key: `message-banner-${index}`, initial: { opacity: 0, y: `-105%` }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: `105%` }, transition: { duration: 0.45 }, ...(item.backgroundColorHex || item.foregroundColorHex\r\n ? {\r\n style: {\r\n '--bgColor': item.backgroundColorHex,\r\n '--fgColor': item.foregroundColorHex,\r\n },\r\n }\r\n : {}) },\r\n React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Inner, { ...(item.type !== MessageBannerType.Countdown && item.cta\r\n ? {\r\n as: 'a',\r\n href: item.cta?.url,\r\n title: item.cta?.text,\r\n target: item.cta?.target,\r\n }\r\n : {}), \"data-is-link\": !!item.cta }, renderBannerType(item)))));\r\n }))));\r\n function renderBannerType(item) {\r\n switch (item.type) {\r\n case MessageBannerType.Countdown:\r\n return (React.createElement(CountdownBanner, { text: item.text, countdownEndDate: item.countdownEndDate, countdownUrl: item.countdownUrl, cta: item.cta, images: item.images, videos: item.videos, currentIndex: currentItemIndex, maxIndex: props.items.length - 1, onTimerEnd: (nextIndex) => setCurrentItemIndex(nextIndex) }));\r\n case MessageBannerType.Image:\r\n return React.createElement(ImageBanner, { images: item.images });\r\n case MessageBannerType.Video:\r\n return React.createElement(VideoBanner, { images: item.images, videos: item.videos });\r\n default:\r\n return null;\r\n }\r\n }\r\n};\r\nexport default withMotionMax(MessageBanner);\r\n","import brand from '@helpers/brand';\r\nimport { Layers } from '@helpers/layers';\r\nimport { Device, from } from '@helpers/media';\r\nimport styled, { createGlobalStyle } from 'styled-components';\r\nimport ButtonStyles from '../Button/Button.styles';\r\nconst GlobalStyles = createGlobalStyle `\r\n :root {\r\n --mobileCtaHeight: 61px;\r\n }\r\n`;\r\nconst Container = styled.div `\r\n width: 100%;\r\n display: block;\r\n background: ${brand.beige};\r\n padding: 8px;\r\n z-index: ${Layers.Header};\r\n\r\n ${ButtonStyles.Container} {\r\n justify-content: center;\r\n text-align: center;\r\n width: 100%;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: none;\r\n }\r\n`;\r\nconst MobileFloatingCtaStyles = {\r\n Container,\r\n GlobalStyles,\r\n};\r\nexport default MobileFloatingCtaStyles;\r\n","import * as React from 'react';\r\nimport LinkButton from '../LinkButton/LinkButton';\r\nimport S from './MobileFloatingCta.styles';\r\nconst MobileFloatingCta = (props) => {\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(S.GlobalStyles, null),\r\n React.createElement(S.Container, null,\r\n React.createElement(LinkButton, { buttonType: \"default\", href: props.url, target: props.target }, props.text))));\r\n};\r\nexport default MobileFloatingCta;\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 { siteWide } from '@helpers/grid';\r\nimport { Layers } from '@helpers/layers';\r\nimport { Device, until } from '@helpers/media';\r\nimport { mix } from 'polished';\r\nimport styled from 'styled-components';\r\nimport Button from '../Button/Button';\r\nimport ButtonStyles from '../Button/Button.styles';\r\nimport ModalBackdrop from '../ModalBackdrop/ModalBackdrop';\r\nconst Container = styled.section `\r\n ${transition('transform')};\r\n\r\n position: absolute;\r\n top: var(--headerHeight);\r\n left: 0;\r\n display: block;\r\n background: ${brand.white};\r\n padding: ${fluid(28, 64)} 0;\r\n width: 100%;\r\n z-index: 1;\r\n\r\n [data-scroll-active='true'] & {\r\n transform: translateY(\r\n calc((var(--headerTopHeightReduced) + var(--headerMessageHeight, 0px)) - var(--headerHeight))\r\n );\r\n }\r\n`;\r\nconst Form = styled.form `\r\n ${siteWide};\r\n`;\r\nconst InputWrapper = styled.div `\r\n position: relative;\r\n margin: 0 auto;\r\n max-width: 1128px;\r\n width: 100%;\r\n`;\r\nconst Input = styled.input `\r\n /* Ensure iOS doesn't apply default border radius */\r\n -webkit-appearance: none !important;\r\n display: block;\r\n appearance: none;\r\n border: 0;\r\n border-bottom: 1px solid ${brand.green};\r\n color: ${brand.greyDark};\r\n ${fonts.brandonGrotesque.regular}\r\n font-size: ${fluid(20, 22)};\r\n height: 57px;\r\n line-height: 1em;\r\n padding: 0 122px 0 0;\r\n width: 100%;\r\n\r\n &::placeholder {\r\n color: ${mix(0.5, brand.greyDark, brand.white)};\r\n }\r\n\r\n @media ${until(Device.TabletSmall)} {\r\n padding: 0 54px 0 0;\r\n }\r\n`;\r\nconst Submit = styled(Button) `\r\n position: absolute;\r\n top: 50%;\r\n right: 0;\r\n height: 46px !important;\r\n transform: translateY(-50%);\r\n width: 86px !important;\r\n\r\n ${ButtonStyles.IconWrapper} {\r\n height: 25px !important;\r\n width: 25px !important;\r\n }\r\n\r\n @media ${until(Device.TabletSmall)} {\r\n width: 46px !important;\r\n }\r\n`;\r\nconst Backdrop = styled(ModalBackdrop) `\r\n z-index: ${Layers.HeaderBackdrop};\r\n`;\r\nconst SearchDropdownStyles = {\r\n Backdrop,\r\n Container,\r\n Form,\r\n Input,\r\n InputWrapper,\r\n Submit,\r\n};\r\nexport default SearchDropdownStyles;\r\n","import { ReactComponent as SvgSearch } from '@img/icons/search-submit.svg';\r\nimport * as React from 'react';\r\nimport S from './SearchDropdown.styles';\r\nconst SearchDropdown = (props) => {\r\n const [value, setValue] = React.useState('');\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(S.Backdrop, { onClick: props.onClose }),\r\n React.createElement(S.Container, null,\r\n React.createElement(S.Form, { action: props.searchResultsUrl, method: \"get\", onKeyDown: (event) => {\r\n if (event.key === 'Escape') {\r\n props.onClose();\r\n }\r\n } },\r\n React.createElement(S.InputWrapper, null,\r\n React.createElement(S.Input, { id: \"header-search\", autoFocus: true, name: \"searchterm\", placeholder: props.placeholder, type: \"search\", value: value, onChange: (event) => {\r\n setValue(event.target.value);\r\n } }),\r\n React.createElement(S.Submit, { buttonType: \"default\", icon: React.createElement(SvgSearch, null), iconOnly: true, type: \"submit\" }, \"Submit\"))))));\r\n};\r\nexport default SearchDropdown;\r\n","import { imageUrl } from '@helpers/image';\r\nimport { useScrollPeek } from '@hooks/useScrollPeek';\r\nimport { ReactComponent as SvgClose } from '@img/icons/close.svg';\r\nimport { ReactComponent as SvgPin } from '@img/icons/pin.svg';\r\nimport { ReactComponent as SvgSearch } from '@img/icons/search.svg';\r\nimport { ReactComponent as SvgUser } from '@img/icons/user.svg';\r\nimport MessageBanner from '@stories/Components/MessageBanner/MessageBanner';\r\nimport MobileFloatingCta from '@stories/Components/MobileFloatingCta/MobileFloatingCta';\r\nimport NavigationDesktop from '@stories/Components/NavigationDesktop/NavigationDesktop';\r\nimport NavigationMobile from '@stories/Components/NavigationMobile/NavigationMobile';\r\nimport SearchDropdown from '@stories/Components/SearchDropdown/SearchDropdown';\r\nimport { Divide as Hamburger } from 'hamburger-react';\r\nimport * as React from 'react';\r\nimport S from './Header.styles';\r\nconst Header = (props) => {\r\n const [isSearchActive, setIsSearchActive] = React.useState(false);\r\n const [isMobileNavActive, setIsMobileNavActive] = React.useState(false);\r\n const isPeeking = useScrollPeek({ threshold: 100 });\r\n const [isScrollActive, setIsScrollActive] = React.useState(false);\r\n React.useEffect(() => {\r\n const handleScroll = () => {\r\n if (window.scrollY >= 100) {\r\n setIsScrollActive(true);\r\n }\r\n else {\r\n setIsScrollActive(false);\r\n }\r\n };\r\n window.addEventListener('scroll', handleScroll);\r\n return () => {\r\n window.removeEventListener('scroll', handleScroll);\r\n };\r\n }, []);\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(S.GlobalStyles, null),\r\n React.createElement(S.Container, { \"data-reduce\": !isPeeking, \"data-scroll-active\": isScrollActive },\r\n props.messageBanner && React.createElement(MessageBanner, { ...props.messageBanner }),\r\n React.createElement(S.TopContainer, null,\r\n React.createElement(S.TopInner, null,\r\n React.createElement(S.QuickLinkList, null,\r\n React.createElement(S.QuickLinkItem, null,\r\n React.createElement(S.QuickLinkAnchor, { \"data-search-active\": isSearchActive, as: \"button\", onClick: (event) => {\r\n event.preventDefault();\r\n toggleSearch();\r\n } },\r\n React.createElement(S.QuickLinkIcon, { as: isSearchActive ? SvgClose : SvgSearch }),\r\n \"Search\")),\r\n props.pinboardUrl && (React.createElement(S.QuickLinkItem, null,\r\n React.createElement(S.QuickLinkAnchor, { href: props.pinboardUrl },\r\n React.createElement(S.QuickLinkIcon, { as: SvgPin }),\r\n \"My Pinboard\")))),\r\n React.createElement(S.MobileSearch, { \"aria-label\": \"Toggle Search\", onClick: (event) => {\r\n event.preventDefault();\r\n toggleSearch();\r\n } },\r\n React.createElement(S.MobileSearchIcon, { as: isSearchActive ? SvgClose : SvgSearch })),\r\n React.createElement(\"a\", { href: \"/\", \"aria-label\": \"Homepage\" },\r\n React.createElement(S.Logo, { alt: props.logo.altText, loading: \"eager\", src: imageUrl(props.logo, { width: 308 }) })),\r\n React.createElement(S.MobileNav, { \"aria-label\": \"Toggle Navigation\", onClick: (event) => {\r\n event.preventDefault();\r\n toggleMobileNav();\r\n } },\r\n React.createElement(Hamburger, { color: \"currentColor\", size: 25, toggled: isMobileNavActive })),\r\n React.createElement(S.QuickLinkList, null,\r\n props.contactLink && (React.createElement(S.QuickLinkItem, null,\r\n React.createElement(S.QuickLinkAnchor, { href: props.contactLink.url, target: props.contactLink.target, title: props.contactLink.text },\r\n React.createElement(\"span\", null, props.contactLink.text)))),\r\n props.authUrl && (React.createElement(S.QuickLinkItem, null,\r\n React.createElement(S.QuickLinkAnchor, { href: props.authUrl },\r\n React.createElement(S.QuickLinkIcon, { as: SvgUser }),\r\n props.isAuthenticated ? 'My Account' : 'Log In')))))),\r\n React.createElement(S.NavigationContainer, null,\r\n React.createElement(NavigationDesktop, { items: props.navigation })),\r\n props.ctas && (React.createElement(S.CtaContainer, { style: { '--count': props.ctas.length } }, props.ctas.map((cta) => (React.createElement(S.Cta, { key: cta.id, href: cta.url, target: cta.target }, cta.text))))),\r\n isSearchActive && (React.createElement(SearchDropdown, { placeholder: props.searchPlaceholder, searchResultsUrl: props.searchResultsUrl, onClose: () => {\r\n toggleSearch();\r\n } }))),\r\n React.createElement(NavigationMobile, { authUrl: props.authUrl, isAccountArea: false, isActive: isMobileNavActive, isAuthenticated: props.isAuthenticated, items: props.navigation, pinboardUrl: props.pinboardUrl, scrollActive: isScrollActive, contactLink: props.contactLink, locationLink: props.locationLink }),\r\n props.floatingCta && props.floatingCta.length > 0 && (React.createElement(S.FloatingCtaContainer, null, props.floatingCta.map((cta) => (React.createElement(MobileFloatingCta, { key: cta.url, ...cta })))))));\r\n function toggleSearch() {\r\n setIsMobileNavActive(false);\r\n setIsSearchActive(!isSearchActive);\r\n }\r\n function toggleMobileNav() {\r\n setIsMobileNavActive(!isMobileNavActive);\r\n setIsSearchActive(false);\r\n }\r\n};\r\nexport default Header;\r\n","/**\r\n * Email validation as per RFC2822 standards\r\n *\r\n * [a-z0-9!#$%&'*+/=?^_`{|}~-]+ = One or more characters in the set\r\n * (\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)* = Zero or more characters in the set (also ensures that the last digit isn't a dot)\r\n * @ = Check for @ symbol\r\n * ([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+ = Start with a letter or number, followed by any letter, number or a dash, finishing with a dot\r\n * [a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$ = First character is necessarily a letter or number, followed 0 or more letters, numbers or dashes, finishing with a letter or number\r\n */\r\nexport const EMAIL_RULE_REGEX = /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$/;\r\n/**\r\n * Make sure this explains EMAIL_RULE_REGEX\r\n */\r\nexport const EMAIL_RULE_MESSAGE = `Please enter a valid email address`.trim();\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const EMAIL_RULE = {\r\n message: EMAIL_RULE_MESSAGE,\r\n value: EMAIL_RULE_REGEX,\r\n};\r\n/**\r\n * (?=.*[a-z]) = Check for lowercase letter\r\n * (?=.*\\d) = Check for digit\r\n * (?=.*[^\\da-zA-Z]) = Check for non-digit and non-letter (^ negates the [] section)\r\n * .{8,} = Make sure it is at least 8 characters, no maximum\r\n */\r\nexport const PASSWORD_RULE_REGEX = /^(?=.*[a-z])(?=.*\\d)(?=.*[^\\da-zA-Z]).{8,}$/;\r\n/**\r\n * Make sure this explains PASSWORD_RULE_REGEX\r\n */\r\nexport const PASSWORD_RULE_MESSAGE = `\r\n Password must be at least 8 characters and \r\n include at least one number, \r\n at least one lowercase letter, \r\n at least one non letter or digit\r\n`.trim();\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const PASSWORD_RULE = {\r\n message: PASSWORD_RULE_MESSAGE,\r\n value: PASSWORD_RULE_REGEX,\r\n};\r\n/**\r\n * One letter followed by either one or two numbers\r\n * OR\r\n * One letter followed by a second letter that must be one of ABCDEFGHJKLMNOPQRSTUVWXY (i.e..not I or Z) and then followed by either one or two numbers\r\n * OR\r\n * One letter followed by one number and then another letter\r\n * OR\r\n * A two part post code where the first part must be:\r\n * a) One letter followed by a second letter that must be one of ABCDEFGHJKLMNOPQRSTUVWXY(i.e..not I or Z) and then followed by one number and\r\n * optionally a further letter after that\r\n * AND\r\n * b) The second part (separated by a space from the first part) must be One number followed by two letters.\r\n */\r\nexport const POSTCODE_RULE_REGEX = /^(([A-Za-z][0-9]{1,2})|(([A-Za-z][A-HJ-Ya-hj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-HJ-Ya-hj-y][0-9]?[A-Za-z])))) [0-9][A-Za-z]{2}$/;\r\n/**\r\n * Make sure this explains POSTCODE_RULE_REGEX\r\n */\r\nexport const POSTCODE_RULE_MESSAGE = `Please enter a valid postcode`.trim();\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const POSTCODE_RULE = {\r\n message: POSTCODE_RULE_MESSAGE,\r\n value: POSTCODE_RULE_REGEX,\r\n};\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const TELEPHONE_RULE = {\r\n message: `Please enter a valid phone number`,\r\n value: /^[\\d+()\\-x ]{10,11}$/,\r\n};\r\n/** Clamp index to be within the min/max index range. */\r\nexport function clamp(value, max) {\r\n return Math.max(Math.min(value, max), 0);\r\n}\r\n","import { useRef } from 'react';\nexport function useFirstMountState() {\n var isFirst = useRef(true);\n if (isFirst.current) {\n isFirst.current = false;\n return true;\n }\n return isFirst.current;\n}\n","import * as React from 'react';\nimport { useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.js';\nimport { useConstant } from '../../utils/use-constant.js';\n\nvar presenceId = 0;\nfunction getPresenceId() {\n var id = presenceId;\n presenceId++;\n return id;\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 = useConstant(getPresenceId);\n var context = useMemo(function () { return ({\n id: id,\n initial: initial,\n isPresent: isPresent,\n custom: custom,\n onExitComplete: function (childId) {\n presenceChildren.set(childId, true);\n var allComplete = true;\n presenceChildren.forEach(function (isComplete) {\n if (!isComplete)\n allComplete = false;\n });\n allComplete && (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 { __spreadArray, __read } from 'tslib';\nimport * as React from 'react';\nimport { useContext, useRef, cloneElement, Children, isValidElement } from 'react';\nimport { useForceUpdate } from '../../utils/use-force-update.js';\nimport { PresenceChild } from './PresenceChild.js';\nimport { SharedLayoutContext, isSharedLayout } from '../../context/SharedLayoutContext.js';\n\nfunction getChildKey(child) {\n return child.key || \"\";\n}\nfunction updateChildLookup(children, allChildren) {\n var seenChildren = process.env.NODE_ENV !== \"production\" ? new Set() : null;\n children.forEach(function (child) {\n var key = getChildKey(child);\n if (process.env.NODE_ENV !== \"production\" && seenChildren) {\n if (seenChildren.has(key)) {\n console.warn(\"Children of AnimatePresence require unique keys. \\\"\" + key + \"\\\" is a duplicate.\");\n }\n seenChildren.add(key);\n }\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 * @library\n *\n * Any `Frame` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { Frame, AnimatePresence } from 'framer'\n *\n * // As items are added and removed from `items`\n * export function Items({ items }) {\n * return (\n * \n * {items.map(item => (\n * \n * ))}\n * \n * )\n * }\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * @motion\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 forceRender = useForceUpdate();\n var layoutContext = useContext(SharedLayoutContext);\n if (isSharedLayout(layoutContext)) {\n forceRender = layoutContext.forceUpdate;\n }\n var isInitialRender = useRef(true);\n // Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key\n var filteredChildren = onlyElements(children);\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(filteredChildren);\n // A lookup table to quickly reference components by key\n var allChildren = useRef(new Map())\n .current;\n // A living record of all currently exiting components.\n var exiting = useRef(new Set()).current;\n updateChildLookup(filteredChildren, allChildren);\n // If this is the initial component render, just deal with logic surrounding whether\n // we play onMount animations or not.\n if (isInitialRender.current) {\n isInitialRender.current = false;\n return (React.createElement(React.Fragment, null, filteredChildren.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 var childrenToRender = __spreadArray([], __read(filteredChildren));\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 else {\n // In case this key has re-entered, remove from the exiting list\n exiting.delete(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 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 presentChildren.current = childrenToRender;\n if (process.env.NODE_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 { useCallback, useRef, useState } from 'react';\nimport { useUnmountEffect } from './use-unmount-effect.js';\n\nfunction useForceUpdate() {\n var unloadingRef = useRef(false);\n var _a = __read(useState(0), 2), forcedRenderCount = _a[0], setForcedRenderCount = _a[1];\n useUnmountEffect(function () { return (unloadingRef.current = true); });\n return useCallback(function () {\n !unloadingRef.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n}\n\nexport { useForceUpdate };\n","var _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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 SvgClose(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 14 14.001\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"currentColor\",\n d: \"M6.97 5.315c.231-.216.431-.4.621-.585q2.007-2 4.012-4.009a4.371 4.371 0 01.542-.5 1.149 1.149 0 011.5.125 1.117 1.117 0 01.119 1.5 4.5 4.5 0 01-.5.542q-2 2.007-4.009 4.012c-.19.191-.371.392-.591.624.214.228.393.429.584.619l3.949 3.955a4.385 4.385 0 01.5.543 1.166 1.166 0 01-.086 1.442 1.119 1.119 0 01-1.49.186 3.843 3.843 0 01-.546-.494q-1.977-1.977-3.949-3.957c-.192-.194-.346-.424-.548-.675-.277.248-.464.4-.633.569q-2.038 2.03-4.071 4.067a4.95 4.95 0 01-.478.451 1.144 1.144 0 01-1.565-.08 1.189 1.189 0 01-.066-1.575 5.142 5.142 0 01.457-.473c1.317-1.318 2.631-2.638 3.955-3.949a7.783 7.783 0 01.676-.535c-.258-.288-.408-.472-.575-.641Q2.748 4.439.712 2.406a3.724 3.724 0 01-.492-.548A1.151 1.151 0 011.787.247a3.405 3.405 0 01.552.488q2.009 2 4.012 4.008c.19.189.393.364.619.572z\",\n fillRule: \"evenodd\"\n })));\n}\n\nexport default __webpack_public_path__ + \"a737beca367534378f0194a23b96db71.svg\";\nexport { SvgClose as ReactComponent };"],"sourceRoot":""}