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BC,KAAMzC,EAAMyC,IAAI,CAChBC,MAAO1C,EAAM0C,KAAK,CAClBC,QAAS3C,EAAM2C,OAAO,EACb","sources":["webpack://_N_E/../design-system/src/components/primitives/link/link.tsx","webpack://_N_E/../design-system/src/utils/external.ts","webpack://_N_E/../design-system/src/components/primitives/article-tease/article-tease.scss?d891","webpack://_N_E/../design-system/src/components/primitives/article-tease/article-tease.tsx","webpack://_N_E/../design-system/src/utils/theme.ts"],"sourcesContent":["import { EditAttributes } from \"design-system/types/types\";\nimport { DataLayerEvent } from \"frontend/hooks/use-data-layer\";\nimport { AnchorHTMLAttributes, forwardRef, MouseEventHandler } from \"react\";\n\nexport interface DataOptions {\n parentTitle?: string;\n programName?: string;\n imageTitle?: string;\n searchTerm?: string;\n position?: number;\n searchCategory?: string;\n}\n\nexport interface LinkProps extends AnchorHTMLAttributes {\n editAttributes?: EditAttributes;\n dataLayer?: DataLayerEvent;\n dataParentTitle?: string;\n onClick?: MouseEventHandler;\n}\n\nexport const Link = forwardRef(\n (\n {\n href,\n target,\n children,\n className,\n rel,\n onClick,\n editAttributes,\n dataLayer,\n ...props\n },\n ref,\n ) => {\n if (!target) target = \"_blank\";\n\n if (href?.startsWith(\"/\") || href?.includes(\".hbs.edu\")) {\n if (href.includes(\"webassets.hbs.edu\")) target = \"_blank\";\n else target = \"_self\";\n }\n\n const handleOnClick: MouseEventHandler = (event) => {\n /* eslint-disable camelcase */\n if (\n dataLayer?.event_data.explore_search &&\n !dataLayer.event_data.explore_search_info_box_clicked\n ) {\n const title = typeof children === \"string\" ? children.trim() : \"\";\n dataLayer.event_data.explore_search_info_box_clicked = title;\n }\n /* eslint-enable camelcase */\n if (onClick) {\n // pushDataLayer gets called at the parent layer to prevent double firing\n onClick(event);\n }\n };\n\n return (\n // eslint-disable-next-line react/forbid-elements\n \n {children}\n \n );\n },\n);\n","/**\n * A link is external if host does not contain hbs.edu.\n */\nexport function isExternalLink(href: string): boolean {\n if (!href) {\n return false;\n }\n\n try {\n const url = new URL(href);\n return !url.host.endsWith(\"hbs.edu\");\n } catch (error) {\n return false;\n }\n}\n","// extracted by mini-css-extract-plugin","import \"./article-tease.scss\";\n\nimport cn from \"clsx\";\nimport { MouseEventHandler, ReactNode } from \"react\";\nimport { MediaAsset } from \"design-system/components/primitives/media-asset/media-asset\";\nimport { MediaAssetImageProps } from \"design-system/components/primitives/media-asset/media-asset-image\";\nimport { MediaAssetVideoProps } from \"design-system/components/primitives/media-asset/media-asset-video\";\nimport { KalturaEmbedProps } from \"design-system/components/primitives/kaltura-embed/kaltura-embed\";\nimport {\n Byline,\n BylineProps,\n} from \"design-system/components/primitives/byline/byline\";\nimport {\n EditAttributes,\n TeaseContext,\n TeaseStyle,\n} from \"design-system/types/types\";\nimport { Icon } from \"design-system/components/icons/icon\";\nimport {\n ExpandedPalette,\n expandedPalette,\n Theme,\n} from \"design-system/utils/theme\";\nimport { isExternalLink } from \"design-system/utils/external\";\nimport { Link } from \"../link/link\";\n\nexport interface ArticleMultiLinkProps {\n title: string;\n link: string;\n}\n\nexport interface DownloadLinkProps {\n label?: string;\n link?: string;\n}\n\nexport interface ArticleTeaseProps {\n type: \"Article\";\n color?: ExpandedPalette;\n customColor?: string;\n byline?: BylineProps;\n overline?: {\n label?: string;\n link?: string;\n };\n image?: MediaAssetImageProps;\n video?: MediaAssetVideoProps;\n kaltura?: KalturaEmbedProps;\n coverImage?: boolean;\n imageInset?: boolean;\n link?: string;\n multiLinks?: Array;\n ariaLabel?: string;\n tease?: ReactNode;\n title?: ReactNode;\n style?: TeaseStyle;\n theme?: Theme;\n isLogo?: boolean;\n isSmall?: boolean;\n showSource?: boolean;\n teaseContext?: TeaseContext;\n HeadingLevel?: \"h2\" | \"h3\" | \"h4\";\n variant?: string;\n onClick?: MouseEventHandler;\n downloadLink?: DownloadLinkProps;\n display?: unknown;\n\n editAttributes?: {\n url?: EditAttributes;\n title?: EditAttributes;\n description?: EditAttributes;\n };\n}\n\nfunction ArticleTeaseDesc({\n desc,\n editAttributes,\n}: {\n desc: ReactNode;\n editAttributes?: ArticleTeaseProps[\"editAttributes\"];\n}) {\n if (!desc) return null;\n\n if (typeof desc === \"string\") {\n return (\n \n );\n }\n\n return (\n
\n {desc}\n
\n );\n}\n\n/**\n * ## See it in use on...\n * - An [archive page](/story/example-pages-archive-pages-story-archive--story)\n *\n * - **`id: P-004-000-01`**\n */\nexport function ArticleTease({\n byline,\n color,\n overline,\n customColor,\n image,\n video,\n kaltura,\n coverImage,\n imageInset,\n link,\n multiLinks,\n ariaLabel,\n tease,\n title,\n style = \"expanded\",\n theme,\n isLogo,\n isSmall,\n showSource,\n HeadingLevel = \"h2\",\n editAttributes,\n teaseContext,\n variant,\n onClick,\n downloadLink,\n}: ArticleTeaseProps) {\n const hasAsset = image || kaltura || video;\n const showOverline =\n (overline && style === \"expanded\") ||\n style === \"full\" ||\n style === \"text-only\";\n const showDesc = style === \"full\" || style === \"content\";\n const showByline = style !== \"content\";\n const isCard = style === \"content\" && !hasAsset;\n const isSmallTease = isSmall && style === \"content\";\n const textOnly = style === \"text-only\";\n const useNoImageFallback = !textOnly && !isCard && teaseContext === \"row\";\n const computedTheme = theme\n ? theme\n : useNoImageFallback && !hasAsset && !theme\n ? \"blue\"\n : \"unset\";\n\n let source;\n let host;\n let isExternal: boolean | undefined;\n\n if (link) {\n isExternal = isExternalLink(link);\n }\n\n const arrowClassNames = cn(\n \"hbs-article-tease__arrow-icon hbs-icon\",\n isExternal && \"hbs-article-tease__arrow-icon--external\",\n );\n\n const teaseColorStyle = customColor\n ? {\n backgroundColor: customColor,\n }\n : color\n ? {\n backgroundColor: expandedPalette[color],\n }\n : undefined;\n\n return (\n \n {!isCard && (\n <>\n {image && !textOnly && (\n
\n \n \n
\n )}\n\n {video && !textOnly && (\n \n \n \n )}\n\n {kaltura && !textOnly && (\n
\n \n
\n )}\n\n \n {showOverline && (\n \n {overline?.link ? (\n {overline.label}\n ) : (\n overline?.label\n )}\n \n )}\n\n \n {!link && title && (\n
{title}
\n )}\n\n {link && title && typeof title === \"string\" && (\n \n )}\n {link && title && typeof title !== \"string\" && (\n \n {title}\n \n )}\n \n\n {showDesc && tease && (\n \n )}\n\n {multiLinks && (\n
    \n {multiLinks.map((linkItem) => (\n \n \n {linkItem.title}\n \n \n ))}\n
\n )}\n\n {byline && showByline && (\n
\n \n
\n )}\n {showSource && source && link && host && !downloadLink && (\n
\n

From {host}

\n\n \n {source}\n \n
\n )}\n {downloadLink && (\n
\n \n {downloadLink.label}\n \n
\n )}\n \n \n )}\n\n {isCard && !isSmallTease && (\n \n \n {link ? (\n \n {title}\n \n ) : (\n title\n )}\n \n\n {showDesc && tease && (\n \n )}\n\n {link && (\n
\n \n
\n )}\n \n )}\n\n {isCard && isSmallTease && (\n \n
\n \n {link ? (\n \n {title}\n \n ) : (\n title\n )}\n \n {link && (\n
\n \n
\n )}\n
\n\n {showDesc && tease && (\n \n )}\n \n )}\n \n );\n}\n","export type Theme = keyof typeof theme;\nexport type ThemeValue = (typeof theme)[Theme];\n\nexport const theme = {\n light: \"#f6f4f2\",\n white: \"#ffffff\",\n dark: \"#222222\",\n black: \"#000000\",\n crimson: \"#a41034\",\n red: \"#e80538\",\n purple: \"#85609f\",\n blue: \"#aac8eb\",\n} as const;\n\nexport const themeOptions = Object.entries(theme).map(([key]) => key);\n\nexport type SimpleTheme = Exclude;\n\nexport const simpleTheme = Object.entries(theme).filter(\n ([key]) => ![\"purple\", \"blue\"].includes(key),\n);\nexport const simpleThemeOptions = simpleTheme.map(([key]) => key);\n\nexport type SiteHeaderTheme = Theme | \"plain-light\" | \"plain-dark\";\n\nexport const defaultPageSectionTheme = \"light\";\n\nexport function getThemeByValue(hexCode: ThemeValue): Theme {\n return (\n (Object.entries(theme).find(\n ([, value]) => value === hexCode,\n )?.[0] as Theme) || \"light\"\n );\n}\n\nexport type ExpandedPalette = keyof typeof expandedPalette;\nexport type ExpandedPaletteValue = (typeof expandedPalette)[ExpandedPalette];\n\nexport const expandedPalette = {\n crimson: theme.crimson,\n red2: theme.red,\n red3: \"#ED5541\",\n red4: \"#E0B2A7\",\n orange1: \"#AE6429\",\n orange2: \"#E87D1E\",\n orange4: \"#F7C76B\",\n yellow2: \"#EBCD00\",\n yellow3: \"#F3E44D\",\n green1: \"#026833\",\n green2: \"#52A52E\",\n green4: \"#B3D56A\",\n teal1: \"#006085\",\n teal3: \"#56BAB3\",\n teal4: \"#9BD6C4\",\n blue1: \"#3B2883\",\n blue3: \"#7FA4D1\",\n blue4: theme.blue,\n purple1: \"#57116A\",\n purple2: \"#80408D\",\n purple3: \"#9B7FAF\",\n purple4: \"#C6B2D1\",\n magenta1: \"#78244C\",\n magenta2: \"#C9006B\",\n magenta3: \"#D86199\",\n magenta4: \"#E599BA\",\n black: theme.black,\n dark: theme.dark,\n gray2: \"#68666F\",\n gray3: \"#A3A0A2\",\n gray4: \"#D5D0CA\",\n white: theme.white,\n light: theme.light,\n} as const;\n\n// Spot themes that are dark background with light text\nexport const paletteThemesOnDark: Array = [\n \"crimson\",\n \"red2\",\n \"orange1\",\n \"green1\",\n \"teal1\",\n \"blue1\",\n \"purple1\",\n \"purple2\",\n \"magenta1\",\n \"magenta2\",\n \"black\",\n \"dark\",\n \"gray2\",\n];\n\nexport const spotThemeOptions = Object.entries(expandedPalette).map(\n ([key]) => key,\n);\n\nexport const getSplitTopperTheme = (spotTheme: ExpandedPalette | undefined) =>\n spotTheme && paletteThemesOnDark.includes(spotTheme) ? \"dark\" : \"white\";\n\nexport const getLargeAssetTopperTheme = (\n spotTheme: ExpandedPalette | undefined,\n): SiteHeaderTheme => {\n if (spotTheme === \"red2\") return \"red\";\n if (spotTheme === \"blue4\") return \"blue\";\n if (spotTheme && themeOptions.includes(spotTheme)) {\n return spotTheme as SiteHeaderTheme;\n }\n return spotTheme && paletteThemesOnDark.includes(spotTheme)\n ? \"plain-dark\"\n : \"plain-light\";\n};\n\nexport type BackgroundColors = keyof typeof backgroundColors;\nexport type BackgroundColorsValue = (typeof backgroundColors)[BackgroundColors];\n\nexport const backgroundColors = {\n light: theme.light,\n white: theme.white,\n dark: theme.dark,\n black: theme.black,\n crimson: theme.crimson,\n} as const;\n\nexport const backgroundColorsOptions = Object.keys(backgroundColors);\n"],"names":["Link","forwardRef","ref","href","target","children","className","rel","onClick","editAttributes","dataLayer","props","startsWith","includes","a","handleOnClick","event_data","explore_search","explore_search_info_box_clicked","title","trim","event","isExternalLink","url","URL","host","endsWith","error","ArticleTeaseDesc","desc","p","description","dangerouslySetInnerHTML","__html","div","ArticleTease","source","isExternal","byline","color","overline","customColor","image","video","kaltura","coverImage","imageInset","link","multiLinks","ariaLabel","tease","style","theme","isLogo","isSmall","showSource","HeadingLevel","teaseContext","variant","downloadLink","hasAsset","showOverline","showDesc","isCard","isSmallTease","textOnly","useNoImageFallback","arrowClassNames","cn","teaseColorStyle","backgroundColor","expandedPalette","undefined","data-theme","computedTheme","aria-hidden","tabIndex","MediaAsset","mobileWidth","aria-label","span","label","ul","map","li","linkItem","showByline","Byline","disableLinks","Icon","name","light","white","dark","black","crimson","red","purple","blue","Object","entries","key","filter","defaultPageSectionTheme","red2","red3","red4","orange1","orange2","orange4","yellow2","yellow3","green1","green2","green4","teal1","teal3","teal4","blue1","blue3","blue4","purple1","purple2","purple3","purple4","magenta1","magenta2","magenta3","magenta4","gray2","gray3","gray4","getSplitTopperTheme","spotTheme","paletteThemesOnDark","themeOptions","keys"],"sourceRoot":"","ignoreList":[]}