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,EAAAA,cAAoBC,EAAAA,GAAW,CAAEvE,IAAKyL,EAAUhC,GAAIjF,eAAgB,cACxEF,EAAAA,cAAoBG,EAAAA,EAAAA,UAAa,CAAE6G,KAAMG,EAAUO,IAAIf,IAAKtL,OAAQ8L,EAAUO,IAAIrM,OAAQ,cAAcyL,EAAAA,EAAAA,IAAQ,UAACK,EAAUO,IAAIC,YAAf,QAAuB,GAAIR,EAAUO,IAAIrM,OAAQW,EAAM+K,cAAgB/K,EAAM+K,aAAa,sBACtM/G,EAAAA,cAAoBG,EAAAA,EAAAA,IAAO,CAAEU,IAAKyG,EAAS,GAAGM,MAAM,KAAK,GAAIC,OAAQP,EAASZ,KAAK,KAAM3F,IAAG,UAAEoG,EAAUK,KAAKxG,eAAjB,QAA4BmG,EAAUO,IAAIC,KAAM1G,QAAS,UAF7J,SAIR+C,GAAqB8D,KAAkB,OAC9ChE,GAAiBgE,KAMtB,SAASA,IAAc,MACnB,OAAQ9H,EAAAA,cAAoBG,EAAAA,EAAAA,aAAgB,KACxCH,EAAAA,cAAoBG,EAAAA,EAAAA,WAAc,KAC9BH,EAAAA,cAAoBG,EAAAA,EAAAA,IAAO,CAAEU,KAAKC,EAAAA,EAAAA,IAAS9E,EAAM+L,MAAO,CAAC,GAAIhH,IAAK/E,EAAM+L,MAAM/G,QAASC,QAAS,OAAQ,eAA0C,iBAA1BjF,EAAMuJ,kBACpG,iBAA1BvJ,EAAMuJ,iBAAuCvF,EAAAA,cAAoBG,EAAAA,EAAAA,cAAiB,KAC9EH,EAAAA,cAAoBG,EAAAA,EAAAA,YAAe,KAC/BH,EAAAA,cAAoBG,EAAAA,EAAAA,YAAe,KAAnC,UAAyCnE,EAAM+K,oBAA/C,aAAyC,EAAqB,iDACjF,I","sources":["webpack://lcci/./src/img/icons/arrow-right.svg","webpack://lcci/./src/helpers/date.ts","webpack://lcci/./src/hooks/useMediaQuery.ts","webpack://lcci/./src/stories/Components/Buttons/CtaLink/CtaLink.styles.ts","webpack://lcci/./src/stories/Components/Buttons/CtaLink/CtaLink.tsx","webpack://lcci/./src/stories/Components/Buttons/LinkButton/LinkButton.tsx","webpack://lcci/./src/stories/Components/Cards/EventListingCard/EventListingCard.styles.ts","webpack://lcci/./src/stories/Components/Cards/EventListingCard/EventListingCard.tsx"],"sourcesContent":["var _path;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgArrowRight(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0.04 0 13.16 11.99\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.2 5.999a.986.986 0 00-.254-.619L7.937.28a1.112 1.112 0 00-1.37-.075.91.91 0 00.01 1.313L10.099 5.1H.939a.9.9 0 100 1.8h9.16l-3.522 3.582a.961.961 0 00-.01 1.313 1.1 1.1 0 001.37-.075l5.009-5.1a.847.847 0 00.254-.619z\",\n fill: \"currentColor\"\n })));\n}\n\nexport default SvgArrowRight;","import format from 'date-fns/format';\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\nfunction calculateDiffInDays(a, b) {\r\n const _MS_PER_DAY = 1000 * 60 * 60 * 24;\r\n // Discard the time and time-zone information.\r\n const utc1 = Date.UTC(a.getFullYear(), a.getMonth(), a.getDate());\r\n const utc2 = Date.UTC(b.getFullYear(), b.getMonth(), b.getDate());\r\n return Math.floor((utc2 - utc1) / _MS_PER_DAY);\r\n}\r\nexport function getDateDiff(start, end) {\r\n let diff = calculateDiffInDays(ensureDate(start), ensureDate(end));\r\n const years = Math.floor(diff / 365);\r\n const year_text = years === 1 ? 'year ' : 'years';\r\n diff %= 365;\r\n const months = Math.floor(diff / 30);\r\n const mon_text = months <= 1 ? 'month' : 'months';\r\n const days = diff % 30;\r\n const day_text = days <= 1 ? 'day' : 'days';\r\n return `${years !== 0 ? `${years} ${year_text}` : ''}${months !== 0 ? ` ${months} ${mon_text}` : ''}${days !== 0 ? ` ${days} ${day_text}` : ''}`;\r\n}\r\nexport function equalDates(startDate, endDate) {\r\n const sd = ensureDate(startDate);\r\n const ed = ensureDate(endDate);\r\n return sd.toDateString() === ed.toDateString();\r\n}\r\n","import { useEffect, useState } from 'react';\r\nexport function useMediaQuery(query) {\r\n const getMatches = (query) => {\r\n // Prevents SSR issues\r\n if (typeof window !== 'undefined') {\r\n return window.matchMedia(query).matches;\r\n }\r\n return false;\r\n };\r\n const [matches, setMatches] = useState(getMatches(query));\r\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\r\n function handleChange() {\r\n setMatches(getMatches(query));\r\n }\r\n useEffect(() => {\r\n const matchMedia = window.matchMedia(query);\r\n // Triggered at the first client-side load and if query changes\r\n handleChange();\r\n // Listen matchMedia\r\n matchMedia.addEventListener('change', handleChange);\r\n return () => {\r\n matchMedia.removeEventListener('change', handleChange);\r\n };\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [query]);\r\n return matches;\r\n}\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Device, until } from '@helpers/media';\r\nimport styled from 'styled-components';\r\nconst Container = styled.a `\r\n ${ButtonReset};\r\n\r\n position: relative;\r\n display: inline-flex;\r\n align-items: center;\r\n color: var(--fgColor, ${brand.base.blue});\r\n ${fonts.apparat.semiBold}\r\n font-size: ${fluid(18, 26)};\r\n line-height: 1em;\r\n text-decoration: none;\r\n\r\n /* Mobile click styles - button should mimic press */\r\n @media ${until(Device.TabletLarge)} {\r\n ${transition('transform')};\r\n\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n }\r\n\r\n & > span {\r\n position: relative;\r\n }\r\n\r\n & > span::after {\r\n ${transition('transform')}\r\n\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n display: block;\r\n background: var(--fgColor, ${brand.base.blue});\r\n height: 2px;\r\n transform: scaleX(0);\r\n transform-origin: center left;\r\n width: 100%;\r\n }\r\n\r\n svg {\r\n ${transition('transform')}\r\n\r\n display: block;\r\n color: var(--accentColor, ${brand.primary.orange});\r\n margin-left: 8px;\r\n width: 17px;\r\n }\r\n\r\n &:not(span):focus-visible,\r\n &:not(span).focus-ring,\r\n &:not(span):hover {\r\n & > span::after {\r\n transform: scaleX(1);\r\n }\r\n }\r\n\r\n &:not(span).focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n outline-color: var(--fgColor, ${brand.base.blue});\r\n }\r\n\r\n &[data-has-arrow='true']:not(span):focus-visible,\r\n &[data-has-arrow='true']:not(span):hover {\r\n svg {\r\n transform: translateX(${fluid(8, 12)});\r\n }\r\n }\r\n\r\n a:focus-visible span&,\r\n a:hover span&,\r\n button:focus-visible span&,\r\n button:hover span& {\r\n & > span::after {\r\n transform: scaleX(1);\r\n }\r\n }\r\n\r\n a:focus-visible span[data-has-arrow='true']&,\r\n a:hover span[data-has-arrow='true']&,\r\n button:focus-visible span[data-has-arrow='true']&,\r\n button:hover span[data-has-arrow='true']& {\r\n svg {\r\n transform: translateX(${fluid(8, 12)});\r\n }\r\n }\r\n`;\r\nconst CtaLinkStyles = {\r\n Container,\r\n};\r\nexport default CtaLinkStyles;\r\n","import { getButtonIcon } from '@helpers/getButtonIcon';\r\nimport SvgArrowRight from '@img/icons/arrow-right.svg';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './CtaLink.styles';\r\nconst CtaLink = ({ as = 'a', hasArrow = true, icon, children, ...props }) => {\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Container, { as: as, \"data-has-arrow\": !icon && hasArrow, ...props },\r\n React.createElement(\"span\", null, children),\r\n icon ? getButtonIcon(icon) : React.createElement(React.Fragment, null, hasArrow && React.createElement(SvgArrowRight, null)))));\r\n};\r\nexport default CtaLink;\r\n","import { getButtonIcon, isButtonIcon } from '@helpers/getButtonIcon';\r\nimport { imageUrl } from '@helpers/image';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from '../Button/Button.styles';\r\nconst LinkButton = ({ buttonSize = 'default', buttonType = 'orange-solid', children, fillDirection = 'right', icon, iconOnly, iconPosition = 'left', ...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-size\": buttonSize, \"data-type\": buttonType, ...otherProps },\r\n React.createElement(S.Text, null, children),\r\n icon && (React.createElement(S.IconWrapper, null, isButtonIcon(icon) ? (getButtonIcon(icon)) : (React.createElement(S.ButtonImage, { src: imageUrl(icon, {}), alt: icon.altText, loading: \"lazy\" })))))));\r\n};\r\nexport default LinkButton;\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 { imageCoverContainer, imageWrapperPreserveRatio } from '@helpers/image';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport scrollbars from '@helpers/scrollbars';\r\nimport { contentStyles, headingStyles, paragraphMicro, paragraphSmall } from '@helpers/typography';\r\nimport CtaLinkStyles from '@stories/Components/Buttons/CtaLink/CtaLink.styles';\r\nimport Image from '@stories/Components/Misc/Image/Image';\r\nimport { m } from 'framer-motion';\r\nimport { rgba } from 'polished';\r\nimport styled from 'styled-components';\r\nconst Container = styled.article `\r\n --shadowColour: rgba(0, 0, 0, 0.05);\r\n --gridColumns: 12fr 10fr;\r\n\r\n scroll-margin: var(--scrollOffset, 0px) 0 0;\r\n\r\n &[data-category='lcci-event'] {\r\n --categoryColor: ${brand.primary.orange};\r\n }\r\n\r\n &[data-category='lcci-partner'] {\r\n --categoryColor: ${brand.secondary.lightBlue};\r\n }\r\n\r\n &[data-category='member-run'] {\r\n --categoryColor: ${brand.tag.press};\r\n }\r\n\r\n &[data-has-affiliates='false'] {\r\n position: relative;\r\n display: grid;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n grid-template-columns: var(--gridColumns);\r\n }\r\n }\r\n`;\r\nconst Inner = styled.div `\r\n position: relative;\r\n overflow: hidden;\r\n padding: ${fluid(16, 24)} ${fluid(12, 32)} ${fluid(16, 24)} ${fluid(15, 40)};\r\n border-radius: 10px;\r\n box-shadow: -0.1px 1px 1.1px var(--shadowColour), -0.2px 2.7px 3px -0.8px var(--shadowColour),\r\n -0.4px 6.3px 7.1px -1.7px var(--shadowColour), -0.9px 5px 16.9px -2.5px var(--shadowColour);\r\n\r\n ${Container}[data-has-affiliates='true'] & {\r\n display: grid;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n grid-template-columns: var(--gridColumns);\r\n grid-template-rows: auto 1fr;\r\n }\r\n }\r\n\r\n &::before {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: ${fluid(3, 8)};\r\n height: 100%;\r\n background-color: var(--categoryColor, ${brand.primary.orange});\r\n }\r\n`;\r\nconst ContentWrapper = styled.div `\r\n @media ${from(Device.TabletLarge)} {\r\n ${Container}[data-has-affiliates='true'] & {\r\n padding-right: ${fluid(12, 32)};\r\n }\r\n }\r\n`;\r\nconst SummaryContainer = styled.div `\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n gap: 18px 16px;\r\n margin: 0 0 ${fluid(24, 32)} calc(${fluid(12, 32)} * -1);\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n`;\r\nconst CategoryTag = styled.span `\r\n ${fonts.apparat.semiBold};\r\n\r\n background-color: var(--categoryColor, ${brand.primary.orange});\r\n color: ${brand.white};\r\n padding: ${fluid(6, 12)} ${fluid(16, 32)};\r\n border-radius: 0 10px 10px 0;\r\n font-size: ${fluid(16, 18)};\r\n line-height: ${fluid(26, 28)};\r\n text-transform: uppercase;\r\n white-space: nowrap;\r\n`;\r\nconst EventTags = styled.div `\r\n display: flex;\r\n flex-wrap: wrap;\r\n padding-left: ${fluid(12, 32)};\r\n gap: ${fluid(6, 16)};\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n padding-left: 0;\r\n }\r\n`;\r\nconst EventTag = styled.span `\r\n ${paragraphMicro};\r\n\r\n margin: 0;\r\n padding: ${fluid(3, 5)} 16px;\r\n text-transform: uppercase;\r\n border-radius: 5px;\r\n background-color: var(--etBgColour, transparent);\r\n color: var(--etFgColour, ${brand.base.blue});\r\n border: 1px solid var(--etBorderColour, ${brand.base.blue});\r\n white-space: nowrap;\r\n\r\n &:nth-child(1) {\r\n --etBgColour: ${brand.primary.blueGrey};\r\n --etBorderColour: ${brand.primary.blueGrey};\r\n }\r\n\r\n &:nth-child(2) {\r\n --etBgColour: ${brand.primary.blue};\r\n --etBorderColour: ${brand.primary.blue};\r\n --etFgColour: ${brand.white};\r\n }\r\n`;\r\nconst Title = styled.h3 `\r\n ${headingStyles};\r\n\r\n font-size: ${fluid(18, 26)};\r\n line-height: ${fluid(28, 36)};\r\n margin: 0 0 24px;\r\n`;\r\nconst Details = styled.div `\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: ${fluid(28, 32)} ${fluid(36, 48)};\r\n margin: 0 0 ${fluid(28, 40)};\r\n`;\r\nconst Detail = styled(m.span) `\r\n &[data-type='overview'] {\r\n flex: 0 0 100%;\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n &[data-type='venue'] {\r\n flex: 1 1;\r\n }\r\n }\r\n`;\r\nconst Label = styled.h4 `\r\n ${fonts.apparat.semiBold};\r\n\r\n font-size: ${fluid(12, 14)};\r\n line-height: ${fluid(22, 26)};\r\n margin: 0 0 12px;\r\n opacity: 0.5;\r\n`;\r\nconst Info = styled.div `\r\n ${paragraphSmall};\r\n\r\n margin: 0;\r\n\r\n time {\r\n display: block;\r\n }\r\n`;\r\nconst Overview = styled(m.div) `\r\n --lineHeight: ${fluid(26, 28)};\r\n\r\n ${contentStyles};\r\n\r\n margin: 0;\r\n\r\n p,\r\n li {\r\n font-size: ${fluid(16, 18)};\r\n line-height: var(--lineHeight);\r\n }\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n ${transition('max-height', 1)};\r\n\r\n overflow: hidden;\r\n\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n height: auto !important;\r\n }\r\n`;\r\nconst ReadMore = styled.div `\r\n ${transition('opacity')};\r\n\r\n visibility: hidden;\r\n opacity: 0;\r\n width: 100%;\r\n margin: 22px 0 0;\r\n\r\n &[data-visible='true'] {\r\n opacity: 1;\r\n visibility: visible;\r\n }\r\n\r\n ${CtaLinkStyles.Container}[data-has-arrow='false'] {\r\n svg {\r\n ${transition('transform')};\r\n\r\n width: 12px;\r\n }\r\n\r\n &:focus-visible,\r\n &:hover {\r\n svg {\r\n transform: translateY(3px);\r\n }\r\n }\r\n }\r\n\r\n &[data-expanded='true'] {\r\n ${CtaLinkStyles.Container}[data-has-arrow='false'] {\r\n svg {\r\n ${transition('transform')};\r\n\r\n transform: rotate(180deg);\r\n }\r\n\r\n &:focus-visible,\r\n &:hover {\r\n svg {\r\n transform: rotate(180deg) translateY(3px);\r\n }\r\n }\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n display: none;\r\n }\r\n`;\r\nconst Cost = styled.div `\r\n display: flex;\r\n gap: ${fluid(12, 16)};\r\n padding: ${fluid(8, 10)};\r\n border-radius: 10px;\r\n background-color: ${brand.secondary.blueGrey};\r\n margin: 0 0 ${fluid(28, 40)};\r\n`;\r\nconst CostIcon = styled.div `\r\n ${fonts.apparat.semiBold};\r\n\r\n display: inline-flex;\r\n align-items: center;\r\n border-radius: 10px;\r\n font-size: ${fluid(12, 14)};\r\n color: ${brand.white};\r\n background-color: ${brand.primary.blue};\r\n padding: ${fluid(24, 40)} ${fluid(12, 16)};\r\n`;\r\nconst CostContent = styled.div `\r\n ${contentStyles};\r\n\r\n margin: ${fluid(10, 14)} 0;\r\n\r\n p {\r\n ${paragraphSmall};\r\n\r\n margin-bottom: ${fluid(8, 12)};\r\n }\r\n`;\r\nconst ButtonWrapper = styled.div `\r\n display: flex;\r\n gap: 12px ${fluid(24, 32)};\r\n flex-wrap: wrap;\r\n margin: ${fluid(28, 40)} 0 0;\r\n`;\r\nconst Img = styled(Image) `\r\n ${imageCoverContainer()};\r\n\r\n &[data-is-full='true'] {\r\n filter: blur(2px);\r\n -webkit-filter: blur(2px);\r\n }\r\n`;\r\nconst AffiliatesWrapper = styled.div `\r\n @media ${until(Device.TabletLarge)} {\r\n padding-top: 16px;\r\n margin-top: 24px;\r\n border-top: 1px solid ${brand.primary.blueGrey};\r\n\r\n ${ReadMore} {\r\n margin: 0 0 22px;\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n grid-row: 1 / span 2;\r\n grid-column: 2;\r\n\r\n ${ReadMore} {\r\n display: none;\r\n }\r\n\r\n &[data-limited='true'] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n }\r\n\r\n ${Label} {\r\n margin-bottom: ${fluid(12, 16)};\r\n }\r\n`;\r\nconst Affiliates = styled.div `\r\n --affiliateGap: ${fluid(16, 48)};\r\n\r\n display: grid;\r\n gap: var(--affiliateGap);\r\n\r\n @media ${until(Device.TabletLarge)} {\r\n ${transition('max-height', 1)};\r\n\r\n max-height: 500px;\r\n overflow: hidden;\r\n\r\n &[data-expanded='false'] {\r\n max-height: 0;\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n grid-template-columns: repeat(2, 1fr);\r\n\r\n ${AffiliatesWrapper}[data-limited='true'] & {\r\n display: flex;\r\n margin-bottom: 32px;\r\n\r\n > div {\r\n flex: 0 0\r\n calc(var(--count) * 25% - ((var(--affiliateGap, 0px) * 0.75) * (var(--count) - 1)));\r\n }\r\n\r\n > div:not(:has(a:nth-child(2))) {\r\n flex: 0 0 calc(var(--count) * 25% - ((var(--affiliateGap, 0px) * 0.75) * 1));\r\n }\r\n }\r\n }\r\n`;\r\nconst AffiliateGrid = styled.div `\r\n ${scrollbars};\r\n\r\n --gap: ${fluid(10, 16)};\r\n\r\n display: flex;\r\n gap: var(--gap);\r\n overflow: auto;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n flex-wrap: wrap;\r\n overflow: hidden;\r\n }\r\n\r\n ${Img} {\r\n object-fit: contain;\r\n width: 90%;\r\n height: 90%;\r\n top: 5%;\r\n left: 5%;\r\n }\r\n`;\r\nconst Affiliate = styled.a `\r\n ${imageWrapperPreserveRatio(210, 117)};\r\n\r\n display: block;\r\n border: 1px solid ${brand.primary.blueGrey};\r\n color: currentColor;\r\n flex: 0 0 124px;\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n\r\n &.focus-ring,\r\n &:hover {\r\n ${Img} {\r\n transform: scale(1.05);\r\n }\r\n }\r\n\r\n ${Img} {\r\n ${transition('transform')};\r\n }\r\n\r\n /* Mobile click styles - button should mimic press */\r\n @media ${until(Device.TabletLarge)} {\r\n ${transition('transform')};\r\n\r\n &:active {\r\n transform: translateY(1.5px);\r\n }\r\n }\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n flex: 0 0 calc(50% - (var(--gap) / 2));\r\n\r\n ${AffiliatesWrapper}[data-limited='true'] & {\r\n flex: 0 0 calc(100% / var(--count) - (var(--gap, 0px) * ((var(--count) - 1) / var(--count))));\r\n }\r\n }\r\n`;\r\nconst ImageWrapper = styled.div `\r\n display: none;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n display: flex;\r\n\r\n ${AffiliatesWrapper} & {\r\n margin: auto 0;\r\n }\r\n }\r\n`;\r\nconst ImageRatio = styled.div `\r\n ${imageWrapperPreserveRatio(740, 494)};\r\n\r\n margin: auto 0;\r\n border-radius: 0 10px 10px 0;\r\n\r\n ${AffiliatesWrapper} & {\r\n border-radius: 10px;\r\n }\r\n`;\r\nconst BookedOverlay = styled.div `\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background-color: ${rgba(brand.primary.blue, 0.5)};\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 16px;\r\n z-index: 1;\r\n`;\r\nconst BookedInner = styled.div `\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n text-align: center;\r\n background-color: ${brand.primary.blueGrey};\r\n width: ${fluid(200, 300)};\r\n height: ${fluid(200, 300)};\r\n border-radius: 50%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n padding: ${fluid(15, 30)};\r\n`;\r\nconst BookedTitle = styled.h4 `\r\n ${fonts.apparat.bold};\r\n text-transform: uppercase;\r\n margin-bottom: 0px; \r\n font-size: ${fluid(18, 20)};\r\n line-height: ${fluid(28, 30)};\r\n`;\r\nconst BookedText = styled.p `\r\n ${paragraphSmall};\r\n margin-bottom: 0;\r\n`;\r\nconst EventListingCardStyles = {\r\n Affiliate,\r\n AffiliateGrid,\r\n Affiliates,\r\n AffiliatesWrapper,\r\n BookedOverlay,\r\n BookedInner,\r\n BookedText,\r\n BookedTitle,\r\n ButtonWrapper,\r\n CategoryTag,\r\n Container,\r\n ContentWrapper,\r\n Cost,\r\n CostContent,\r\n CostIcon,\r\n Detail,\r\n Details,\r\n EventTag,\r\n EventTags,\r\n ImageRatio,\r\n ImageWrapper,\r\n Img,\r\n Info,\r\n Inner,\r\n Label,\r\n ReadMore,\r\n SummaryContainer,\r\n Title,\r\n Overview,\r\n};\r\nexport default EventListingCardStyles;\r\n","import { equalDates, formatDate, formatDateISO } from '@helpers/date';\r\nimport { getRetinaSrcs, imageUrl } from '@helpers/image';\r\nimport { useResize } from '@hooks/useResize';\r\nimport CtaLink from '@stories/Components/Buttons/CtaLink/CtaLink';\r\nimport LinkButton from '@stories/Components/Buttons/LinkButton/LinkButton';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './EventListingCard.styles';\r\nimport { withMotion } from '@hoc/withMotion';\r\nimport { useMediaQuery } from '@hooks/useMediaQuery';\r\nimport { linkAria } from '@helpers/utils';\r\nexport var EventLocationType;\r\n(function (EventLocationType) {\r\n EventLocationType[\"InPerson\"] = \"In-Person Event\";\r\n EventLocationType[\"Online\"] = \"Online Event\";\r\n EventLocationType[\"Training\"] = \"Training\";\r\n EventLocationType[\"Hybrid\"] = \"Hybrid\";\r\n EventLocationType[\"Webinar\"] = \"Webinar\";\r\n})(EventLocationType || (EventLocationType = {}));\r\nconst EventListingCard = (props) => {\r\n const hasAffiliates = !!props.affiliates && props.affiliates.length > 0;\r\n // Check if all categories only contain 1 affiliate\r\n const limitedAffiliates = hasAffiliates ? props.affiliates.flat().length <= 4 : false;\r\n const elementRef = React.useRef(null);\r\n const [showReadMore, setShowReadMore] = React.useState(false);\r\n const [expanded, setExpanded] = React.useState(false);\r\n const [expandedAffiliates, setExpandedAffiliates] = React.useState(false);\r\n const isMobile = useMediaQuery('(max-width: 1024px)');\r\n useResize({\r\n callback: readMoreCheck,\r\n debounce: 100,\r\n immediate: true,\r\n on: 'x',\r\n });\r\n return (React.createElement(S.Container, { \"data-category\": props.category, \"data-has-affiliates\": hasAffiliates, id: props.anchorId },\r\n React.createElement(S.Inner, null,\r\n React.createElement(S.SummaryContainer, null,\r\n React.createElement(S.CategoryTag, null, getCategoryTitle(props.category)),\r\n React.createElement(S.EventTags, null,\r\n props.location && React.createElement(S.EventTag, null, props.location),\r\n props.pricetag && React.createElement(S.EventTag, null, props.pricetag),\r\n props.spacesRemaining && React.createElement(S.EventTag, null, props.spacesRemaining))),\r\n React.createElement(S.ContentWrapper, null,\r\n React.createElement(S.Title, null, props.title),\r\n React.createElement(S.Details, null,\r\n React.createElement(S.Detail, null,\r\n React.createElement(S.Label, null, \"Date\"),\r\n !props.endDate || equalDates(props.date, props.endDate) ? (React.createElement(S.Info, { as: \"time\", dateTime: formatDateISO(props.date) }, formatDate(props.date, 'EEEE d LLLL yyyy'))) : (React.createElement(S.Info, null,\r\n React.createElement(\"time\", { dateTime: formatDateISO(props.date) },\r\n formatDate(props.date, 'EEEE d LLLL yyyy'),\r\n ' ',\r\n \"-\",\r\n ' '),\r\n React.createElement(\"time\", { dateTime: formatDateISO(props.endDate) }, formatDate(props.endDate, 'EEEE d LLLL yyyy'))))),\r\n props.time && (React.createElement(S.Detail, null,\r\n React.createElement(S.Label, null, \"Time\"),\r\n React.createElement(S.Info, null, props.time))),\r\n props.venue && (React.createElement(S.Detail, { \"data-type\": \"venue\" },\r\n React.createElement(S.Label, null, \"Venue\"),\r\n React.createElement(S.Info, null, props.venue))),\r\n props.overview && (React.createElement(S.Detail, { \"data-type\": \"overview\", animate: expanded ? 'open' : 'closed', initial: expanded ? 'open' : 'closed' },\r\n React.createElement(S.Label, null, \"Overview\"),\r\n React.createElement(S.Overview, { ref: elementRef, dangerouslySetInnerHTML: { __html: props.overview }, variants: {\r\n open: {\r\n height: 'auto',\r\n },\r\n closed: {\r\n height: isMobile ? 26 * 3 : 'auto',\r\n },\r\n }, transition: { ease: [0.45, 0.01, 0.1, 1] } }),\r\n React.createElement(S.ReadMore, { \"data-expanded\": expanded, \"data-visible\": showReadMore },\r\n React.createElement(CtaLink, { as: \"button\", onClick: () => {\r\n setExpanded(!expanded);\r\n }, icon: \"chevron-down\" },\r\n \"Read \",\r\n expanded ? 'Less' : 'More'))))),\r\n props.cost && (React.createElement(S.Cost, null,\r\n React.createElement(S.CostIcon, null, \"\\u00A3\"),\r\n React.createElement(S.CostContent, { dangerouslySetInnerHTML: { __html: props.cost } }))),\r\n props.categoryTags && props.categoryTags.length > 0 ? (React.createElement(S.Info, { dangerouslySetInnerHTML: { __html: props.categoryTags.join(' | ') } })) : null,\r\n props.url || props.bookingUrl ? (React.createElement(S.ButtonWrapper, null,\r\n props.bookingUrl && (React.createElement(LinkButton, { buttonType: \"blue-solid\", \"aria-label\": linkAria(props.bookingUrl ?? '', '_blank', props.translations && props.translations['lcci.link.newtab']), href: props.bookingUrl, target: \"_blank\" }, props.bookingButtonText ?? \"Book Now\")),\r\n props.url && React.createElement(CtaLink, { href: props.url }, \"Learn More\"))) : null),\r\n hasAffiliates ? (React.createElement(S.AffiliatesWrapper, { \"data-limited\": limitedAffiliates },\r\n React.createElement(S.ReadMore, { \"data-expanded\": expandedAffiliates, \"data-visible\": true },\r\n React.createElement(CtaLink, { as: \"button\", onClick: () => {\r\n setExpandedAffiliates(!expandedAffiliates);\r\n }, icon: \"chevron-down\" },\r\n expandedAffiliates ? 'Hide' : 'See',\r\n \" Partners, Hosts and Sponsors\")),\r\n React.createElement(S.Affiliates, { \"data-expanded\": expandedAffiliates }, props.affiliates.map((affiliate) => (React.createElement(\"div\", { key: affiliate.id, style: { '--count': affiliate.items.length } },\r\n React.createElement(S.Label, null, affiliate.title),\r\n React.createElement(S.AffiliateGrid, null, affiliate.items.map((affiliate) => {\r\n const logoSrcs = getRetinaSrcs(affiliate.logo, 157, 210 / 117, {\r\n crop: 'pad',\r\n });\r\n return (React.createElement(FocusRing, { key: affiliate.id, focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Affiliate, { href: affiliate.cta.url, target: affiliate.cta.target, \"aria-label\": linkAria(affiliate.cta.text ?? '', affiliate.cta.target, props.translations && props.translations['lcci.link.newtab']) },\r\n React.createElement(S.Img, { src: logoSrcs[0].split(' ')[0], srcSet: logoSrcs.join(','), alt: affiliate.logo.altText ?? affiliate.cta.text, loading: 'lazy' }))));\r\n })))))),\r\n limitedAffiliates && renderImage())) : null),\r\n !hasAffiliates && renderImage()));\r\n function readMoreCheck() {\r\n if (elementRef.current) {\r\n setShowReadMore(elementRef.current.scrollHeight > elementRef.current.getBoundingClientRect().height);\r\n }\r\n }\r\n function renderImage() {\r\n return (React.createElement(S.ImageWrapper, null,\r\n React.createElement(S.ImageRatio, null,\r\n React.createElement(S.Img, { src: imageUrl(props.image, {}), alt: props.image.altText, loading: 'lazy', \"data-is-full\": props.spacesRemaining === 'Fully Booked' }),\r\n props.spacesRemaining === 'Fully Booked' && (React.createElement(S.BookedOverlay, null,\r\n React.createElement(S.BookedInner, null,\r\n React.createElement(S.BookedTitle, null, props.translations?.['listings.viewEvents.card.fullybookedtitle'])))))));\r\n }\r\n};\r\nexport function getCategoryTitle(category) {\r\n switch (category) {\r\n default:\r\n case 'lcci-event':\r\n return 'LCCI Event';\r\n case 'lcci-partner':\r\n return 'LCCI Partner Event';\r\n case 'member-run':\r\n return 'Member Run Event';\r\n }\r\n}\r\nexport default withMotion(EventListingCard);\r\n"],"names":["_path","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","xmlns","viewBox","d","fill","formatDateISO","value","ensureDate","toISOString","formatDate","formatString","date","format","Date","getDateDiff","start","end","diff","a","b","utc1","UTC","getFullYear","getMonth","getDate","utc2","Math","floor","calculateDiffInDays","years","year_text","months","days","equalDates","startDate","endDate","sd","ed","toDateString","useMediaQuery","query","getMatches","window","matchMedia","matches","setMatches","useState","handleChange","useEffect","addEventListener","removeEventListener","Container","styled","ButtonReset","brand","fonts","fluid","until","Device","transition","as","hasArrow","icon","children","React","FocusRing","focusRingClass","S","getButtonIcon","SvgArrowRight","buttonSize","buttonType","fillDirection","iconOnly","iconPosition","otherProps","isButtonIcon","src","imageUrl","alt","altText","loading","from","Inner","ContentWrapper","SummaryContainer","CategoryTag","EventTags","EventTag","paragraphMicro","Title","headingStyles","Details","Detail","m","Label","Info","paragraphSmall","Overview","contentStyles","ReadMore","CtaLinkStyles","Cost","CostIcon","CostContent","ButtonWrapper","Img","Image","imageCoverContainer","AffiliatesWrapper","Affiliates","AffiliateGrid","scrollbars","Affiliate","imageWrapperPreserveRatio","ImageWrapper","ImageRatio","BookedOverlay","rgba","BookedInner","BookedTitle","BookedText","EventLocationType","getCategoryTitle","category","withMotion","hasAffiliates","affiliates","limitedAffiliates","flat","elementRef","showReadMore","setShowReadMore","expanded","setExpanded","expandedAffiliates","setExpandedAffiliates","isMobile","useResize","callback","current","scrollHeight","getBoundingClientRect","height","debounce","immediate","on","id","anchorId","location","pricetag","spacesRemaining","title","dateTime","time","venue","overview","animate","initial","ref","dangerouslySetInnerHTML","__html","variants","open","closed","ease","CtaLink","onClick","cost","categoryTags","join","url","bookingUrl","LinkButton","linkAria","translations","href","bookingButtonText","map","affiliate","style","items","logoSrcs","getRetinaSrcs","logo","crop","cta","text","split","srcSet","renderImage","image"],"sourceRoot":""}