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AAMvC,MAAM,CACtB1B,EAAMM,MAAM,CAACoE,KAAK,CAACE,KAAK,CAAC,EAAG,GAC5B5E,EAAMM,MAAM,CAACoE,KAAK,CAEXA,GAAXZ,KAAAA,IAAAA,GAAAA,EAAmBe,OAAO,CAAC,QACrBzD,EAGUA,EAFZK,EADEL,SAAAA,KAAAA,EAAAA,CAAAA,OAAAA,EAAAA,EAAMd,MAAAA,GAANc,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAcR,IAAAA,EAAM,EACT,QAAba,EAAAA,EAAQkD,KAAAA,GAARlD,KAAAA,IAAAA,GAAAA,EAAeqD,IAAI,CAAC,CAClBvD,KAAMwC,EAAY3C,GAClBoD,QAAQ,SAAEpD,EAAAA,EAAKd,MAAAA,GAALc,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAaR,IAAI,CAC3B,aAAcQ,EAAKd,MAAM,CAACmE,SAAS,CACnCrC,eAAgBhC,EAAqB,CACnCJ,MAAOoB,EACPmD,QAAS,OACX,EACF,GAEJ,GAEAN,EAAMxC,OAAO,CAAGA,CAClB,CAEA,IAAMsD,EAAkBC,CAAAA,EAAAA,EAAAA,EAAAA,CAAqBA,CAAChF,EAAMM,MAAM,CAACqB,KAAK,EAMhE,OALIoD,IACEA,EAAgBnC,OAAO,GAAEmC,CADV,CAC0BnC,OAAO,CAACqC,SAAS,EAAG,GACjEhB,EAAMtC,KAAK,CAAGoD,GAGT,UAACvD,EAAaA,CAAE,GAAGyC,CAAK,EACjC,GAAG,CADoBzC","sources":["webpack://_N_E/../design-system/src/components/primitives/quote-card-content/quote-card-content.scss?3d58","webpack://_N_E/./src/contentful/lib/create-contentful-component.tsx","webpack://_N_E/../design-system/src/components/primitives/quote-card-content/quote-card-content.tsx","webpack://_N_E/../design-system/src/components/blocks/hero-statement/hero-statement.tsx","webpack://_N_E/./src/contentful/components/blocks/hero-statement.contentful.tsx","webpack://_N_E/../design-system/src/components/blocks/hero-statement/hero-statement.scss?4a91"],"sourcesContent":["// 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","import \"./quote-card-content.scss\";\n\nimport { CtaLink } from \"design-system/components/primitives/cta-link/cta-link\";\n\ninterface QuoteLinkProps {\n label: string;\n link?: string;\n}\n\nexport interface QuoteCardContentProps {\n label: string;\n text: string;\n credit: string;\n creditLink?: QuoteLinkProps;\n}\n\nexport function QuoteCardContent({\n label,\n text,\n credit,\n creditLink,\n}: QuoteCardContentProps) {\n return (\n
\n {label}\n\n
\n
\n

“{text}”

\n
\n
\n {credit}\n {creditLink?.link && (\n \n {creditLink.label}\n \n )}\n
\n
\n
\n );\n}\n","import \"./hero-statement.scss\";\n\nimport cn from \"clsx\";\nimport {\n CtaLink,\n CtaLinkProps,\n} from \"design-system/components/primitives/cta-link/cta-link\";\nimport {\n CtaList,\n CtaListProps,\n} from \"design-system/components/primitives/cta-list/cta-list\";\nimport {\n MediaAsset,\n MediaAssetProps,\n} from \"design-system/components/primitives/media-asset/media-asset\";\nimport {\n QuoteCardContent,\n QuoteCardContentProps,\n} from \"design-system/components/primitives/quote-card-content/quote-card-content\";\nimport { Theme } from \"design-system/utils/theme\";\n\nimport { ReactNode, useRef } from \"react\";\nimport {\n Alignment,\n EditAttributes,\n MediaAlignment,\n} from \"design-system/types/types\";\n\nexport interface HeroStatementProps {\n ctaList?: CtaListProps;\n button?: CtaLinkProps;\n media?: MediaAssetProps;\n subhead?: ReactNode;\n title?: string;\n theme?: Theme;\n isCard?: boolean;\n quote?: QuoteCardContentProps;\n align?: Exclude;\n mediaAlignment?: MediaAlignment;\n HeadingLevel?: \"h2\" | \"h3\";\n\n editAttributes?: {\n title?: EditAttributes;\n subhead?: EditAttributes;\n };\n}\n\n/**\n * ## See it in use on...\n * - The [MBA homepage](/story/example-pages-landing-pages-mba-homepage--story)\n *\n * ### Card Style\n * - **`id: CB-006-003-01`**\n * - **`data-region: cb__hero-statement__card__button`**\n *\n *\n * ### Flat Style\n * - **`id: CB-006-004-02`**\n * - **`data-region: cb__hero-statement__flat__button`**\n */\nexport function HeroStatement({\n ctaList,\n button,\n media,\n subhead,\n theme = \"white\",\n title,\n isCard = true,\n quote,\n align = \"full\",\n mediaAlignment = \"left\",\n HeadingLevel = \"h2\",\n editAttributes,\n}: HeroStatementProps) {\n const kalturaRef = useRef(null);\n const hasCta = Boolean(ctaList && button);\n\n const cardType = cn(\n \"hbs-hero-statement__card\",\n hasCta && \"hbs-hero-statement__card--cta\",\n !hasCta && \"hbs-hero-statement__card--text-only\",\n );\n\n const componentClass = isCard\n ? \"hbs-hero-statement hbs-hero-statement--card\"\n : \"hbs-hero-statement hbs-hero-statement--flat\";\n\n const playKalturaVideo = () => {\n if (kalturaRef.current) {\n kalturaRef.current.click();\n }\n };\n\n const presentationalVariant = isCard ? \"card\" : \"flat\";\n\n const contentVariants = [\n !quote && button && \"button\",\n !quote && ctaList && \"linklist\",\n quote && \"quote\",\n !hasCta && !quote && \"text-only\",\n media?.kaltura && \"kaltura\",\n ]\n .filter(Boolean)\n .join(\"__\");\n\n const dataRegion = `cb__hero-statement__${presentationalVariant}${\n contentVariants && `__${contentVariants}`\n }`;\n\n return (\n \n \n
\n
\n
\n {quote ? (\n \n ) : (\n <>\n {title && (\n \n {title}\n \n )}\n\n {subhead && (\n \n {subhead}\n
\n )}\n\n {media?.kaltura && (\n
\n \n
\n \n Play\n {\" \"}\n {media?.kaltura.duration && (\n \n \n Video duration:\n \n {media?.kaltura.duration}\n \n )}\n
\n \n
\n )}\n\n {(ctaList || button) && !media?.kaltura && (\n
\n {button && (\n \n )}\n\n {ctaList && }\n
\n )}\n \n )}\n
\n
\n \n {media && (\n \n \n \n )}\n \n \n );\n}\n","import { HeroStatementEntry } from \"frontend/contentful/schema/blocks\";\nimport {\n HeroStatement,\n HeroStatementProps,\n} from \"design-system/components/blocks/hero-statement/hero-statement\";\nimport { createContentfulComponent } from \"frontend/contentful/lib/create-contentful-component\";\nimport { RenderContentfulRichText } from \"../utils/render-contentful-rich-text\";\nimport { CtaListProps } from \"design-system/components/primitives/cta-list/cta-list\";\nimport { createMediaAssetProps } from \"../primitives/media-asset.props\";\nimport { useContentful } from \"frontend/hooks/use-contentful\";\n\ninterface HeroStatementsOptions {\n headerAbove?: boolean;\n}\n\nexport const ContentfulHeroStatement = createContentfulComponent<\n HeroStatementEntry,\n HeroStatementsOptions\n>(({ entry, options, createEditAttributes }) => {\n const { getEntryUrl, getEntry, getEntries } = useContentful();\n\n const headerAbove = options?.headerAbove ?? false;\n\n const props: HeroStatementProps = {\n title: entry.fields.title,\n align: entry.fields.alignment,\n theme: entry.fields.theme!,\n isCard: entry.fields.style === \"card\",\n HeadingLevel: headerAbove ? \"h3\" : \"h2\",\n subhead: ,\n mediaAlignment: entry.fields.mediaAlignment,\n\n editAttributes: {\n title: createEditAttributes({ entry, fieldId: \"title\" }),\n subhead: createEditAttributes({ entry, fieldId: \"description\" }),\n },\n };\n\n const button = getEntry(entry.fields.button);\n\n if (button?.fields?.text) {\n props.button = {\n children: button?.fields.text,\n href: getEntryUrl(entry.fields.button),\n \"aria-label\": button.fields.ariaLabel,\n editAttributes: createEditAttributes({\n entry: button,\n fieldId: \"title\",\n }),\n };\n }\n\n if (!button?.fields?.text && entry.fields.links) {\n const ctaList: CtaListProps = { items: [] };\n // only allow one cta link if button is present\n const links = props.button\n ? entry.fields.links.slice(0, 1)\n : entry.fields.links;\n\n getEntries(links)?.forEach((link) => {\n if (link?.fields?.text) {\n ctaList.items?.push({\n href: getEntryUrl(link),\n children: link.fields?.text,\n \"aria-label\": link.fields.ariaLabel,\n editAttributes: createEditAttributes({\n entry: link,\n fieldId: \"title\",\n }),\n });\n }\n });\n\n props.ctaList = ctaList;\n }\n\n const mediaAssetProps = createMediaAssetProps(entry.fields.media);\n if (mediaAssetProps) {\n if (mediaAssetProps.kaltura) mediaAssetProps.kaltura.withModal = true;\n props.media = mediaAssetProps;\n }\n\n return ;\n});\n","// extracted by mini-css-extract-plugin"],"names":["createContentfulComponent","Component","entry","ref","options","getEntry","createEditAttributes","useContentful","fields","metadata","sys","id","QuoteCardContent","label","text","credit","creditLink","div","className","span","blockquote","p","link","CtaLink","isSmall","href","HeroStatement","ctaList","button","media","subhead","theme","title","isCard","quote","align","mediaAlignment","HeadingLevel","editAttributes","kalturaRef","useRef","hasCta","Boolean","cardType","cn","contentVariants","kaltura","filter","join","dataRegion","data-region","data-theme","type","onClick","playKalturaVideo","current","click","aria-hidden","tabIndex","duration","CtaList","MediaAsset","aspectRatio","ContentfulHeroStatement","getEntries","getEntryUrl","headerAbove","props","alignment","style","RenderContentfulRichText","document","description","fieldId","children","ariaLabel","links","items","slice","forEach","push","mediaAssetProps","createMediaAssetProps","withModal"],"sourceRoot":"","ignoreList":[]}