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G,CAACC,EAAE,EAGtD,GAAAxD,EAAA7C,GAAA,EAAC4C,EAAAA,CACCY,MAAOA,EACPyB,QAASA,EACTvB,qBAAsBA,IANuC,IASnE,CAGF","sources":["webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row-tease.tsx","webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row.tsx","webpack://_N_E/../design-system/src/components/system/lazy-component/lazy-component.tsx","webpack://_N_E/./src/contentful/components/blocks/teases/content-tease.props.tsx","webpack://_N_E/./src/contentful/components/blocks/teases/tease-row-contents.contentful.tsx","webpack://_N_E/./src/contentful/lib/create-contentful-component.tsx","webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row-2-up.scss?52be","webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row-3-up.scss?f45f","webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row.scss?dd5a","webpack://_N_E/"],"sourcesContent":["import {\n ExtractLazyComponent,\n LazyComponent,\n} from \"design-system/components/system/lazy-component/lazy-component\";\nimport { TeaseStyle } from \"design-system/types/types\";\nimport { MouseEventHandler } from \"react\";\n\nexport type LazyTeaseRowTease = ExtractLazyComponent<\n | \"ArticleTease\"\n | \"BookTease\"\n | \"ParticipantStoryTease\"\n | \"PersonTease\"\n | \"PodcastTease\"\n | \"ProgramTease\"\n | \"QuoteTease\"\n>;\n\nexport interface TeaseRowTeaseProps {\n tease: LazyTeaseRowTease;\n teaseStyle?: TeaseStyle;\n headingLevel: string;\n showPhone?: boolean;\n showJobTitle?: boolean;\n articleImageInset?: boolean;\n onClick?: MouseEventHandler;\n}\n\nexport function TeaseRowTease({\n tease,\n teaseStyle,\n headingLevel,\n showPhone,\n showJobTitle,\n articleImageInset,\n}: TeaseRowTeaseProps) {\n if (!tease.props) return null;\n\n tease.props.style = teaseStyle;\n tease.props.HeadingLevel = headingLevel;\n\n if (tease.name === \"ArticleTease\") {\n tease.props.teaseContext = \"row\";\n tease.props.imageInset = articleImageInset || tease.props.imageInset;\n\n if (tease.props.image && !tease.props.isLogo && !tease.props.coverImage) {\n if (!tease.props.image.aspectRatio) {\n tease.props.image.aspectRatio = tease.props.imageInset ? \"1/1\" : \"3/2\";\n }\n }\n }\n\n if (tease.name === \"PersonTease\") {\n tease.props.isTeaseRow = true;\n tease.props.hidePhone = !showPhone;\n tease.props.hideJobTitle = !showJobTitle;\n }\n\n return (\n
  • \n \n
  • \n );\n}\n","import \"./tease-row.scss\";\nimport \"./tease-row-2-up.scss\";\nimport \"./tease-row-3-up.scss\";\n\nimport cn from \"clsx\";\nimport {\n Alignment,\n EditAttributes,\n TeaseStyle,\n} from \"design-system/types/types\";\nimport { ArticleTeaseProps } from \"design-system/components/primitives/article-tease/article-tease\";\nimport {\n ComponentHeader,\n ComponentHeaderProps,\n} from \"design-system/components/primitives/component-header/component-header\";\nimport { LazyTeaseRowTease, TeaseRowTease } from \"./tease-row-tease\";\n\nexport type TeaseRowWrap = \"wrap\" | \"no-wrap\";\n\nexport interface TeaseRowProps {\n align?: Alignment;\n className?: string;\n headerContent?: ComponentHeaderProps;\n teases?: Array;\n teaseStyle?: TeaseStyle;\n showPhone?: boolean;\n showJobTitle?: boolean;\n teasesPerRow?: string;\n wrap?: TeaseRowWrap;\n imagesInset?: boolean;\n HeadingLevel?: \"h2\" | \"h3\" | \"h4\";\n HeadingLevelTease?: \"h2\" | \"h3\" | \"h4\" | \"h5\";\n editAttributes?: {\n teases?: EditAttributes;\n };\n}\n\n/**\n * ## See it in use on...\n * - The [article kitchen sink page](/story/example-pages-article-pages-kitchen-sink--story)\n *\n * - **`id: CB-020-000-06`**\n * - **`data-region: cb__tease-row__article`**\n */\nexport function TeaseRow({\n align = \"wide\",\n className,\n headerContent,\n teases,\n teaseStyle,\n showPhone,\n showJobTitle,\n teasesPerRow,\n wrap = \"no-wrap\",\n imagesInset,\n HeadingLevel = \"h2\",\n HeadingLevelTease,\n editAttributes,\n}: TeaseRowProps) {\n if (!Array.isArray(teases)) teases = [];\n const rowUp = teasesPerRow || teases.length;\n\n const isMixedTeases =\n teases.some(\n (tease) => tease.props?.type === \"Article\" && tease.props.kaltura,\n ) &&\n teases.some(\n (tease) => tease.props?.type === \"Article\" && tease.props.image,\n );\n\n const wrapperClass = cn(\n `hbs-global-align-${align}`,\n \"hbs-component--tease-row\",\n );\n const teaseRowClass = cn(\n \"hbs-tease-row\",\n `hbs-tease-row--${rowUp}-up`,\n `hbs-tease-row--${wrap}`,\n isMixedTeases && \"hbs-tease-row--mixed-tease\",\n className,\n );\n\n let teaseType = teases[0]?.props?.type?.toLowerCase();\n\n // Show the Tease Row only if there's more than one tease for non-article/participant story teases\n if (\n teases.length < 2 &&\n teaseType !== \"article\" &&\n teaseType !== \"participantstory\" &&\n teaseType !== \"person\"\n ) {\n return null;\n }\n\n if (teaseType === \"article\") {\n const articleTease = teases[0]?.props as ArticleTeaseProps | undefined;\n // Small content tease variant allows for a single tease\n if (articleTease?.isLogo) {\n teaseType = \"logo\";\n } else if (articleTease?.kaltura) {\n teaseType = \"kaltura\";\n } else if (!articleTease?.byline) {\n teaseType = \"content\";\n }\n }\n\n if (teases.length < 3) {\n teases.forEach((tease) => {\n if (tease.props?.type === \"Article\" && tease.props?.kaltura) {\n tease.props.kaltura.withModal = false;\n }\n });\n }\n\n const dataRegion = `cb__tease-row__${teaseType}`;\n const headingLevelTease = HeadingLevelTease\n ? HeadingLevelTease\n : headerContent\n ? \"h3\"\n : \"h2\";\n\n return (\n
    \n
    \n {headerContent && (\n \n )}\n\n
      \n {teases.map((tease, i) => (\n \n ))}\n
    \n
    \n
    \n );\n}\n","import { Suspense } from \"react\";\nimport { ErrorBoundary } from \"design-system/components/system/error-boundary/error-boundary\";\nimport { useLazyComponents } from \"./use-lazy-components\";\nimport type {\n ComponentLibrary,\n ComponentLibraryProps,\n} from \"design-system/components\";\n\nexport type LazyComponentProps = ComponentLibraryProps;\nexport type ExtractLazyComponent = Extract<\n LazyComponentProps,\n { name: N }\n>;\n\nexport function LazyComponent({\n name,\n props,\n children,\n}: LazyComponentProps): JSX.Element | null {\n const { getLazyComponentByName } = useLazyComponents();\n\n const Component = getLazyComponentByName(name);\n\n if (Component) {\n return (\n \n \n {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}\n \n {children &&\n (Array.isArray(children) ? (\n \n ) : (\n \n ))}\n \n \n \n );\n }\n\n console.error(`ERROR: could not find lazy component ${name}`);\n\n return null;\n}\n\ninterface LazyComponentsProps {\n components?: Array;\n}\n\nexport function LazyComponents({ components }: LazyComponentsProps) {\n if (!components || !Array.isArray(components)) return null;\n\n return (\n <>\n {components.map((component, i) => (\n \n ))}\n \n );\n}\n","import { ContentTeaseEntry } from \"frontend/contentful/schema/primitives\";\nimport { ArticleTeaseProps } from \"design-system/components/primitives/article-tease/article-tease\";\nimport { createContentfulProps } from \"frontend/contentful/lib/create-contentful-props\";\nimport { createMediaAssetProps } from \"../../primitives/media-asset.props\";\nimport { RenderContentfulRichText } from \"../../utils/render-contentful-rich-text\";\nimport { useContentful } from \"frontend/hooks/use-contentful\";\n\nexport const createContentTeaseProps = createContentfulProps<\n ContentTeaseEntry,\n ArticleTeaseProps\n>(({ entry, createEditAttributes }) => {\n const { getEntryUrl, getEntry } = useContentful();\n const mediaAsset = createMediaAssetProps(entry.fields.media);\n\n // force 4:3 aspect ratio\n if (mediaAsset?.image) {\n mediaAsset.image.width = \"600px\";\n mediaAsset.image.height = \"450px\";\n }\n if (mediaAsset?.kaltura) {\n mediaAsset.kaltura.withModal = true;\n }\n\n return {\n type: \"Article\",\n title: (\n \n ),\n link: getEntryUrl(entry.fields?.link),\n ariaLabel: getEntry(entry.fields.link)?.fields.ariaLabel,\n tease: ,\n image: mediaAsset?.image,\n video: mediaAsset?.video,\n kaltura: mediaAsset?.kaltura,\n\n editAttributes: {\n title: createEditAttributes({ entry, fieldId: \"title\" }),\n tease: createEditAttributes({ entry: entry.fields.link, fieldId: \"url\" }),\n description: createEditAttributes({ entry, fieldId: \"description\" }),\n },\n };\n});\n","import { TeaseRowContentsEntry } from \"frontend/contentful/schema/blocks\";\nimport { ContentTeaseEntry } from \"frontend/contentful/schema/primitives\";\nimport { isContentType } from \"frontend/contentful/lib/is-content-type\";\nimport { TeaseRow } from \"design-system/components/blocks/tease-row/tease-row\";\nimport { createComponentHeaderProps } from \"frontend/contentful/components/primitives/component-header.props\";\nimport { createContentTeaseProps } from \"frontend/contentful/components/blocks/teases/content-tease.props\";\nimport { createContentfulComponent } from \"frontend/contentful/lib/create-contentful-component\";\nimport { useContentful } from \"frontend/hooks/use-contentful\";\nimport { LazyTeaseRowTease } from \"design-system/components/blocks/tease-row/tease-row-tease\";\nimport { Theme } from \"design-system/utils/theme\";\n\ninterface TeaseRowOptions {\n headerAbove?: boolean;\n}\n\nconst themeMap: Array = [\"red\", \"black\", \"blue\", \"crimson\", \"purple\"];\nconst ignoredThemeMap: Array = [\"dark\", \"light\", \"white\"];\n\nexport const ContentfulTeaseRowContents = createContentfulComponent<\n TeaseRowContentsEntry,\n TeaseRowOptions\n>(({ entry, options }) => {\n const { getEntries } = useContentful();\n\n const teases: Array = [];\n\n const headerAbove = options?.headerAbove ?? false;\n const headerContent = createComponentHeaderProps(entry.fields.header);\n\n getEntries(entry.fields.contentTeases)?.forEach((tease, i) => {\n if (isContentType(\"contentTease\", tease)) {\n const props = createContentTeaseProps(tease);\n\n if (props) {\n if (\n entry.fields.teaseThemeConsistent ||\n entry.fields.teaseThemeConsistent === undefined ||\n entry.fields.teaseThemeConsistent === null\n ) {\n props.theme = entry.fields.teaseTheme!;\n } else {\n if (\n !entry.fields.teaseTheme ||\n ignoredThemeMap.includes(entry.fields.teaseTheme)\n ) {\n props.theme = themeMap[i % themeMap.length];\n } else {\n const startingTheme = themeMap.indexOf(entry.fields.teaseTheme);\n props.theme = themeMap[(startingTheme + i) % themeMap.length];\n }\n }\n\n if (tease.fields.media) props.theme = undefined;\n if (entry.fields.teaseSize === \"small\") props.isSmall = true;\n\n teases.push({ name: \"ArticleTease\", props });\n }\n }\n });\n\n return (\n \n );\n});\n","import { ContentfulEntry, EntryRef } from \"frontend/contentful/schema/sys\";\nimport { useContentful } from \"frontend/hooks/use-contentful\";\nimport { ComponentType, ReactNode } from \"react\";\nimport { CreateEditAttributesFn } from \"./edit-attributes-factory\";\n\nexport interface ContentfulComponentProps<\n E extends ContentfulEntry,\n O = Record,\n> {\n entry: E;\n options: O | undefined;\n createEditAttributes: CreateEditAttributesFn;\n}\n\nexport type ContentfulComponent = (\n props: ContentfulComponentProps,\n) => ReactNode;\nexport interface ContentfulComponentRenderProps<\n E extends ContentfulEntry,\n O = void,\n> {\n entry?: EntryRef;\n options?: O;\n}\nexport type ContentfulFactoryComponent<\n E extends ContentfulEntry,\n O = void,\n> = ComponentType>;\n\nexport function createContentfulComponent(\n Component: ContentfulComponent,\n) {\n const ContentfulComponent: ContentfulFactoryComponent = ({\n entry: ref,\n options,\n }) => {\n const { getEntry, createEditAttributes } = useContentful();\n\n const entry = getEntry(ref);\n\n if (!entry?.fields || !entry?.metadata || !entry?.sys.id) return null;\n\n return (\n \n );\n };\n\n return ContentfulComponent;\n}\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin"],"names":["TeaseRowTease","param","tease","teaseStyle","headingLevel","showPhone","showJobTitle","articleImageInset","props","style","HeadingLevel","name","teaseContext","imageInset","image","isLogo","coverImage","aspectRatio","isTeaseRow","hidePhone","hideJobTitle","jsx_runtime","jsx","li","className","LazyComponent","TeaseRow","teases","align","headerContent","teasesPerRow","wrap","imagesInset","HeadingLevelTease","editAttributes","Array","isArray","rowUp","length","isMixedTeases","some","type","kaltura","wrapperClass","cn","concat","teaseRowClass","teaseType","toLowerCase","articleTease","byline","forEach","withModal","dataRegion","headingLevelTease","div","data-region","jsxs","section","ComponentHeader","ul","map","i","children","getLazyComponentByName","useLazyComponents","Component","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","ErrorBoundary","Suspense","LazyComponents","components","console","error","Fragment","component","createContentTeaseProps","createContentfulProps","entry","getEntry","createEditAttributes","getEntryUrl","useContentful","mediaAsset","createMediaAssetProps","fields","media","width","height","title","RenderContentfulRichText","document","disableParagraphs","link","ariaLabel","description","video","fieldId","themeMap","ignoredThemeMap","ContentfulTeaseRowContents","createContentfulComponent","getEntries","options","headerAbove","createComponentHeaderProps","header","contentTeases","isContentType","teaseThemeConsistent","undefined","theme","teaseTheme","includes","startingTheme","indexOf","teaseSize","isSmall","push","alignment","ref","metadata","sys","id"],"sourceRoot":""}