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K,MACtBvK,EAAM8J,gBAAkBnH,EAAAA,cAAoBkG,EAAY,MACxDlG,EAAAA,cAAoBG,EAAAA,GAAAA,MAAS,KACzB9C,EAAMqC,SACNrC,EAAM+J,WAAapH,EAAAA,cAAoB8I,EAAO,CAAEhJ,KAAMzC,EAAMyC,WAC5E,OAAOiJ,EAAAA,aAAsBX,EAAeH,EAAgB,C","sources":["webpack://ess-mep/./src/img/icons/close-mep.svg","webpack://ess-mep/./src/img/icons/close.svg","webpack://ess-mep/./src/helpers/date.ts","webpack://ess-mep/./src/helpers/ssr.ts","webpack://ess-mep/./src/stories/Components/Global/Buttons/Button/Button.tsx","webpack://ess-mep/./src/stories/Components/Global/DatePicker/DatePicker.styles.ts","webpack://ess-mep/./src/stories/Components/Global/DatePicker/DatePicker.tsx","webpack://ess-mep/./src/stories/Components/Global/Forms/Form.styles.ts","webpack://ess-mep/./src/stories/Components/Global/Forms/FormField.tsx","webpack://ess-mep/./src/stories/Components/Global/Forms/FormRow.tsx","webpack://ess-mep/./src/stories/Components/Global/Modal/Background/Background.styles.ts","webpack://ess-mep/./src/stories/Components/Global/Modal/Close/Close.styles.ts","webpack://ess-mep/./src/stories/Components/Global/Modal/Modal.styles.ts","webpack://ess-mep/./src/stories/Components/Global/Modal/Context/Context.tsx","webpack://ess-mep/./src/stories/Components/Global/Modal/Background/Background.tsx","webpack://ess-mep/./src/stories/Components/Global/Modal/Close/Close.tsx","webpack://ess-mep/./src/stories/Components/Global/Modal/Modal.tsx"],"sourcesContent":["var _g;\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); }\nimport * as React from \"react\";\nfunction SvgCloseMep(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 23.335 23.335\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeWidth: 1.5\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.274 1.061L1.061 22.274M22.275 22.274L1.062 1.061\"\n }))));\n}\nexport default SvgCloseMep;","var _g;\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); }\nimport * as React from \"react\";\nfunction SvgClose(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 23.335 23.335\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeWidth: 1.5\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.274 11.561L1.061 1.061M22.274 1.061L1.061 22.274M22.274 22.274l-8-7.713\"\n }))));\n}\nexport default SvgClose;","import { addBusinessDays } from 'date-fns';\r\nimport format from 'date-fns/format';\r\nimport isAfter from 'date-fns/isAfter';\r\nimport isBefore from 'date-fns/isBefore';\r\nexport function formatDateISO(value) {\r\n const date = ensureDate(value);\r\n return date.toISOString();\r\n}\r\nexport function formatDate(value, formatString = 'MMMM do yyyy') {\r\n const date = ensureDate(value);\r\n return format(date, formatString);\r\n}\r\nexport function ensureDate(value) {\r\n let date = value;\r\n if (typeof date === 'string') {\r\n date = new Date(date);\r\n }\r\n return date;\r\n}\r\nexport function ensureBusinessDay(value, excludedDates) {\r\n let date = ensureDate(value);\r\n const day = date.getDay();\r\n // Is weekend, move to next business day\r\n if (day === 0 || day === 6) {\r\n date = addBusinessDays(date, 1);\r\n }\r\n if (excludedDates) {\r\n if (!permittedDate(date, excludedDates)) {\r\n do {\r\n date = addBusinessDays(date, 1);\r\n } while (!permittedDate(date, excludedDates));\r\n }\r\n }\r\n return date;\r\n}\r\nexport function permittedDate(value, excludedDates) {\r\n for (const excludedDate of excludedDates) {\r\n const startDate = excludedDate.isRecurring\r\n ? new Date(excludedDate.startDate).setFullYear(value.getFullYear())\r\n : new Date(excludedDate.startDate);\r\n const endDate = excludedDate.isRecurring\r\n ? new Date(excludedDate.endDate).setFullYear(value.getFullYear())\r\n : new Date(excludedDate.endDate);\r\n if (!isBefore(value, startDate) && !isAfter(value, endDate)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n","export const isSSR = () => {\r\n const returnValue = !(typeof window != 'undefined' && window.document);\r\n return returnValue;\r\n};\r\n","import ChevronRightMEP from '@img/icons/chevron-right-mep.svg';\r\nimport ChevronRight from '@img/icons/chevron-right.svg';\r\nimport { FocusRing } from '@react-aria/focus';\r\nimport * as React from 'react';\r\nimport S from './Button.styles';\r\nconst Button = ({ buttonType, children, icon, iconOnly, iconPosition = 'right', site, ...otherProps }) => {\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Container, { \"data-icon-only\": iconOnly, \"data-icon-position\": iconPosition, \"data-type\": buttonType, ...otherProps },\r\n React.createElement(S.Text, null, children),\r\n buttonType === 'link' || buttonType === 'link-alt' || buttonType === 'link-black' ? (React.createElement(React.Fragment, null, otherProps.disabled === true && icon ? (React.createElement(S.IconWrapper, null, icon)) : (React.createElement(S.IconWrapper, null, site === 'ess' ? React.createElement(ChevronRight, null) : React.createElement(ChevronRightMEP, null))))) : (React.createElement(React.Fragment, null, icon ? React.createElement(S.IconWrapper, null, icon) : null)))));\r\n};\r\nexport default Button;\r\n","import DatePickerPluginCss from '!raw-loader!react-datepicker/dist/react-datepicker.css';\r\nimport { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport svgArrow from '@img/icons/background/arrow-red.svg?url';\r\nimport ButtonStyles from '@stories/Components/Global/Buttons/Button/Button.styles';\r\nimport { rgba } from 'polished';\r\nimport styled from 'styled-components';\r\nconst Wrapper = styled.div `\r\n ${DatePickerPluginCss};\r\n\r\n ${ButtonStyles.Container} {\r\n align-self: center;\r\n }\r\n\r\n .react-datepicker {\r\n ${fonts.daxWide.regular};\r\n\r\n border-radius: 0;\r\n border-color: ${brand.ess.secondary.lightestGrey};\r\n }\r\n\r\n .react-datepicker__tab-loop {\r\n display: contents;\r\n }\r\n\r\n .react-datepicker__header {\r\n background-color: ${brand.global.white};\r\n border: 0;\r\n border-radius: 0;\r\n padding-top: 12px;\r\n }\r\n\r\n .react-datepicker__navigation {\r\n top: 4px;\r\n\r\n &::before {\r\n display: block;\r\n content: '';\r\n background-image: url(${svgArrow});\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n background-position: center;\r\n width: 20px;\r\n height: 15px;\r\n }\r\n }\r\n\r\n .react-datepicker__navigation--next {\r\n right: 6px;\r\n }\r\n\r\n .react-datepicker__navigation--previous {\r\n left: 6px;\r\n\r\n &::before {\r\n transform: rotate(180deg);\r\n }\r\n }\r\n\r\n .react-datepicker__navigation-icon::before {\r\n display: none;\r\n }\r\n\r\n .react-datepicker__tab-loop__start,\r\n .react-datepicker__tab-loop__end {\r\n display: none;\r\n }\r\n\r\n .react-datepicker__day--in-range,\r\n .react-datepicker__day--in-range:hover,\r\n .react-datepicker__day--in-selecting-range,\r\n .react-datepicker__day--selected {\r\n background-color: ${brand.global.red} !important;\r\n color: ${brand.global.white} !important;\r\n }\r\n\r\n .react-datepicker__current-month {\r\n font-size: ${fluid(16, 18)};\r\n margin-bottom: ${fluid(10, 12)};\r\n text-transform: uppercase;\r\n }\r\n\r\n .react-datepicker__current-month,\r\n .react-datepicker__day {\r\n [data-site='ess'] & {\r\n color: ${brand.ess.primary};\r\n }\r\n\r\n [data-site='mep'] & {\r\n color: ${brand.mep.primary};\r\n }\r\n\r\n &.react-datepicker__day--disabled {\r\n color: ${brand.ess.secondary.midGrey};\r\n }\r\n }\r\n\r\n .react-datepicker__day-name {\r\n [data-site='ess'] & {\r\n color: ${brand.ess.secondary.darkGrey};\r\n }\r\n\r\n [data-site='mep'] & {\r\n color: ${brand.mep.secondary.darkestGrey};\r\n }\r\n }\r\n\r\n .react-datepicker__day-name,\r\n .react-datepicker__day {\r\n font-size: 14px;\r\n width: 38px;\r\n font-weight: 700;\r\n }\r\n\r\n .react-datepicker__day {\r\n ${transition('background-color, color')};\r\n\r\n line-height: 38px;\r\n margin: 0;\r\n border-radius: 0 !important;\r\n\r\n &:hover {\r\n background-color: ${rgba(brand.global.red, 0.5)};\r\n }\r\n }\r\n`;\r\nconst LabelText = styled.div `\r\n font-size: ${fluid(16, 20)};\r\n line-height: ${fluid(26, 30)};\r\n color: var(--labelColour);\r\n text-decoration: uppercase;\r\n padding: 0 0 ${fluid(10, 12)};\r\n margin: 0 0 ${fluid(24, 42)};\r\n border-bottom: 1px solid var(--borderColour);\r\n\r\n [data-site='ess'] & {\r\n --borderColour: ${brand.ess.secondary.darkGrey};\r\n --labelColour: ${brand.ess.secondary.darkestGrey};\r\n\r\n ${fonts.daxWide.medium};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --borderColour: ${brand.mep.secondary.darkestGrey};\r\n --labelColour: ${brand.mep.primary};\r\n\r\n ${fonts.museoSlab.medium};\r\n }\r\n`;\r\nconst PickerWrapper = styled.div `\r\n display: grid;\r\n place-content: center;\r\n`;\r\nexport default {\r\n Wrapper,\r\n LabelText,\r\n PickerWrapper,\r\n};\r\n","/* eslint-disable @typescript-eslint/no-unused-vars */\r\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\r\nimport DatePicker from 'react-datepicker';\r\nimport { ensureBusinessDay, permittedDate } from '@helpers/date';\r\nimport addBusinessDays from 'date-fns/addBusinessDays';\r\nimport addYears from 'date-fns/addYears';\r\nimport isBefore from 'date-fns/isBefore';\r\nimport isEqual from 'date-fns/isEqual';\r\nimport S from './DatePicker.styles';\r\nconst Datepicker = (props) => {\r\n const [start, setStart] = useState(ensureBusinessDay(props.startDate, props.excludedDates));\r\n const [end, setEnd] = useState(props.endDate ? ensureBusinessDay(props.endDate, props.excludedDates) : null);\r\n const containerRef = useRef(null);\r\n const minDate = useMemo(() => {\r\n if (props.leadTimeDays === undefined) {\r\n return addYears(new Date(), -5);\r\n }\r\n if (props.leadTimeDays === 0) {\r\n return new Date();\r\n }\r\n const minDate = addBusinessDays(new Date(), props.leadTimeDays);\r\n return ensureBusinessDay(minDate, props.excludedDates);\r\n }, [props.leadTimeDays]);\r\n const handleChange = (dates) => {\r\n let start = null, end = null;\r\n if (Array.isArray(dates)) {\r\n [start, end] = dates;\r\n }\r\n else {\r\n start = dates;\r\n }\r\n if (props.selectsEnd) {\r\n if (end !== null) {\r\n setStart(start);\r\n setEnd(end);\r\n }\r\n else {\r\n setEnd(start);\r\n }\r\n return;\r\n }\r\n setStart(start);\r\n setEnd(end);\r\n };\r\n useEffect(() => {\r\n if (start !== null && !isEqual(props.startDate, start)) {\r\n props.onStartDateChanged(start);\r\n }\r\n if (props.endDate !== undefined &&\r\n props.onEndDateChanged !== undefined &&\r\n end !== null &&\r\n !isEqual(props.endDate, end)) {\r\n props.onEndDateChanged(end);\r\n /**\r\n * When new start date is selected, default end date to equal it\r\n */\r\n }\r\n else if (end === null && start !== null && props.onEndDateChanged !== undefined) {\r\n props.onEndDateChanged(start);\r\n }\r\n }, [start, end]);\r\n const filterDate = (date) => {\r\n const day = date.getDay();\r\n const isWeekend = day === 0 || day === 6;\r\n if (isWeekend) {\r\n return false;\r\n }\r\n if (props.selectsEnd === true && props.startDate !== null) {\r\n return !isBefore(date, props.startDate);\r\n }\r\n if (props.excludedDates) {\r\n return permittedDate(date, props.excludedDates);\r\n }\r\n return true;\r\n };\r\n return (React.createElement(S.Wrapper, { ref: containerRef },\r\n React.createElement(S.LabelText, null, props.label),\r\n React.createElement(S.PickerWrapper, null,\r\n React.createElement(DatePicker, { dateFormat: 'MMM d, yyyy', selectsRange: props.endDate !== undefined && props.onEndDateChanged !== undefined, startDate: start, endDate: end, minDate: minDate, selectsEnd: props.selectsEnd, onChange: handleChange, filterDate: filterDate, inline: true, maxDate: addYears(new Date(), 5), selected: start }))));\r\n};\r\nexport default Datepicker;\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 { between, Device, from } from '@helpers/media';\r\nimport srOnly from '@helpers/srOnly';\r\nimport { contentStyles, paragraphRegular } from '@helpers/typography';\r\nimport ButtonStyles from '@stories/Components/Global/Buttons/Button/Button.styles';\r\nimport { rgba } from 'polished';\r\nimport styled, { css } from 'styled-components';\r\nconst Form = styled.form `\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n gap: ${fluid(32, 40)} 0;\r\n\r\n --borderColour: ${brand.ess.secondary.midGrey};\r\n`;\r\nconst Section = styled.fieldset `\r\n display: flex;\r\n flex-direction: column;\r\n gap: ${fluid(20, 24)};\r\n\r\n &[data-visible='false'] {\r\n display: none;\r\n }\r\n`;\r\nconst Title = styled.legend `\r\n display: block;\r\n font-size: ${fluid(18, 20)};\r\n margin: 0 0 30px;\r\n border-bottom: 1px solid var(--borderColour);\r\n width: 100%;\r\n\r\n @media ${from(Device.Tablet)} {\r\n margin-bottom: ${fluid(20, 24)};\r\n }\r\n\r\n [data-site='ess'] & {\r\n ${fonts.daxWide.medium};\r\n\r\n color: var(--borderColour);\r\n\r\n > span {\r\n padding: 0 0 12px;\r\n }\r\n }\r\n\r\n [data-site='mep'] & {\r\n ${fonts.museoSlab.medium};\r\n\r\n color: ${brand.global.white};\r\n\r\n > span {\r\n padding: 12px 42px 12px 20px;\r\n background-color: var(--borderColour);\r\n clip-path: polygon(\r\n 100% 100%,\r\n 100% 92%,\r\n calc(100% - 1px) 79%,\r\n calc(100% - 2px) 71%,\r\n calc(100% - 4px) 64%,\r\n calc(100% - 14px) 42%,\r\n calc(100% - 32px) 0%,\r\n 0% 0%,\r\n 0% 100%\r\n );\r\n }\r\n }\r\n`;\r\nconst Content = styled.p `\r\n ${paragraphRegular}\r\n`;\r\nconst Row = styled.div `\r\n --count: 1;\r\n\r\n display: grid;\r\n grid-template-columns: repeat(var(--count), 1fr);\r\n gap: ${fluid(20, 24)};\r\n\r\n @media ${from(Device.Tablet)} {\r\n --count: 2;\r\n\r\n &[data-layout='full'] {\r\n --count: 1;\r\n }\r\n }\r\n`;\r\nconst Field = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n\r\n @media ${from(Device.Tablet)} {\r\n &[data-size='wide'] {\r\n grid-column: span 2;\r\n }\r\n\r\n &[data-size='full'] {\r\n grid-column: span 2;\r\n }\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n &[data-size='full'] {\r\n grid-column: span 4;\r\n }\r\n }\r\n`;\r\nexport const CommonLabelStyles = css `\r\n ${fonts.daxWide.bold};\r\n\r\n font-size: ${fluid(14, 18)};\r\n line-height: ${fluid(18, 22)};\r\n text-transform: uppercase;\r\n display: block;\r\n margin: 0 0 10px;\r\n color: var(--textColor);\r\n\r\n &.required,\r\n &[data-required='true'] {\r\n &::after {\r\n content: ' *';\r\n display: inline;\r\n color: ${brand.global.red};\r\n }\r\n }\r\n\r\n &[data-hide='true'] {\r\n ${srOnly}\r\n }\r\n\r\n [data-site='ess'] & {\r\n --textColor: ${brand.ess.primary};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --textColor: ${brand.mep.primary};\r\n }\r\n`;\r\nconst Label = styled.label `\r\n ${CommonLabelStyles};\r\n`;\r\nconst Description = styled.div `\r\n ${paragraphRegular};\r\n`;\r\nexport const CommonErrorStyles = css `\r\n ${paragraphRegular};\r\n\r\n display: block;\r\n color: ${brand.global.red};\r\n margin: 8px 0 0;\r\n\r\n > span {\r\n display: inline-flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: ${fluid(16, 20)};\r\n height: ${fluid(16, 20)};\r\n border-radius: 50%;\r\n background-color: ${brand.global.red};\r\n color: ${brand.global.white};\r\n }\r\n`;\r\nconst Error = styled.span `\r\n ${CommonErrorStyles};\r\n`;\r\nconst Divider = styled.hr `\r\n display: block;\r\n border: 0;\r\n border-bottom: 1px solid var(--borderColour);\r\n margin: 0;\r\n padding: 0;\r\n`;\r\nconst SubmitWrapper = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n gap: 30px;\r\n\r\n ${ButtonStyles.Container} {\r\n width: auto;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n flex-direction: row;\r\n align-items: center;\r\n gap: ${fluid(20, 24)};\r\n\r\n ${ButtonStyles.Container} {\r\n margin-left: auto;\r\n }\r\n }\r\n\r\n [data-site='ess'] & {\r\n @media ${between(Device.Tablet, Device.TabletLarge)} {\r\n ${ButtonStyles.Container} {\r\n margin-right: 30px;\r\n }\r\n }\r\n }\r\n`;\r\nconst Loader = styled.div `\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: flex;\r\n background: ${rgba(brand.global.red, 0.2)};\r\n color: ${brand.global.white};\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`;\r\nconst LoaderText = styled.span `\r\n ${paragraphRegular};\r\n ${fonts.daxWide.bold};\r\n\r\n display: block;\r\n margin: 1rem 0 0;\r\n`;\r\nconst ErrorList = styled.ul `\r\n display: flex;\r\n color: ${brand.global.red};\r\n flex-direction: column;\r\n margin: 0;\r\n`;\r\nconst ErrorListItem = styled.li `\r\n ${CommonErrorStyles};\r\n\r\n margin: 0;\r\n\r\n &:not(:last-child) {\r\n margin-bottom: 1em;\r\n }\r\n`;\r\nconst ConfirmationMessage = styled.div `\r\n ${contentStyles};\r\n\r\n p:last-child {\r\n margin-bottom: 0;\r\n }\r\n`;\r\nconst Info = styled.button `\r\n ${ButtonReset};\r\n ${fonts.daxWide.regular};\r\n\r\n position: relative;\r\n border-radius: 5000px;\r\n color: currentColor;\r\n font-size: 14px;\r\n height: 18px;\r\n width: 18px;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n margin: 0 0 0 5px;\r\n cursor: help;\r\n text-transform: none;\r\n background-color: var(--infoBg);\r\n transform: translateY(-1.5px);\r\n z-index: 2;\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 1px;\r\n outline-style: solid;\r\n }\r\n\r\n [data-site='ess'] & {\r\n --infoBg: ${brand.ess.secondary.lightestGrey};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --infoBg: ${brand.mep.secondary.lightGrey};\r\n }\r\n`;\r\nconst Tooltip = styled.span `\r\n --shadowColour: rgba(0, 0, 0, 0.05);\r\n\r\n ${transition('opacity', 0.2)};\r\n\r\n position: absolute;\r\n color: var(--tooltipFg);\r\n background-color: var(--tooltipBg);\r\n top: 95%;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n opacity: 0;\r\n z-index: -1;\r\n width: 125px;\r\n padding: 6px 8px;\r\n box-shadow: -0.1px 1px 1.1px var(--shadowColour), -0.2px 2.7px 3px -0.8px var(--shadowColour), -0.4px 6.3px 7.1px -1.7px var(--shadowColour),\r\n -0.9px 15px 16.9px -2.5px var(--shadowColour);\r\n white-space: normal;\r\n pointer-events: none;\r\n\r\n ${Info}:hover &,\r\n ${Info}:active &,\r\n ${Info}.focus-ring & {\r\n opacity: 1;\r\n z-index: 1;\r\n pointer-events: all;\r\n }\r\n\r\n [data-site='ess'] & {\r\n --tooltipBg: ${brand.ess.secondary.darkestGrey};\r\n --tooltipFg: ${brand.global.white};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --tooltipBg: ${brand.mep.secondary.darkestGrey};\r\n --tooltipFg: ${brand.global.white};\r\n\r\n border-radius: 4px;\r\n }\r\n`;\r\nconst FormStyles = {\r\n ConfirmationMessage,\r\n Content,\r\n Description,\r\n Divider,\r\n Error,\r\n ErrorList,\r\n ErrorListItem,\r\n Field,\r\n Form,\r\n Label,\r\n Loader,\r\n LoaderText,\r\n Row,\r\n Section,\r\n SubmitWrapper,\r\n Title,\r\n Info,\r\n Tooltip,\r\n};\r\nexport default FormStyles;\r\n","import * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './Form.styles';\r\nconst FormField = ({ showLabel = true, ...otherProps }) => {\r\n const errorToShow = Array.isArray(otherProps.error)\r\n ? otherProps.error.find((error) => !!error)\r\n : otherProps.error;\r\n const name = Array.isArray(otherProps.name) ? otherProps.name[0] : otherProps.name;\r\n return (React.createElement(S.Field, { \"data-size\": otherProps.size ?? 'default' },\r\n otherProps.label && (React.createElement(S.Label, { htmlFor: name, \"data-hide\": !showLabel, \"data-required\": otherProps.required },\r\n otherProps.label,\r\n otherProps.tooltip && (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Info, { \"aria-label\": \"More Information\", \"aria-describedby\": `${name}-label`, onClick: (e) => e.preventDefault() },\r\n \"?\",\r\n React.createElement(S.Tooltip, { id: `${name}-label`, role: \"tooltip\" }, otherProps.tooltip)))))),\r\n otherProps.description && (React.createElement(S.Description, { dangerouslySetInnerHTML: { __html: otherProps.description } })),\r\n otherProps.children,\r\n errorToShow && (React.createElement(S.Error, null,\r\n React.createElement(\"span\", null, \"!\"),\r\n \" \",\r\n errorToShow.message))));\r\n};\r\nexport default FormField;\r\n","import * as React from 'react';\r\nimport S from './Form.styles';\r\nconst FormRow = ({ children, ...props }) => {\r\n return React.createElement(S.Row, { ...props }, children);\r\n};\r\nexport default FormRow;\r\n","import styled, { css } from 'styled-components';\r\nexport const modalBackgroundStyles = css `\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: block;\r\n background: var(--tintColor);\r\n height: 100%;\r\n width: 100%;\r\n backdrop-filter: blur(3px);\r\n\r\n &[data-close='true'] {\r\n cursor: zoom-out;\r\n }\r\n`;\r\nconst Background = styled.div `\r\n ${modalBackgroundStyles};\r\n`;\r\nconst BackgroundStyles = {\r\n Background,\r\n};\r\nexport default BackgroundStyles;\r\n","import brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Device, from } from '@helpers/media';\r\nimport styled, { css } from 'styled-components';\r\nexport const modalCloseButtonStyles = css `\r\n ${ButtonReset}\r\n\r\n position: absolute;\r\n top: 8px;\r\n right: 24px;\r\n display: grid;\r\n color: var(--fgColor);\r\n height: 3rem;\r\n place-content: center;\r\n place-items: center;\r\n width: 3rem;\r\n z-index: 1;\r\n pointer-events: all;\r\n\r\n [data-site='ess'] & {\r\n --fgColor: ${brand.ess.secondary.midGrey};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --fgColor: ${brand.ess.secondary.midGrey};\r\n }\r\n\r\n svg {\r\n display: block;\r\n height: ${fluid(16, 22)};\r\n width: ${fluid(16, 22)};\r\n }\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n right: 13.5vw;\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n right: 26vw;\r\n }\r\n`;\r\nexport const Button = styled.button `\r\n ${modalCloseButtonStyles};\r\n`;\r\nconst CloseStyles = {\r\n Button,\r\n};\r\nexport default CloseStyles;\r\n","import brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { baseGrid } from '@helpers/grid';\r\nimport { Device, from } from '@helpers/media';\r\nimport scrollbars from '@helpers/scrollbars';\r\nimport SectionWrapper from '@stories/Components/Global/SectionWrapper/SectionWrapper';\r\nimport styled, { css } from 'styled-components';\r\nexport const modalContainerStyles = css `\r\n --bgColor: ${brand.global.white};\r\n --tintColor: rgba(0, 0, 0, 0.75);\r\n\r\n &[data-site='ess'] {\r\n --fgColor: ${brand.ess.primary};\r\n }\r\n\r\n &[data-site='mep'] {\r\n --fgColor: ${brand.mep.primary};\r\n }\r\n\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n display: grid;\r\n color: var(--fgColor);\r\n height: 100%;\r\n place-content: center;\r\n place-items: center;\r\n width: 100%;\r\n z-index: 999;\r\n\r\n &[data-open='false'] {\r\n display: none;\r\n }\r\n`;\r\nexport const modalInnerStyles = css `\r\n position: relative;\r\n pointer-events: none;\r\n width: 100vw;\r\n`;\r\nexport const modalContentContainerStyles = css `\r\n ${baseGrid};\r\n pointer-events: none;\r\n\r\n [data-site='ess'] & {\r\n --bgColour: ${brand.global.white};\r\n --borderColour: ${brand.global.red};\r\n }\r\n\r\n [data-site='mep'] & {\r\n --bgColour: ${brand.global.white};\r\n --borderColour: ${brand.global.red};\r\n }\r\n`;\r\nexport const modalContentInnerStyles = css `\r\n ${scrollbars};\r\n position: relative;\r\n pointer-events: all;\r\n background-color: var(--bgColour);\r\n border-top: 3px solid var(--borderColour);\r\n padding: ${fluid(30, 64)} ${fluid(30, 150)};\r\n grid-column: 1 / span 6;\r\n margin: 0 18px;\r\n max-height: 80vh;\r\n overflow: auto;\r\n\r\n @media ${from(Device.Tablet)} {\r\n grid-column: 2 / span 6;\r\n margin: 0;\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n grid-column: 4 / span 6;\r\n }\r\n`;\r\nconst Container = styled(SectionWrapper) `\r\n ${modalContainerStyles};\r\n`;\r\nconst Inner = styled.div `\r\n ${modalInnerStyles};\r\n`;\r\nexport const ModalContentContainer = styled.div `\r\n ${modalContentContainerStyles};\r\n`;\r\nexport const ModalContentInner = styled.div `\r\n ${modalContentInnerStyles};\r\n`;\r\nconst ModalStyles = {\r\n Container,\r\n Inner,\r\n};\r\nexport default ModalStyles;\r\n","import noop from 'lodash/noop';\r\nimport * as React from 'react';\r\nconst ModalContext = React.createContext({\r\n closeOnBackground: false,\r\n showBackground: false,\r\n showClose: false,\r\n onClose: noop,\r\n site: 'ess',\r\n});\r\nexport const useModal = () => React.useContext(ModalContext);\r\nexport const ModalProvider = (props) => {\r\n return React.createElement(ModalContext.Provider, { value: props }, props.children);\r\n};\r\n","import * as React from 'react';\r\nimport { useModal } from '../Context/Context';\r\nimport S from './Background.styles';\r\nconst Background = () => {\r\n const modal = useModal();\r\n return (React.createElement(S.Background, { \"data-close\": modal.closeOnBackground, \"aria-hidden\": true, onClick: modal.closeOnBackground\r\n ? (event) => {\r\n event.preventDefault();\r\n if (modal.onClose) {\r\n modal.onClose();\r\n }\r\n }\r\n : undefined }));\r\n};\r\nexport default Background;\r\n","import SvgClose from '@img/icons/close.svg';\r\nimport SvgCloseMEP from '@img/icons/close-mep.svg';\r\nimport { FocusRing } from '@react-aria/focus';\r\nimport * as React from 'react';\r\nimport { useModal } from '../Context/Context';\r\nimport S from './Close.styles';\r\nconst Close = ({ site }) => {\r\n const modal = useModal();\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Button, { type: \"button\", \"aria-label\": \"Close\", onClick: (event) => {\r\n event.preventDefault();\r\n if (modal.showClose && modal.onClose) {\r\n modal.onClose();\r\n }\r\n } }, site === 'ess' ? React.createElement(SvgClose, null) : React.createElement(SvgCloseMEP, null))));\r\n};\r\nexport default Close;\r\n","import { isSSR } from '@helpers/ssr';\r\nimport { FocusScope } from '@react-aria/focus';\r\nimport * as React from 'react';\r\nimport * as ReactDOM from 'react-dom';\r\nimport Background from './Background/Background';\r\nimport Close from './Close/Close';\r\nimport { ModalProvider } from './Context/Context';\r\nimport S from './Modal.styles';\r\nconst Modal = (props) => {\r\n if (isSSR() || !props.isOpen) {\r\n return null;\r\n }\r\n // Use #root if available, otherwise fallback to body.\r\n const portalContainer = document.getElementById('root') ?? document.body;\r\n const portalContent = (React.createElement(ModalProvider, { closeOnBackground: props.closeOnBackground, showBackground: props.showBackground, showClose: props.showClose, onClose: props.onClose, site: props.site },\r\n React.createElement(FocusScope, { autoFocus: true, contain: true, restoreFocus: true },\r\n React.createElement(S.Container, { id: props.id, role: \"dialog\", \"aria-label\": props.ariaLabel, site: props.site, spacing: \"none\", layout: \"fullWidth\", \"aria-modal\": \"true\", tabIndex: -1, onKeyDown: (event) => {\r\n if (props.onClose && props.showClose && event.key === 'Escape') {\r\n props.onClose();\r\n }\r\n }, \"data-type\": props.type },\r\n props.showBackground && React.createElement(Background, null),\r\n React.createElement(S.Inner, null,\r\n props.children,\r\n props.showClose && React.createElement(Close, { site: props.site }))))));\r\n return ReactDOM.createPortal(portalContent, portalContainer);\r\n};\r\nexport default Modal;\r\n"],"names":["_g","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","xmlns","viewBox","fill","stroke","strokeLinecap","strokeWidth","d","formatDateISO","value","ensureDate","toISOString","formatDate","formatString","undefined","date","format","Date","ensureBusinessDay","excludedDates","day","getDay","addBusinessDays","permittedDate","excludedDate","startDate","isRecurring","setFullYear","getFullYear","endDate","isBefore","isAfter","isSSR","window","document","_ref","buttonType","children","icon","iconOnly","iconPosition","site","otherProps","React","FocusRing","focusRingClass","S","disabled","ChevronRight","ChevronRightMEP","Wrapper","styled","displayName","componentId","DatePickerPluginCss","ButtonStyles","fonts","brand","svgArrow","fluid","transition","rgba","LabelText","PickerWrapper","start","setStart","useState","end","setEnd","containerRef","useRef","minDate","useMemo","leadTimeDays","addYears","useEffect","isEqual","onStartDateChanged","onEndDateChanged","ref","label","DatePicker","dateFormat","selectsRange","selectsEnd","onChange","dates","Array","isArray","filterDate","inline","maxDate","selected","Form","Section","Title","from","Device","Content","paragraphRegular","Row","Field","CommonLabelStyles","css","srOnly","Label","Description","CommonErrorStyles","Error","Divider","SubmitWrapper","between","Loader","LoaderText","ErrorList","ErrorListItem","ConfirmationMessage","contentStyles","Info","ButtonReset","Tooltip","_otherProps$size","showLabel","errorToShow","error","find","name","size","htmlFor","required","tooltip","onClick","e","preventDefault","id","role","description","dangerouslySetInnerHTML","__html","message","modalBackgroundStyles","Background","modalCloseButtonStyles","Button","modalContainerStyles","modalInnerStyles","modalContentContainerStyles","baseGrid","modalContentInnerStyles","scrollbars","Container","SectionWrapper","withConfig","Inner","ModalContentContainer","ModalContentInner","ModalContext","closeOnBackground","showBackground","showClose","onClose","noop","useModal","ModalProvider","Provider","modal","event","type","SvgClose","SvgCloseMEP","_document$getElementB","isOpen","portalContainer","getElementById","body","portalContent","FocusScope","autoFocus","contain","restoreFocus","ariaLabel","spacing","layout","tabIndex","onKeyDown","Close","ReactDOM"],"sourceRoot":""}