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src/helpers/image.ts","webpack://ess-mep/./src/hoc/withMotion.tsx","webpack://ess-mep/./src/stories/Components/Cards/CartProductCard/CartProductCard.styles.ts","webpack://ess-mep/./src/stories/Components/Cards/CartProductCard/CartProductCard.tsx","webpack://ess-mep/./src/stories/Components/Global/Buttons/LinkButton/LinkButton.tsx","webpack://ess-mep/./src/stories/Components/Global/Forms/ErrorSummary.tsx","webpack://ess-mep/./src/stories/Components/Global/LoadingIndicator/LoadingIndicator.styles.ts","webpack://ess-mep/./src/stories/Components/Global/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["var _path;\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 SvgDelete(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 17.729 24.462\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.059 9.265l-1.363 14.208a1.094 1.094 0 01-1.089.99H2.53a1.094 1.094 0 01-1.089-.99L.078 9.265a1.094 1.094 0 112.178-.209l1.268 13.219h10.088L14.88 9.056a1.094 1.094 0 012.178.209zm-9.637 9.35v-8.356a1.012 1.012 0 00-2.024 0v8.36a1.012 1.012 0 002.024 0zm4.222 0v-8.356a1.012 1.012 0 00-2.024 0v8.36a1.012 1.012 0 102.024 0zm6.069-13.106a1.094 1.094 0 00-1.272-.881H.899a1.094 1.094 0 00.194 2.171 1.067 1.067 0 00.2-.018h15.538a1.094 1.094 0 00.881-1.272zm-10.93-3.32a1.144 1.144 0 00.181-.015h3.439a1.094 1.094 0 10-.36-2.158H6.605a1.094 1.094 0 00.179 2.173z\",\n fill: \"currentColor\"\n })));\n}\nexport default SvgDelete;","import { Cloudinary } from '@cloudinary/url-gen';\r\nimport { dpr, format, quality } from '@cloudinary/url-gen/actions/delivery';\r\nimport { crop, fill, limitFill, pad } from '@cloudinary/url-gen/actions/resize';\r\nimport { face } from '@cloudinary/url-gen/qualifiers/focusOn';\r\nimport { auto as autoFormat } from '@cloudinary/url-gen/qualifiers/format';\r\nimport { autoGravity, focusOn } from '@cloudinary/url-gen/qualifiers/gravity';\r\nimport { auto as autoQuality } from '@cloudinary/url-gen/qualifiers/quality';\r\nconst cl_ess = new Cloudinary({\r\n cloud: {\r\n cloudName: 'ddql4dnla',\r\n },\r\n url: {\r\n secure: true,\r\n },\r\n});\r\nconst cl_mep = new Cloudinary({\r\n cloud: {\r\n cloudName: 'dyeapoiad',\r\n },\r\n url: {\r\n secure: true,\r\n },\r\n});\r\n/**\r\n * Create an image URL for ImageProcessor\r\n * @param image The image model\r\n * @param imageParams The image parameters\r\n * @returns The image URL\r\n */\r\nexport function imageUrl(image, imageParams, site) {\r\n if (!image?.src) {\r\n return '';\r\n }\r\n const cl = site === 'mep' ? cl_mep : cl_ess;\r\n let clImage = cl.image(image.src);\r\n const resizeAction = getResizeAction(image, imageParams);\r\n if (resizeAction) {\r\n clImage = clImage.resize(resizeAction);\r\n }\r\n clImage = clImage.delivery(getFormatAction(imageParams)).delivery(quality(autoQuality()));\r\n if (imageParams.dpr) {\r\n clImage = clImage.delivery(dpr(imageParams.dpr));\r\n }\r\n // Set version to enable mass invalidation.\r\n clImage.setVersion('1');\r\n /** Compensate for cloudinary incorrectly encoding comma character to %252C */\r\n return clImage.toURL().replaceAll('%252C', '%2C');\r\n}\r\nfunction getResizeAction(image, imageParams) {\r\n if (!imageParams.width && !imageParams.height) {\r\n console.warn(`Image Not Resized: \"${image.src}\"`, image, imageParams);\r\n return undefined;\r\n }\r\n let resizeAction;\r\n switch (imageParams.crop) {\r\n case 'crop':\r\n resizeAction = crop();\r\n break;\r\n case 'fill':\r\n resizeAction = fill();\r\n break;\r\n case 'lfill':\r\n resizeAction = limitFill();\r\n break;\r\n case 'pad':\r\n resizeAction = pad();\r\n break;\r\n default:\r\n resizeAction = fill();\r\n break;\r\n }\r\n if (imageParams.width) {\r\n resizeAction = resizeAction.width(imageParams.width);\r\n }\r\n else if (imageParams.widthratio) {\r\n resizeAction = resizeAction.aspectRatio(imageParams.widthratio);\r\n }\r\n if (imageParams.height) {\r\n resizeAction = resizeAction.height(imageParams.height);\r\n }\r\n else if (imageParams.heightratio) {\r\n resizeAction = resizeAction.aspectRatio(imageParams.heightratio);\r\n }\r\n if (imageParams.crop !== 'pad') {\r\n if (imageParams.gravity === 'face') {\r\n resizeAction = resizeAction.gravity(focusOn(face()));\r\n }\r\n else {\r\n resizeAction = resizeAction.gravity(autoGravity());\r\n }\r\n }\r\n return resizeAction;\r\n}\r\nfunction getFormatAction(imageParams) {\r\n let formatAction;\r\n if (imageParams.format) {\r\n formatAction = format(imageParams.format);\r\n }\r\n else {\r\n formatAction = format(autoFormat());\r\n }\r\n return formatAction;\r\n}\r\nexport function getSrcs(image, upper, lower, steps, site, ratio) {\r\n if (!image) {\r\n return [];\r\n }\r\n const sizes = getRange(upper, lower, steps);\r\n return sizes.map((size) => `${imageUrl(image, { width: size, heightratio: ratio }, site)} ${size}w`);\r\n}\r\nexport function getRetinaSrcs(image, width, site, ratio) {\r\n const dprs = [1, 1.5, 2];\r\n return dprs.map((dpr) => `${imageUrl(image, { width: width, heightratio: ratio, dpr }, site)} ${dpr}x`);\r\n}\r\nfunction getRange(upper, lower, steps) {\r\n const difference = upper - lower;\r\n const increment = difference / (steps - 1);\r\n return [\r\n lower,\r\n ...Array(steps - 2)\r\n .fill('')\r\n .map((_, index) => Math.ceil(lower + increment * (index + 1))),\r\n upper,\r\n ];\r\n}\r\n","import { domAnimation, LazyMotion } from 'framer-motion';\r\nimport React from 'react';\r\nexport function withMotion(WrappedComponent) {\r\n const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n const ComponentWithMotion = (props) => {\r\n return (React.createElement(LazyMotion, { features: domAnimation, strict: true },\r\n React.createElement(WrappedComponent, { ...props })));\r\n };\r\n ComponentWithMotion.displayName = `withMotion(${displayName})`;\r\n return ComponentWithMotion;\r\n}\r\n","import { transition } from '@helpers/animate';\r\nimport { imageCoverContainer } from '@helpers/aspectRatio';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport { contentStyles, paragraphRegular } from '@helpers/typography';\r\nimport svgChevron from '@img/icons/background/chevron-right.svg?url';\r\nimport ButtonStyles from '@stories/Components/Global/Buttons/Button/Button.styles';\r\nimport DatePickerStyles from '@stories/Components/Global/DatePicker/DatePicker.styles';\r\nimport FormStyles from '@stories/Components/Global/Forms/Form.styles';\r\nimport TextboxStyles from '@stories/Components/Global/Inputs/Textbox/Textbox.styles';\r\nimport { ModalContentContainer, ModalContentInner } from '@stories/Components/Global/Modal/Modal.styles';\r\nimport QuantitySelectorStyles from '@stories/Components/Global/QuantitySelector/QuantitySelector.styles';\r\nimport { m } from 'framer-motion';\r\nimport { rgba } from 'polished';\r\nimport styled from 'styled-components';\r\nconst Wrapper = styled.div `\r\n --contentPadding: ${fluid(12, 16)};\r\n\r\n &[data-site='ess'] {\r\n --borderColor: ${brand.ess.secondary.lightGrey};\r\n --idColour: ${brand.ess.secondary.darkGrey};\r\n --overlayBgColour: ${rgba(brand.global.red, 0.8)};\r\n --overlayFgColour: ${brand.global.white};\r\n --priceColour: ${brand.global.red};\r\n --textColour: ${brand.ess.primary};\r\n }\r\n\r\n &[data-site='mep'] {\r\n --borderColor: ${brand.mep.secondary.lightGrey};\r\n --idColour: ${brand.mep.secondary.darkestGrey};\r\n --overlayBgColour: ${rgba(brand.global.red, 0.8)};\r\n --overlayFgColour: ${brand.global.white};\r\n --priceColour: ${brand.global.red};\r\n --textColour: ${brand.mep.primary};\r\n }\r\n\r\n ${FormStyles.ErrorList} {\r\n border: 2px solid var(--borderColor);\r\n border-bottom: none;\r\n padding: var(--contentPadding);\r\n }\r\n`;\r\nconst Container = styled.div `\r\n position: relative;\r\n border: 2px solid var(--borderColor);\r\n display: flex;\r\n overflow: hidden;\r\n\r\n ${Wrapper}[data-site='mep'] & {\r\n border-radius: 8px;\r\n }\r\n`;\r\nconst ImageWrapper = styled.div `\r\n position: relative;\r\n padding: ${fluid(6, 12)};\r\n width: 30%;\r\n min-width: 108px;\r\n aspect-ratio: 1;\r\n\r\n @media ${until(Device.Tablet)} {\r\n ${Container}[data-variant='full'] > & {\r\n display: none;\r\n }\r\n\r\n ${Container}[data-variant='full'] & {\r\n border-right: 2px solid var(--borderColor);\r\n border-bottom: 2px solid var(--borderColor);\r\n margin: calc(var(--contentPadding) * -1) 0 0 calc(var(--contentPadding) * -1);\r\n }\r\n }\r\n\r\n @media ${from(Device.DesktopSmall)} {\r\n max-height: 166px;\r\n max-width: 195px;\r\n\r\n ${Container}[data-site='ess'] & {\r\n margin: auto 0;\r\n }\r\n }\r\n`;\r\nconst Image = styled.img `\r\n ${imageCoverContainer()}\r\n object-fit: contain;\r\n\r\n @media ${until(Device.Tablet)} {\r\n ${Container}[data-site='mep'][data-variant='overlay'] & {\r\n object-position: top center;\r\n }\r\n }\r\n`;\r\nconst ContentWrapper = styled.div `\r\n flex: 1;\r\n padding: var(--contentPadding);\r\n border-left: 2px solid var(--borderColor);\r\n display: flex;\r\n flex-direction: column;\r\n\r\n ${Container}[data-site='mep'] & {\r\n ${QuantitySelectorStyles.Container} {\r\n --bgColour: ${brand.mep.secondary.lightestGrey};\r\n }\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n ${Container}[data-variant='full'] & {\r\n border: 0;\r\n }\r\n }\r\n`;\r\nconst PriceWrapper = styled.div `\r\n display: flex;\r\n gap: 5px;\r\n align-items: flex-end;\r\n color: var(--priceColour);\r\n white-space: nowrap;\r\n`;\r\nconst Price = styled.span `\r\n font-size: ${fluid(16, 18)};\r\n line-height: 24px;\r\n\r\n ${Container}[data-site='ess'] & {\r\n ${fonts.daxWide.bold};\r\n }\r\n\r\n ${Container}[data-site='mep'] & {\r\n ${fonts.museoSlab.bold};\r\n }\r\n`;\r\nconst Suffix = styled.span `\r\n ${fonts.daxWide.regular};\r\n\r\n font-size: ${fluid(10, 12)};\r\n line-height: ${fluid(18, 20)};\r\n text-transform: uppercase;\r\n`;\r\nconst TopWrapper = styled.div `\r\n display: flex;\r\n gap: ${fluid(12, 16)} ${fluid(10, 24)};\r\n align-items: flex-start;\r\n\r\n ${Container}[data-variant='full'] & {\r\n margin-bottom: 14px;\r\n\r\n @media ${from(Device.Tablet)} {\r\n margin: 0;\r\n justify-content: space-between;\r\n\r\n ${ImageWrapper} {\r\n display: none;\r\n }\r\n }\r\n }\r\n`;\r\nconst TitlePriceWrapper = styled.div `\r\n ${Container}[data-variant='overlay'] & {\r\n > ${PriceWrapper} {\r\n margin-bottom: 14px;\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: none;\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: contents;\r\n }\r\n`;\r\nconst Title = styled.h3 `\r\n ${paragraphRegular};\r\n ${fonts.daxWide.bold};\r\n\r\n margin: 0 0 4px;\r\n`;\r\nconst Id = styled.span `\r\n ${paragraphRegular};\r\n\r\n color: var(--idColour);\r\n margin: 0 0 10px;\r\n`;\r\nconst AccordionWrapper = styled.div `\r\n > ${ButtonStyles.Container} {\r\n margin: 0 0 12px;\r\n\r\n ${ButtonStyles.IconWrapper} {\r\n transform: none !important;\r\n\r\n svg {\r\n ${transition('transform', 0.2)}\r\n }\r\n }\r\n }\r\n\r\n > ${ButtonStyles.Container}[data-active='false'] {\r\n ${ButtonStyles.IconWrapper} svg {\r\n transform: rotate(90deg);\r\n }\r\n }\r\n\r\n > ${ButtonStyles.Container}[data-active='true'] {\r\n ${ButtonStyles.IconWrapper} svg {\r\n transform: rotate(-90deg);\r\n }\r\n }\r\n`;\r\nconst AccordionArea = styled(m.div) `\r\n overflow: hidden;\r\n position: relative;\r\n margin: 0 0 4px;\r\n`;\r\nconst Content = styled.div `\r\n ${contentStyles};\r\n\r\n ${Container}[data-site='ess'] & {\r\n ul > li::before {\r\n color: transparent;\r\n background-image: url(${svgChevron});\r\n background-repeat: no-repeat;\r\n background-position: center left;\r\n }\r\n }\r\n`;\r\nconst BottomWrapper = styled.div `\r\n display: flex;\r\n gap: ${fluid(12, 16)} 24px;\r\n flex-direction: column;\r\n\r\n ${FormStyles.Field} {\r\n position: relative;\r\n }\r\n\r\n ${TextboxStyles.Input} {\r\n border: 0;\r\n height: 46px;\r\n line-height: 46px;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n\r\n ${Container}[data-site= 'ess'] & {\r\n border-radius: 0;\r\n background-color: ${rgba(brand.ess.secondary.midGrey, 0.1)};\r\n }\r\n\r\n ${Container}[data-site='mep'] & {\r\n background-color: ${brand.mep.secondary.lightestGrey};\r\n }\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n ${FormStyles.Row} {\r\n --count: 2;\r\n\r\n gap: 12px;\r\n }\r\n\r\n ${Container}[data-variant='full'] & {\r\n border-top: 1px solid var(--borderColor);\r\n padding-top: 8px;\r\n }\r\n\r\n ${Container}[data-variant='overlay'] & {\r\n ${PriceWrapper} {\r\n display: none;\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n align-items: flex-end;\r\n flex-direction: row;\r\n margin-top: auto;\r\n\r\n ${Container}[data-variant='full'] & {\r\n justify-content: space-between;\r\n }\r\n\r\n &[data-has-datepicker='true'] {\r\n flex-wrap: wrap;\r\n\r\n ${FormStyles.Row} {\r\n max-width: min(70%, 376px);\r\n }\r\n }\r\n }\r\n`;\r\nconst TotalPrice = styled.div `\r\n ${paragraphRegular};\r\n ${fonts.daxWide.bold};\r\n\r\n text-transform: uppercase;\r\n display: block;\r\n margin: 0;\r\n color: var(--textColor);\r\n\r\n ${BottomWrapper}[data-has-datepicker='true'] & {\r\n width: 100%;\r\n }\r\n`;\r\nconst CalendarIcon = styled.span `\r\n pointer-events: none;\r\n display: block;\r\n position: absolute;\r\n right: 12px;\r\n bottom: 14px;\r\n\r\n > svg {\r\n display: block;\r\n width: 18px;\r\n }\r\n\r\n ${Container}[data-site='ess'] & {\r\n color: ${brand.ess.primary};\r\n }\r\n\r\n ${Container}[data-site='mep'] & {\r\n color: ${brand.mep.primary};\r\n }\r\n`;\r\nconst QuantityPriceWrapper = styled.div `\r\n display: flex;\r\n align-items: flex-end;\r\n\r\n @media ${from(Device.Tablet)} {\r\n display: contents;\r\n }\r\n`;\r\nconst DeleteButton = styled.button `\r\n ${ButtonReset};\r\n\r\n margin-left: auto;\r\n display: grid;\r\n place-content: center;\r\n padding: ${fluid(12, 16)};\r\n background-color: var(--borderColor);\r\n color: var(--textColour);\r\n\r\n .focus-ring & {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n > svg {\r\n display: block;\r\n width: ${fluid(14, 18)};\r\n }\r\n\r\n @media ${until(Device.Tablet)} {\r\n ${Container}[data-variant='full'] > & {\r\n display: none;\r\n }\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n ${BottomWrapper} & {\r\n display: none;\r\n }\r\n }\r\n\r\n /* Mobile click styles - button should mimic press */\r\n @media ${until(Device.TabletLarge)} {\r\n ${transition('transform', 0.15)};\r\n\r\n span& {\r\n button:active &,\r\n a:active & {\r\n transform: translateY(1.5px);\r\n }\r\n }\r\n\r\n &:not(span) {\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n ${transition('opacity', 0.15)};\r\n\r\n svg {\r\n ${transition('transform', 0.15)};\r\n }\r\n\r\n &.focus-ring,\r\n &:hover {\r\n opacity: 0.9;\r\n\r\n svg {\r\n transform: scale(1.1);\r\n }\r\n }\r\n }\r\n`;\r\nconst RemovedOverlay = styled.div `\r\n position: relative;\r\n display: flex;\r\n background: var(--overlayBgColour);\r\n color: var(--overlayFgColour);\r\n flex-direction: column;\r\n height: 100%;\r\n place-content: center;\r\n place-items: center;\r\n text-align: center;\r\n width: 100%;\r\n z-index: 8;\r\n padding: ${fluid(24, 32)};\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n`;\r\nconst RemovedOverlayText = styled.span `\r\n ${paragraphRegular};\r\n\r\n display: block;\r\n margin: 0;\r\n`;\r\nconst AddToBasketModal = styled(ModalContentContainer) ``;\r\nconst AddToBasketModalContent = styled(ModalContentInner) `\r\n ${DatePickerStyles.Wrapper} {\r\n margin: 0 0 ${fluid(20, 40)};\r\n }\r\n\r\n /* Adjust button width to compensate for active state */\r\n\r\n ${Container}[data-site='ess'] & {\r\n @media ${until(Device.TabletLarge)} {\r\n ${ButtonStyles.Container} {\r\n width: calc(100% - 30px);\r\n }\r\n\r\n ${ButtonStyles.Text} {\r\n transform: translateX(15px);\r\n }\r\n }\r\n }\r\n`;\r\nconst ModalButtonWrapper = styled.div `\r\n text-align: center;\r\n`;\r\nconst CartProductCardStyles = {\r\n AccordionArea,\r\n AccordionWrapper,\r\n AddToBasketModal,\r\n AddToBasketModalContent,\r\n BottomWrapper,\r\n CalendarIcon,\r\n Container,\r\n Content,\r\n ContentWrapper,\r\n DeleteButton,\r\n Id,\r\n Image,\r\n ImageWrapper,\r\n ModalButtonWrapper,\r\n Price,\r\n PriceWrapper,\r\n QuantityPriceWrapper,\r\n RemovedOverlay,\r\n RemovedOverlayText,\r\n Suffix,\r\n Title,\r\n TitlePriceWrapper,\r\n TopWrapper,\r\n TotalPrice,\r\n Wrapper,\r\n};\r\nexport default CartProductCardStyles;\r\n","import { ensureDate, formatDate } from '@helpers/date';\r\nimport { getSrcs } from '@helpers/image';\r\nimport { Device, until } from '@helpers/media';\r\nimport { formatCurrency } from '@helpers/utils';\r\nimport { withMotion } from '@hoc/withMotion';\r\nimport { withRedux } from '@hoc/withRedux';\r\nimport SvgCalendar from '@img/icons/calendar.svg';\r\nimport SvgDelete from '@img/icons/delete.svg';\r\nimport { basket } from '@redux/slices/basket';\r\nimport { deleteProduct } from '@redux/slices/basket/actions/deleteProduct';\r\nimport { updateBasketProduct } from '@redux/slices/basket/actions/updateBasketProduct';\r\nimport { useAppDispatch, useAppSelector } from '@redux/store';\r\nimport { isFulfilled } from '@reduxjs/toolkit';\r\nimport Button from '@stories/Components/Global/Buttons/Button/Button';\r\nimport Datepicker from '@stories/Components/Global/DatePicker/DatePicker';\r\nimport ErrorSummary from '@stories/Components/Global/Forms/ErrorSummary';\r\nimport FormField from '@stories/Components/Global/Forms/FormField';\r\nimport FormRow from '@stories/Components/Global/Forms/FormRow';\r\nimport Textbox from '@stories/Components/Global/Inputs/Textbox/Textbox';\r\nimport LoadingIndicator from '@stories/Components/Global/LoadingIndicator/LoadingIndicator';\r\nimport Modal from '@stories/Components/Global/Modal/Modal';\r\nimport QuantitySelector from '@stories/Components/Global/QuantitySelector/QuantitySelector';\r\nimport { addBusinessDays, isBefore, startOfToday } from 'date-fns';\r\nimport { MotionConfig } from 'framer-motion';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport { toast } from 'react-toastify';\r\nimport S from './CartProductCard.styles';\r\nconst CartProductCard = (props) => {\r\n const srcs = getSrcs(props.image, 285, 80, 4, props.site);\r\n const sizes = props.variant === 'full'\r\n ? `${until(Device.TabletLarge)} 30vw, ${until(Device.Desktop)} 18.75vw, ${until(Device.ActualDesktop)} 14vw, 240px`\r\n : `${until(Device.Tablet)} 30vw, ${until(Device.DesktopSmall)} 168px, ${until(Device.ActualDesktop)} 8vw, 70px`;\r\n const dispatch = useAppDispatch();\r\n const { status: basketStatus, productId } = useAppSelector((state) => state.basket);\r\n const [accordionOpen, setAccordionOpen] = React.useState(false);\r\n const [open, setOpen] = React.useState(false);\r\n /** Used to define when product has been deleted from basket */\r\n const [status, setStatus] = React.useState('initial');\r\n const [qty, setQty] = React.useState(props.qty);\r\n const [lineTotal, setLineTotal] = React.useState(props.lineTotal);\r\n const [onDateInitial, setOnDateInitial] = React.useState(props.onDate &&\r\n !isBefore(ensureDate(props.onDate), addBusinessDays(startOfToday(), props.calendarLeadTime ?? 5))\r\n ? props.onDate\r\n : addBusinessDays(new Date(), props.calendarLeadTime ?? 5));\r\n const [offDateInitial, setOffDateInitial] = React.useState(props.offDate &&\r\n !isBefore(ensureDate(props.offDate), addBusinessDays(startOfToday(), props.calendarLeadTime ?? 5))\r\n ? props.offDate\r\n : addBusinessDays(new Date(), 5 + props.calendarLeadTime ?? 5));\r\n const [onDate, setOnDate] = React.useState(props.onDate &&\r\n !isBefore(ensureDate(props.onDate), addBusinessDays(startOfToday(), props.calendarLeadTime ?? 5))\r\n ? props.onDate\r\n : addBusinessDays(new Date(), props.calendarLeadTime ?? 5));\r\n const [offDate, setOffDate] = React.useState(props.offDate &&\r\n !isBefore(ensureDate(props.offDate), addBusinessDays(startOfToday(), props.calendarLeadTime ?? 5))\r\n ? props.offDate\r\n : addBusinessDays(new Date(), 5 + props.calendarLeadTime ?? 5));\r\n return (React.createElement(S.Wrapper, { \"data-site\": props.site },\r\n props.errors && props.errors.length > 0 ? (React.createElement(ErrorSummary, { errors: props.errors, site: props.site ?? 'ess' })) : null,\r\n React.createElement(S.Container, { \"data-site\": props.site, \"data-variant\": props.variant },\r\n React.createElement(S.ImageWrapper, null,\r\n React.createElement(S.Image, { src: srcs[0].split(' ')[0], srcSet: srcs.join(','), sizes: sizes, alt: props.image.altText ?? props.name })),\r\n React.createElement(S.ContentWrapper, null,\r\n React.createElement(S.TopWrapper, null,\r\n props.variant === 'full' && (React.createElement(S.ImageWrapper, null,\r\n React.createElement(S.Image, { src: srcs[0].split(' ')[0], srcSet: srcs.join(','), sizes: sizes, alt: props.image.altText ?? props.name }))),\r\n React.createElement(S.TitlePriceWrapper, null,\r\n React.createElement(\"div\", null,\r\n React.createElement(S.Title, null, props.name),\r\n React.createElement(S.Id, null, props.g42Id)),\r\n props.showPrice && (React.createElement(S.PriceWrapper, null,\r\n React.createElement(S.Price, null, props.price.isValid ?? true\r\n ? formatCurrency(props.price.incl)\r\n : 'Invalid price'),\r\n ' ',\r\n React.createElement(S.Suffix, null, props.price.suffix))))),\r\n props.included && props.included.length > 0 && (React.createElement(MotionConfig, { transition: { duration: 0.3, ease: 'easeOut' } },\r\n React.createElement(S.AccordionWrapper, null,\r\n React.createElement(Button, { buttonType: \"link-alt\", \"data-active\": accordionOpen, onClick: () => setAccordionOpen(!accordionOpen), site: props.site }, \"What's Included\"),\r\n React.createElement(S.AccordionArea, { initial: accordionOpen ? 'opened' : 'closed', animate: accordionOpen ? 'opened' : 'closed', variants: {\r\n closed: {\r\n height: 0,\r\n transitionEnd: {\r\n visibility: 'hidden',\r\n },\r\n },\r\n opened: {\r\n visibility: 'visible',\r\n height: 'auto',\r\n },\r\n } },\r\n React.createElement(S.Content, null,\r\n React.createElement(\"ul\", null, props.included.map((incl, i) => (React.createElement(\"li\", { key: `${props.id}-included-${i}` }, incl))))))))),\r\n React.createElement(S.BottomWrapper, { \"data-has-datepicker\": props.variant === 'full' && onDateInitial !== '' },\r\n props.variant === 'full' && props.showPrice && (React.createElement(S.TotalPrice, null,\r\n \"Total \",\r\n props.type === 'hire' && 'Hire',\r\n \" Cost:\",\r\n ' ',\r\n props.price.isValid ?? true ? formatCurrency(lineTotal) : 'Invalid price')),\r\n props.variant === 'full' && props.type === 'hire' && (React.createElement(FormRow, null,\r\n React.createElement(FormField, { name: \"onDate\", label: \"On Hire Date\" },\r\n React.createElement(Textbox, { placeholder: \"DD/MM/YYYY\", type: \"text\", value: onDateInitial ? formatDate(onDateInitial, 'dd/MM/yyyy') : undefined, readOnly: true, onClick: () => setOpen(true) }),\r\n React.createElement(S.CalendarIcon, null,\r\n React.createElement(SvgCalendar, null))),\r\n React.createElement(FormField, { name: \"offDate\", label: \"Off Hire Date\" },\r\n React.createElement(Textbox, { placeholder: \"DD/MM/YYYY\", type: \"text\", value: offDateInitial ? formatDate(offDateInitial, 'dd/MM/yyyy') : undefined, readOnly: true, onClick: () => setOpen(true) }),\r\n React.createElement(S.CalendarIcon, null,\r\n React.createElement(SvgCalendar, null))))),\r\n React.createElement(S.QuantityPriceWrapper, null,\r\n React.createElement(QuantitySelector, { value: qty, onDownPress: () => updateProduct(qty - 1), onUpPress: () => updateProduct(qty + 1), site: props.site, disabled: false }),\r\n props.variant === 'full' ? (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.DeleteButton, { \"aria-label\": `Remove ${props.name} from basket`, onClick: deleteProductFromBasket },\r\n React.createElement(SvgDelete, null)))) : (React.createElement(React.Fragment, null, props.showPrice && (React.createElement(S.PriceWrapper, null,\r\n React.createElement(S.Price, null, props.price.isValid ?? true\r\n ? formatCurrency(props.price.incl)\r\n : 'Invalid price'),\r\n ' ',\r\n React.createElement(S.Suffix, null, props.price.suffix)))))))),\r\n React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.DeleteButton, { \"aria-label\": `Remove ${props.name} from basket`, onClick: deleteProductFromBasket },\r\n React.createElement(SvgDelete, null))),\r\n (basketStatus === 'pending' || basketStatus === 'submitting') && productId === props.id ? (React.createElement(LoadingIndicator, { label: \"Loading\\u2026\", layout: \"absolute\" })) : null,\r\n status === 'complete' && (React.createElement(S.RemovedOverlay, null,\r\n React.createElement(S.RemovedOverlayText, null, \"Product removed from basket.\")))),\r\n React.createElement(Modal, { site: props.site, showClose: false, ariaLabel: `Change hire dates for ${props.name} Modal`, isOpen: open, showBackground: true, onClose: () => {\r\n setOnDate(onDateInitial);\r\n setOffDate(offDateInitial);\r\n setOpen(false);\r\n }, closeOnBackground: true },\r\n React.createElement(S.AddToBasketModal, null,\r\n React.createElement(S.AddToBasketModalContent, null,\r\n React.createElement(Datepicker, { label: \"Change Hire Dates\", onStartDateChanged: setOnDate, onEndDateChanged: setOffDate, endDate: ensureDate(offDate), startDate: ensureDate(onDate), excludedDates: props.excludedDates, leadTimeDays: props.calendarLeadTime }),\r\n React.createElement(S.ModalButtonWrapper, null,\r\n React.createElement(Button, { buttonType: props.site === 'mep' ? 'default' : 'secondary', site: props.site, disabled: status === 'loading', onClick: () => {\r\n updateProduct(qty);\r\n setOpen(false);\r\n } }, \"Update Hire Dates\")))))));\r\n async function updateProduct(amount) {\r\n dispatch(basket.actions.setStatus('pending'));\r\n dispatch(basket.actions.setProductId(props.id));\r\n const result = await dispatch(updateBasketProduct({ id: props.id, qty: amount, onDate: onDate, offDate: offDate }));\r\n /**\r\n * Update quantity shown or display error message.\r\n */\r\n if (isFulfilled(result) && result.payload) {\r\n if (result.payload.errors) {\r\n toast(result.payload.errors.join(' '), { type: 'error' });\r\n }\r\n else {\r\n const item = result.payload.items.find((item) => item.id === props.id);\r\n if (item) {\r\n setQty(item.qty);\r\n setLineTotal(item.lineTotal);\r\n item.onDate && setOnDateInitial(item.onDate);\r\n item.offDate && setOffDateInitial(item.offDate);\r\n }\r\n }\r\n }\r\n else {\r\n setOnDate(onDateInitial);\r\n setOffDate(offDateInitial);\r\n toast(`Error changing item quantity, please try again`, { type: 'error' });\r\n }\r\n }\r\n async function deleteProductFromBasket() {\r\n dispatch(basket.actions.setStatus('pending'));\r\n dispatch(basket.actions.setProductId(props.id));\r\n const result = await dispatch(deleteProduct({ id: props.id }));\r\n /**\r\n * Set status as complete (product deleted) or show error message.\r\n */\r\n if (isFulfilled(result) && result.payload) {\r\n if (result.payload.errors) {\r\n toast(result.payload.errors.join(' '), { type: 'error' });\r\n }\r\n else {\r\n setStatus('complete');\r\n }\r\n }\r\n else {\r\n setStatus('initial');\r\n toast(`Error removing item from basket, please try again`, { type: 'error' });\r\n }\r\n }\r\n};\r\nexport default withRedux(withMotion(CartProductCard));\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/Button.styles';\r\nconst LinkButton = ({ buttonType, children, icon, iconOnly, iconPosition = 'right', site, ...otherProps }) => {\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Container, { as: \"a\", \"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(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 LinkButton;\r\n","import * as React from 'react';\r\nimport S from './Form.styles';\r\nconst ErrorSummary = (props) => {\r\n return (React.createElement(S.ErrorList, null, props.errors.map((error) => (React.createElement(S.ErrorListItem, { key: error },\r\n React.createElement(\"span\", null, \"!\"),\r\n \" \",\r\n error)))));\r\n};\r\nexport default ErrorSummary;\r\n","import { fluid } from '@helpers/fluid';\r\nimport { paragraphRegular } from '@helpers/typography';\r\nimport styled from 'styled-components';\r\nconst Loader = styled.div `\r\n position: relative;\r\n display: flex;\r\n background: var(--bgColour);\r\n color: var(--fgColour);\r\n flex-direction: column;\r\n height: 100%;\r\n place-content: center;\r\n place-items: center;\r\n text-align: center;\r\n width: 100%;\r\n z-index: 999;\r\n\r\n &[data-layout='inline'] {\r\n padding: ${fluid(48, 96)};\r\n }\r\n\r\n &[data-layout='absolute'] {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n }\r\n\r\n &[data-layout='fixed'] {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n }\r\n\r\n &[data-alignment='top'] {\r\n place-content: flex-start;\r\n padding-top: 24px;\r\n }\r\n`;\r\nconst LoaderText = styled.span `\r\n ${paragraphRegular};\r\n\r\n display: block;\r\n margin: 1rem 0 0;\r\n`;\r\nconst LoadingIndicatorStyles = {\r\n Loader,\r\n LoaderText,\r\n};\r\nexport default LoadingIndicatorStyles;\r\n","import brand from '@helpers/brand';\r\nimport { rgba } from 'polished';\r\nimport * as React from 'react';\r\nimport { PuffLoader } from 'react-spinners';\r\nimport S from './LoadingIndicator.styles';\r\nconst LoadingIndicator = (props) => {\r\n return (React.createElement(S.Loader, { \"data-layout\": props.layout ?? 'inline', \"data-alignment\": props.alignment ?? 'center', style: {\r\n '--bgColour': props.bgColour ?? rgba(brand.global.red, 0.66),\r\n '--fgColour': props.fgColour ?? brand.global.white,\r\n } },\r\n React.createElement(PuffLoader, { color: \"currentColor\", size: props.size ?? 64 }),\r\n props.label && React.createElement(S.LoaderText, null, props.label)));\r\n};\r\nexport default LoadingIndicator;\r\n"],"names":["_path","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","viewBox","d","fill","cl_ess","Cloudinary","cloud","cloudName","url","secure","cl_mep","imageUrl","image","imageParams","site","src","clImage","resizeAction","width","height","console","warn","crop","limitFill","pad","widthratio","aspectRatio","heightratio","gravity","focusOn","face","autoGravity","getResizeAction","resize","delivery","formatAction","format","autoFormat","getFormatAction","quality","autoQuality","dpr","setVersion","toURL","replaceAll","getSrcs","upper","lower","steps","ratio","sizes","increment","Array","map","_","index","Math","ceil","getRange","size","getRetinaSrcs","withMotion","WrappedComponent","displayName","name","ComponentWithMotion","React","LazyMotion","features","domAnimation","strict","Wrapper","styled","componentId","fluid","brand","rgba","FormStyles","Container","ImageWrapper","until","Device","from","Image","imageCoverContainer","ContentWrapper","QuantitySelectorStyles","PriceWrapper","Price","fonts","Suffix","TopWrapper","TitlePriceWrapper","Title","paragraphRegular","Id","AccordionWrapper","ButtonStyles","transition","AccordionArea","m","withConfig","Content","contentStyles","svgChevron","BottomWrapper","TextboxStyles","TotalPrice","CalendarIcon","QuantityPriceWrapper","DeleteButton","ButtonReset","RemovedOverlay","RemovedOverlayText","AddToBasketModal","ModalContentContainer","AddToBasketModalContent","ModalContentInner","DatePickerStyles","ModalButtonWrapper","withRedux","_props$calendarLeadTi","_props$calendarLeadTi2","_props$calendarLeadTi3","_ref","_props$calendarLeadTi4","_props$calendarLeadTi5","_props$calendarLeadTi6","_ref2","_props$site","_props$image$altText","_props$image$altText2","_props$price$isValid","_props$price$isValid2","_props$price$isValid3","srcs","variant","dispatch","useAppDispatch","status","basketStatus","productId","useAppSelector","state","basket","accordionOpen","setAccordionOpen","open","setOpen","setStatus","qty","setQty","lineTotal","setLineTotal","onDateInitial","setOnDateInitial","onDate","isBefore","ensureDate","addBusinessDays","startOfToday","calendarLeadTime","Date","offDateInitial","setOffDateInitial","offDate","setOnDate","setOffDate","S","errors","ErrorSummary","split","srcSet","join","alt","altText","g42Id","showPrice","price","isValid","formatCurrency","incl","suffix","included","MotionConfig","duration","ease","Button","buttonType","onClick","initial","animate","variants","closed","transitionEnd","visibility","opened","id","type","FormRow","FormField","label","Textbox","placeholder","value","formatDate","undefined","readOnly","SvgCalendar","QuantitySelector","onDownPress","updateProduct","onUpPress","disabled","FocusRing","focusRingClass","deleteProductFromBasket","SvgDelete","LoadingIndicator","layout","Modal","showClose","ariaLabel","isOpen","showBackground","onClose","closeOnBackground","Datepicker","onStartDateChanged","onEndDateChanged","endDate","startDate","excludedDates","leadTimeDays","async","amount","result","updateBasketProduct","isFulfilled","payload","toast","item","items","find","deleteProduct","children","icon","iconOnly","iconPosition","otherProps","as","ChevronRight","ChevronRightMEP","error","Loader","LoaderText","_props$layout","_props$alignment","_props$bgColour","_props$fgColour","_props$size","alignment","style","bgColour","fgColour","PuffLoader","color"],"sourceRoot":""}