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3C,WAAEC,EAAU,gBAAEC,EAAe,MAAEC,GAAOH,EACxD,OAAKE,EAGGE,EAAAA,cAAoBC,EAAAA,UAAa,KACrCD,EAAAA,cAAoBC,EAAAA,MAAS,KAAMF,GACnCC,EAAAA,cAAoBC,EAAAA,aAAgB,KAAMH,EAAgBI,KAAKC,GAAcH,EAAAA,cAAoBC,EAAAA,KAAQ,CAAEG,IAAKD,EAASE,MACrHL,EAAAA,cAAoBC,EAAAA,SAAY,CAAEK,KAAO,GAAET,YAAqBM,EAASI,SACrEP,EAAAA,cAAoBC,EAAAA,KAAQ,CAAE,kBAAmBE,EAASK,OAASL,EAASE,YAN7E,IAMwF,C","sources":["webpack://hyve/./src/helpers/animate.ts","webpack://hyve/./src/helpers/brand.ts","webpack://hyve/./src/helpers/fluid.ts","webpack://hyve/./src/helpers/media.ts","webpack://hyve/./src/helpers/typography.ts","webpack://hyve/./src/stories/Components/CategoryList/CategoryList.styles.ts","webpack://hyve/./src/stories/Components/CategoryList/CategoryList.tsx"],"sourcesContent":["import { css } from 'styled-components';\r\nexport const rootMargin = '0px 0px -20% 0px';\r\nexport const cubicEaseOut = `cubic-bezier(0.33, 1, 0.68, 1)`;\r\nexport const shouldAnimate = (innerCss) => {\r\n return css `\r\n @media (prefers-reduced-motion: no-preference) {\r\n ${innerCss}\r\n }\r\n `;\r\n};\r\nexport const transition = (properties, duration = 0.35, timing = cubicEaseOut) => {\r\n return shouldAnimate(css `\r\n transition-duration: ${typeof duration === 'string' ? duration : `${duration}s`};\r\n transition-property: ${properties};\r\n transition-timing-function: ${timing};\r\n will-change: ${properties};\r\n `);\r\n};\r\n","import { hsl } from 'polished';\r\nexport default {\r\n /** Hex: #333333 */\r\n black: '#333333',\r\n /** Hex: #000 */\r\n fullBlack: '#000',\r\n /** Hex: #fff */\r\n white: '#fff',\r\n primary: {\r\n /** Hex: #FF1932 */\r\n red: '#FF1932',\r\n /** Hex: #D1D2D3 */\r\n grey: '#D1D2D3',\r\n },\r\n secondary: {\r\n /** Hex: #E6054B */\r\n red1: '#E6054B',\r\n /** Hex: #D20037 */\r\n red2: '#D20037',\r\n /** Hex: #B42855 */\r\n red3: '#B42855',\r\n /** Hex: #A00037 */\r\n red4: '#A00037',\r\n /** Hex: #87284B */\r\n red5: '#87284B',\r\n },\r\n buff: {\r\n /** Hex: #FEEFE0 */\r\n buff1: '#FEEFE0',\r\n /** Hex: #FFFFE6 */\r\n buff2: '#FFFFE6',\r\n /** Hex: #FFEBDC */\r\n buff3: '#FFEBDC',\r\n /** Hex: #FFB9A0 */\r\n buff4: '#FFB9A0',\r\n },\r\n tertiary: {\r\n /** Hex: #0476DC */\r\n blue: '#0476DC',\r\n /** Hex: #F4F6F8 */\r\n buff: '#F4F6F8',\r\n /** Hex: #509E7D */\r\n green: '#509E7D',\r\n /** Hex: #F1749B */\r\n pink: '#F1749B',\r\n /** Hex: #E3ACBB */\r\n pinkAlt: '#E3ACBB',\r\n /** Hex: #1F1031 */\r\n purple: '#1F1031',\r\n /** Hex: #593B91 */\r\n lightPurple: '#593B91',\r\n },\r\n theme: {\r\n /** Hex: #0476DC */\r\n blue: '#F4F6F8',\r\n /** Hex: #F4F6F8 */\r\n orange: '#FEEFE0',\r\n /** Hex: #509E7D */\r\n green: '#F1F7F5',\r\n /** Hex: #F1749B */\r\n pink: '#FAEEF1',\r\n },\r\n validation: {\r\n /** Hex: #DA291C */\r\n invalid: '#DA291C',\r\n /** Hex: #DA291C */\r\n valid: '#008C15',\r\n },\r\n grey: {\r\n /** Hex: #222222 */\r\n grey13: hsl(0, 0, 0.13),\r\n /** Hex: #585858 */\r\n grey20: hsl(0, 0, 0.2),\r\n /** Hex: #585858 */\r\n grey35: hsl(0, 0, 0.35),\r\n /** Hex: #666666 */\r\n grey40: hsl(0, 0, 0.4),\r\n /** Hex: #707070 */\r\n grey44: hsl(0, 0, 0.44),\r\n /** Hex: #999999 */\r\n grey60: hsl(0, 0, 0.6),\r\n /** Hex: #CCCCCC */\r\n grey80: hsl(0, 0, 0.8),\r\n /** Hex: #E5E5E5 */\r\n grey90: hsl(0, 0, 0.9),\r\n /** Hex: #F0F0F0 */\r\n grey94: hsl(0, 0, 0.94),\r\n /** Hex: #F7F7F7 */\r\n grey97: hsl(0, 0, 0.97),\r\n },\r\n};\r\n","import { Device } from './media';\r\n/**\r\n * Base pixel value for the \"rem\" unit.\r\n */\r\nexport const PIXELS_PER_REM = 16;\r\n/**\r\n * Default pixel value for the min width.\r\n */\r\nexport const DEFAULT_MIN_VALUE = Device.TabletSmall;\r\n/**\r\n * Default pixel value for the max width.\r\n */\r\nexport const DEFAULT_MAX_VALUE = Device.ActualDesktop;\r\n/**\r\n * Define a fluid value between the min/max values at the min/max widths.\r\n */\r\nexport function fluid(min, max, minWidth = DEFAULT_MIN_VALUE, maxWidth = DEFAULT_MAX_VALUE) {\r\n const minRem = min / PIXELS_PER_REM;\r\n const maxRem = max / PIXELS_PER_REM;\r\n const minWidthRem = minWidth / PIXELS_PER_REM;\r\n const maxWidthRem = maxWidth / PIXELS_PER_REM;\r\n const slope = (maxRem - minRem) / (maxWidthRem - minWidthRem);\r\n const yAxisIntersection = -minWidthRem * slope + minRem;\r\n const clampMin = `${round(minRem)}rem`;\r\n const clampVal = `${round(yAxisIntersection)}rem + ${round(slope * 100)}vw`;\r\n const clampMax = `${round(maxRem)}rem`;\r\n return `clamp(${clampMin}, ${clampVal}, ${clampMax})`;\r\n}\r\nexport function fluidAdjusted(min, max, minWidth = DEFAULT_MIN_VALUE, maxWidth = DEFAULT_MAX_VALUE) {\r\n const minRem = (min * 0.8) / PIXELS_PER_REM;\r\n const maxRem = (max * 0.8) / PIXELS_PER_REM;\r\n const minWidthRem = minWidth / PIXELS_PER_REM;\r\n const maxWidthRem = maxWidth / PIXELS_PER_REM;\r\n const slope = (maxRem - minRem) / (maxWidthRem - minWidthRem);\r\n const yAxisIntersection = -minWidthRem * slope + minRem;\r\n const clampMin = `${round(minRem)}rem`;\r\n const clampVal = `${round(yAxisIntersection)}rem + ${round(slope * 100)}vw`;\r\n const clampMax = `${round(maxRem)}rem`;\r\n return `clamp(${clampMin}, ${clampVal}, ${clampMax})`;\r\n}\r\n/**\r\n * Define a fluid value between the min/max values at the min/max widths.\r\n */\r\nexport function fluidUnit(min, max, unit, minWidth = DEFAULT_MIN_VALUE, maxWidth = DEFAULT_MAX_VALUE) {\r\n const slope = (max - min) / (maxWidth - minWidth);\r\n const yAxisIntersection = -minWidth * slope + min;\r\n const clampMin = `${round(min)}`;\r\n const clampVal = `${round(yAxisIntersection)}${unit} + ${round(slope * 100)}vw`;\r\n const clampMax = `${round(max)}`;\r\n return `clamp(${clampMin}${unit}, ${clampVal}, ${clampMax}${unit})`;\r\n}\r\n/**\r\n * Round to nearest hundredth.\r\n */\r\nfunction round(num) {\r\n return Math.round(num * 100) / 100;\r\n}\r\n","export var Device;\r\n(function (Device) {\r\n Device[Device[\"MobileSmall\"] = 320] = \"MobileSmall\";\r\n Device[Device[\"Mobile\"] = 375] = \"Mobile\";\r\n Device[Device[\"MobileLarge\"] = 480] = \"MobileLarge\";\r\n Device[Device[\"TabletSmall\"] = 568] = \"TabletSmall\";\r\n Device[Device[\"Tablet\"] = 768] = \"Tablet\";\r\n Device[Device[\"TabletLarge\"] = 1024] = \"TabletLarge\";\r\n Device[Device[\"TabletExtraLarge\"] = 1124] = \"TabletExtraLarge\";\r\n Device[Device[\"DesktopSmall\"] = 1280] = \"DesktopSmall\";\r\n Device[Device[\"Desktop\"] = 1366] = \"Desktop\";\r\n Device[Device[\"DesktopLarge\"] = 1600] = \"DesktopLarge\";\r\n Device[Device[\"ActualDesktop\"] = 1920] = \"ActualDesktop\";\r\n Device[Device[\"DesktopXL\"] = 2560] = \"DesktopXL\";\r\n})(Device || (Device = {}));\r\nexport function from(size) {\r\n return `(min-width: ${size}px)`;\r\n}\r\nexport function until(size) {\r\n return `(max-width: ${size - 1}px)`;\r\n}\r\nexport function between(start, end) {\r\n return `${from(start)} and ${until(end)}`;\r\n}\r\n","import { css } from 'styled-components';\r\nimport brand from './brand';\r\nimport { fluidAdjusted } from './fluid';\r\nimport { Device, from } from './media';\r\nexport const gradientStyle = css `\r\n display: inline-block;\r\n background: linear-gradient(90deg, var(--leftGradient), var(--rightGradient));\r\n -webkit-background-clip: text;\r\n -webkit-text-fill-color: transparent;\r\n`;\r\nexport const headingStyles = css `\r\n --leftGradient: ${brand.secondary.red5};\r\n --rightGradient: ${brand.secondary.red1};\r\n color: currentColor;\r\n margin: 0 0 ${fluidAdjusted(16, 18)};\r\n font-family: var(--fontFamily);\r\n font-weight: 900;\r\n padding-bottom: 7px;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n letter-spacing: -0.024em;\r\n }\r\n\r\n &::selection {\r\n -webkit-text-fill-color: currentColor;\r\n }\r\n`;\r\nexport const h1 = css `\r\n ${headingStyles};\r\n\r\n font-size: ${fluidAdjusted(32, 64)};\r\n line-height: ${fluidAdjusted(40, 74)};\r\n`;\r\nexport const h2 = css `\r\n ${headingStyles};\r\n font-size: ${fluidAdjusted(28, 48)};\r\n line-height: ${fluidAdjusted(36, 58)};\r\n`;\r\nexport const h3 = css `\r\n ${headingStyles};\r\n font-size: ${fluidAdjusted(24, 40)};\r\n line-height: ${fluidAdjusted(30, 50)};\r\n`;\r\nexport const h4 = css `\r\n ${headingStyles};\r\n font-size: ${fluidAdjusted(20, 36)};\r\n line-height: ${fluidAdjusted(26, 42)};\r\n`;\r\nexport const h5 = css `\r\n ${headingStyles};\r\n font-size: ${fluidAdjusted(18, 32)};\r\n line-height: ${fluidAdjusted(24, 40)};\r\n`;\r\nexport const h6 = css `\r\n ${headingStyles};\r\n font-size: ${fluidAdjusted(16, 24)};\r\n line-height: ${fluidAdjusted(20, 30)};\r\n`;\r\nexport const paragraphStyles = css `\r\n font-family: var(--fontFamily);\r\n color: currentColor;\r\n margin: 0 0 ${fluidAdjusted(14, 16)};\r\n font-weight: 300;\r\n`;\r\nexport const paragraphLarge = css `\r\n ${paragraphStyles};\r\n font-size: ${fluidAdjusted(18, 28)};\r\n line-height: ${fluidAdjusted(28, 44)};\r\n`;\r\nexport const paragraphMedium = css `\r\n ${paragraphStyles};\r\n font-size: ${fluidAdjusted(16, 22)};\r\n line-height: ${fluidAdjusted(26, 36)};\r\n`;\r\nexport const paragraphSmall = css `\r\n ${paragraphStyles};\r\n font-size: ${fluidAdjusted(15, 18)};\r\n line-height: ${fluidAdjusted(24, 28)};\r\n`;\r\nexport const paragraphExSmall = css `\r\n ${paragraphStyles};\r\n font-size: ${fluidAdjusted(13, 13)};\r\n line-height: ${fluidAdjusted(20, 20)};\r\n`;\r\nexport const paragraphTiny = css `\r\n ${paragraphStyles};\r\n font-size: ${fluidAdjusted(10, 10)};\r\n line-height: ${fluidAdjusted(16, 16)};\r\n`;\r\nconst CtaStyles = css `\r\n color: currentColor;\r\n margin: 0 0 ${fluidAdjusted(14, 16)};\r\n`;\r\nexport const CtaLarge = css `\r\n ${CtaStyles};\r\n font-size: ${fluidAdjusted(24, 28)};\r\n line-height: ${fluidAdjusted(28, 32)};\r\n`;\r\nexport const CtaMedium = css `\r\n ${CtaStyles};\r\n font-size: ${fluidAdjusted(20, 20)};\r\n line-height: ${fluidAdjusted(24, 24)};\r\n`;\r\nexport const CtaSmall = css `\r\n ${CtaStyles};\r\n font-size: ${fluidAdjusted(18, 18)};\r\n line-height: ${fluidAdjusted(22, 22)};\r\n`;\r\nexport const link = css `\r\n display: inline-block;\r\n color: ${brand.secondary.red5};\r\n text-decoration: underline;\r\n text-underline-offset: 3px;\r\n\r\n &:focus {\r\n outline: none;\r\n }\r\n\r\n &:focus,\r\n &:hover {\r\n color: ${brand.secondary.red1};\r\n text-decoration: none;\r\n }\r\n`;\r\nexport const table = css `\r\n background: ${brand.white};\r\n border-collapse: collapse;\r\n color: ${brand.black};\r\n margin-bottom: 1em;\r\n width: 100%;\r\n overflow: auto;\r\n display: block;\r\n\r\n thead {\r\n tr {\r\n background: ${brand.primary.red};\r\n\r\n td,\r\n th {\r\n border: 2px solid ${brand.white};\r\n color: ${brand.white};\r\n font-size: 18px;\r\n letter-spacing: -0.01em;\r\n line-height: 22px;\r\n padding: 12px 16px;\r\n text-align: left;\r\n }\r\n }\r\n }\r\n\r\n tbody {\r\n tr {\r\n &:nth-child(odd) {\r\n background: ${brand.white};\r\n }\r\n\r\n &:nth-child(even) {\r\n background: ${brand.grey.grey97};\r\n }\r\n\r\n th {\r\n border: 2px solid ${brand.white};\r\n color: ${brand.white};\r\n font-size: 18px;\r\n letter-spacing: -0.01em;\r\n line-height: 22px;\r\n padding: 12px 16px;\r\n text-align: left;\r\n }\r\n\r\n td {\r\n border: 2px solid ${brand.white};\r\n font-size: 16px;\r\n letter-spacing: -0.01em;\r\n line-height: 20px;\r\n padding: 12px 16px;\r\n text-align: left;\r\n }\r\n }\r\n }\r\n`;\r\nexport const blockquote = css `\r\n position: relative;\r\n ${paragraphMedium}\r\n text-align: left;\r\n`;\r\nexport const contentStyles = css `\r\n h1,\r\n .h1-styles {\r\n ${h1}\r\n }\r\n\r\n h2,\r\n .h2-styles {\r\n ${h2}\r\n }\r\n\r\n h3,\r\n .h3-styles {\r\n ${h3}\r\n }\r\n\r\n h4,\r\n .h4-styles {\r\n ${h4}\r\n }\r\n\r\n h5,\r\n .h5-styles {\r\n ${h5}\r\n }\r\n\r\n h6,\r\n .h6-styles {\r\n ${h6}\r\n }\r\n\r\n p {\r\n ${paragraphMedium}\r\n margin: 0 0 1em;\r\n }\r\n\r\n p.large {\r\n ${paragraphLarge}\r\n margin: 0 0 1em;\r\n }\r\n\r\n p.small {\r\n ${paragraphSmall}\r\n margin: 0 0 1em;\r\n }\r\n\r\n p.ex-small {\r\n ${paragraphExSmall}\r\n }\r\n\r\n p.tiny {\r\n ${paragraphTiny}\r\n }\r\n\r\n p.text-align-center {\r\n text-align: center;\r\n }\r\n\r\n p.text-align-right {\r\n text-align: right;\r\n }\r\n\r\n p.text-align-justify {\r\n text-align: justify;\r\n }\r\n\r\n a {\r\n ${link}\r\n }\r\n\r\n ol,\r\n ul {\r\n ${paragraphMedium};\r\n margin: 0 0 0.5em;\r\n\r\n li {\r\n margin: 0 0 0.33em;\r\n }\r\n }\r\n\r\n ol {\r\n list-style: decimal;\r\n padding-left: 1.2em;\r\n }\r\n\r\n ul {\r\n list-style: disc;\r\n padding-left: 1.2em;\r\n }\r\n\r\n hr {\r\n display: block;\r\n background: currentColor;\r\n border: 0;\r\n height: 4px;\r\n margin: ${fluidAdjusted(40, 80)} 0;\r\n padding: 0;\r\n width: 100%;\r\n }\r\n\r\n table {\r\n ${table};\r\n }\r\n\r\n blockquote {\r\n ${blockquote};\r\n }\r\n\r\n .responsive-table {\r\n position: relative;\r\n overflow-x: auto;\r\n }\r\n\r\n > *:first-child {\r\n margin-top: 0;\r\n }\r\n\r\n > *:last-child {\r\n margin-bottom: 0;\r\n }\r\n`;\r\n","import { transition } from '@helpers/animate';\r\nimport { fluidAdjusted } from '@helpers/fluid';\r\nimport { h6 } from '@helpers/typography';\r\nimport styled from 'styled-components';\r\nimport brand from '@helpers/brand';\r\nimport { darken, lighten } from 'polished';\r\nconst activeModifyAmount = 0.05;\r\nconst Container = styled.div ``;\r\nconst Title = styled.h3 `\r\n ${h6};\r\n font-size: ${fluidAdjusted(18, 24)};\r\n line-height: ${fluidAdjusted(22, 30)};\r\n`;\r\nconst CategoryList = styled.div `\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 16px;\r\n`;\r\nconst Item = styled.div `\r\n`;\r\nconst ItemLink = styled.a `\r\n ${transition('opacity')};\r\n text-decoration: none;\r\n display: inline-block;\r\n border-radius: 100000px;\r\n font-family: var(--fontFamily);\r\n font-size: 13px;\r\n line-height: 20px;\r\n font-weight: 600;\r\n letter-spacing: -0.024em;\r\n\r\n &:hover,\r\n &:focus {\r\n opacity: 0.6;\r\n }\r\n`;\r\nconst Pill = styled.div `\r\n margin: 0;\r\n font-weight: 600;\r\n font-size: ${fluidAdjusted(13, 13)};\r\n line-height: ${fluidAdjusted(20, 20)};\r\n letter-spacing: -0.024em;\r\n height: max-content;\r\n max-height: 100%;\r\n width: max-content;\r\n max-width: 100%;\r\n text-decoration: none;\r\n padding: 8px 20px 12px;\r\n border-radius: 100px;\r\n cursor: pointer;\r\n transition: background-color lightenAmount5s ease-in-out, color lightenAmount5s ease-in-out;\r\n user-select: none; \r\n border: none;\r\n\r\n --bg: ${brand.grey.grey90}; // Set a default //\r\n --bgActive: ${lighten(activeModifyAmount, brand.grey.grey90)};\r\n --fg: ${brand.white};\r\n\r\n &[data-background='black'] {\r\n --bg: ${brand.black};\r\n --bgActive: ${lighten(activeModifyAmount, brand.black)};\r\n }\r\n &[data-background='red2'] {\r\n --bg: ${brand.secondary.red2};\r\n --bgActive: ${darken(activeModifyAmount, brand.secondary.red2)};\r\n }\r\n &[data-background='red4'] {\r\n --bg: ${brand.secondary.red4};\r\n --bgActive: ${lighten(activeModifyAmount, brand.secondary.red4)};\r\n }\r\n &[data-background='red5'] {\r\n --bg: ${brand.secondary.red5};\r\n --bgActive: ${lighten(activeModifyAmount, brand.secondary.red5)};\r\n }\r\n &[data-background='green'] {\r\n --bg: ${brand.tertiary.green};\r\n --bgActive: ${lighten(activeModifyAmount, brand.tertiary.green)};\r\n }\r\n &[data-background='buff4'] {\r\n --bg: ${brand.buff.buff4};\r\n --fg: ${brand.black};\r\n --bgActive: ${darken(activeModifyAmount, brand.buff.buff4)};\r\n }\r\n &[data-background='blue'] {\r\n --bg: ${brand.tertiary.blue};\r\n --bgActive: ${lighten(activeModifyAmount, brand.tertiary.blue)};\r\n }\r\n &[data-background='lightPurple'] {\r\n --bg: ${brand.tertiary.lightPurple};\r\n --bgActive: ${lighten(activeModifyAmount, brand.tertiary.lightPurple)};\r\n }\r\n\r\n\r\n color: var(--fg);\r\n background-color: var(--bg);\r\n transition: all 0.1s ease-in-out;\r\n\r\n &:hover,\r\n &:active {\r\n background-color: var(--bgActive);\r\n }\r\n\r\n &:focus {\r\n opacity: 0.7;\r\n outline: auto;\r\n outline-offset: 3px;\r\n outline-style: solid;\r\n outline-width: 2px;\r\n }\r\n`;\r\nconst CategoryListStyles = {\r\n CategoryList,\r\n Container,\r\n Item,\r\n ItemLink,\r\n Pill,\r\n Title,\r\n};\r\nexport default CategoryListStyles;\r\n","import * as React from 'react';\r\nimport S from './CategoryList.styles';\r\nconst CategoryList = ({ allNewsUrl, categoryOptions, title }) => {\r\n if (!categoryOptions) {\r\n return null;\r\n }\r\n return (React.createElement(S.Container, null,\r\n React.createElement(S.Title, null, title),\r\n React.createElement(S.CategoryList, null, categoryOptions.map((category) => (React.createElement(S.Item, { key: category.text },\r\n React.createElement(S.ItemLink, { href: `${allNewsUrl}?filter=${category.value}` },\r\n React.createElement(S.Pill, { \"data-background\": category.color }, category.text))))))));\r\n};\r\nexport default CategoryList;\r\n"],"names":["transition","properties","duration","arguments","length","undefined","timing","innerCss","css","black","fullBlack","white","primary","red","grey","secondary","red1","red2","red3","red4","red5","buff","buff1","buff2","buff3","buff4","tertiary","blue","green","pink","pinkAlt","purple","lightPurple","theme","orange","validation","invalid","valid","grey13","hsl","grey20","grey35","grey40","grey44","grey60","grey80","grey90","grey94","grey97","PIXELS_PER_REM","DEFAULT_MIN_VALUE","Device","DEFAULT_MAX_VALUE","fluid","min","max","minRem","maxRem","minWidthRem","slope","yAxisIntersection","round","fluidAdjusted","fluidUnit","unit","minWidth","num","Math","from","size","until","between","start","end","gradientStyle","headingStyles","brand","h1","h2","h3","h4","h5","h6","paragraphStyles","paragraphLarge","paragraphMedium","paragraphSmall","paragraphExSmall","paragraphTiny","CtaStyles","CtaMedium","link","table","blockquote","contentStyles","activeModifyAmount","Container","styled","displayName","componentId","Title","CategoryList","Item","ItemLink","Pill","lighten","darken","_ref","allNewsUrl","categoryOptions","title","React","S","map","category","key","text","href","value","color"],"sourceRoot":""}