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AStC,MAAM,CAAC,CAI7D7B,EAAML,MAAM,CAAC4D,KAAK,GAAEnF,EAAMyG,KAAK,MAAGK,CAAAA,EACP,UAA3B7F,EAAMM,MAAM,CAACwF,SAAS,GAAc/G,EAAMgH,OAAO,EAAG,GAExDhE,EAAOiE,IAAI,CAAC,CAAElH,KAAM,qBAAgBC,CAAM,EAC5C,CACF,CACF,GAGE,UAAC+C,EAAAA,CAAQA,CAAAA,CACPC,OAAQA,EACRI,KAAMnC,EAAMM,MAAM,CAAC6B,IAAI,CAAG,OAAS,UACnCH,MAAOhC,EAAMM,MAAM,CAAC2F,SAAS,CAC7BrF,WAAY,UACZsB,aAAclC,EAAMM,MAAM,CAAC4B,YAAY,CACvCD,cAAeA,EACff,aAAcgE,EAAc,KAAO,KACnC7C,kBACE6C,EACIlF,EAAMM,MAAM,CAAC8E,MAAM,CACjB,KACA,KACFpF,EAAMM,MAAM,CAAC8E,MAAM,CACjB,KACA,MAId,GAAG","sources":["webpack://_N_E/../design-system/src/components/system/lazy-component/lazy-component.tsx","webpack://_N_E/../design-system/src/components/blocks/tease-row/tease-row-3-up.scss?db21","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?922b","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/blocks/tease-row/tease-row.scss?5d3f","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"],"sourcesContent":["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","// extracted by mini-css-extract-plugin","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","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","// extracted by mini-css-extract-plugin","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"],"names":["LazyComponent","name","props","children","getLazyComponentByName","useLazyComponents","Component","ErrorBoundary","Suspense","Array","isArray","LazyComponents","components","console","error","map","component","i","createContentfulComponent","entry","ref","options","getEntry","createEditAttributes","useContentful","fields","metadata","sys","id","TeaseRowTease","tease","teaseStyle","headingLevel","showPhone","showJobTitle","articleImageInset","style","HeadingLevel","teaseContext","imageInset","image","isLogo","coverImage","aspectRatio","isTeaseRow","hidePhone","hideJobTitle","li","className","TeaseRow","teases","align","headerContent","teasesPerRow","wrap","imagesInset","HeadingLevelTease","editAttributes","rowUp","length","isMixedTeases","some","type","kaltura","wrapperClass","cn","teaseRowClass","teaseType","toLowerCase","articleTease","byline","forEach","withModal","dataRegion","headingLevelTease","div","data-region","section","ComponentHeader","ul","createContentTeaseProps","createContentfulProps","getEntryUrl","mediaAsset","createMediaAssetProps","media","width","height","title","RenderContentfulRichText","document","disableParagraphs","link","ariaLabel","description","video","fieldId","themeMap","ignoredThemeMap","ContentfulTeaseRowContents","getEntries","headerAbove","createComponentHeaderProps","header","contentTeases","isContentType","teaseThemeConsistent","theme","teaseTheme","includes","startingTheme","indexOf","undefined","teaseSize","isSmall","push","alignment"],"sourceRoot":"","ignoreList":[]}