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AWU,EAAO,wBAC9BT,IAGJW,EAAAA,cAAA,OACIX,UAAWQ,IACPC,EAAOsB,QACI,SAAX3B,GAAqBK,EAAO,YAADqB,OAAa1B,IACxCH,IAGJU,EAAAA,cAAA,OAAKX,UAAWQ,IAAWC,EAAOuB,QAAS9B,IAAoBR,IAElEgC,EACC,C","sources":["webpack://Kristiania.Web/./Features/Partials/BackgroundMediaSection/BackgroundMediaSection.module.css?b2a6","webpack://Kristiania.Web/./Features/Partials/BackgroundMediaSection/BackgroundMediaSection.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"BackgroundMediaSection\":\"BHZEJUDSIPpKa0oPrsHx\",\"Wrapper\":\"bLAdaCckoHBaiIC97_jU\",\"Wrapper--grid\":\"uwdDbr8iIUnkWFMVwpIF\",\"Content\":\"eh99tHo126OqTC2jRbLr\",\"Media\":\"dabmDRgUTnFwXNJ_grkU\",\"PlaceholderLogoWrapper\":\"ao2rID4I7z5HbixkFtUo\",\"Variant--withCaption\":\"HX85CpiEVtHWECQTXiNh\",\"Figure\":\"jEirhd8enG4d6AOhcLDQ\",\"Variant--fullDark\":\"xy4iFrsV2Sz8Qp0apyvq\",\"Variant--fullLight\":\"mpJQGg0dDaijqjuWkH6Z\",\"Variant--topToBottomGreyGradient\":\"AAvVhuWR4ZqvJONVflO9\",\"Variant--leftToRightDarkGreyGradient\":\"HKWJI6twVeF2fy35QptA\",\"Variant--upperTransparentLineGradient\":\"X4a8TM_Yrz4vY4qRwPCe\"};","import classNames from 'classnames';\nimport * as React from 'react';\nimport type { BaseImage } from '../Picture/Picture';\nimport { Picture } from '../Picture/Picture';\nimport { PictureProfiles } from '../Picture/PictureProfiles';\nimport { PicturePlaceholder } from '~/Partials/Picture/Placeholder/PicturePlaceholder';\nimport type { BackgroundMediaLayoutVariant } from './BackgroundMediaLayoutVariant';\nimport type { BackgroundMediaOverlayVariant } from './BackgroundMediaOverlayVariant';\nimport styles from './BackgroundMediaSection.module.css';\n\nexport interface BackgroundMediaSectionProps {\n id?: string;\n image?: BaseImage;\n video?: string;\n caption?: string;\n author?: string;\n overlayVariant?: BackgroundMediaOverlayVariant;\n layout?: BackgroundMediaLayoutVariant;\n className?: string;\n wrapperClassName?: string;\n contentClassName?: string;\n mediaClassName?: string;\n}\n\nexport const BackgroundMediaSection: React.FC> = props => {\n const {\n children,\n id,\n image,\n video,\n caption,\n author,\n className,\n wrapperClassName,\n contentClassName,\n mediaClassName,\n layout = 'default',\n overlayVariant = 'topToBottomGreyGradient',\n } = props;\n\n const getMediaElement = () => {\n const mediaClass = classNames(styles.Media, mediaClassName);\n\n if (video) {\n return (\n
\n
\n );\n }\n\n if (image) {\n return ;\n }\n\n return ;\n };\n\n const getMediaElementWithCaption = () => {\n const mediaElement = getMediaElement();\n\n return (\n
\n {mediaElement}\n
\n {caption && {caption}}\n {author && {author}}\n
\n
\n );\n };\n\n const mediaContent = caption || author ? getMediaElementWithCaption() : getMediaElement();\n\n return (\n \n \n
{children}
\n \n {mediaContent}\n \n );\n};\n"],"names":["BackgroundMediaSection","props","children","id","image","video","caption","author","className","wrapperClassName","contentClassName","mediaClassName","layout","overlayVariant","getMediaElement","mediaClass","classNames","styles","Media","React","src","autoPlay","playsInline","muted","loop","preload","Picture","_extends","profile","PictureProfiles","fullWidth","PicturePlaceholder","logoWrapperClassName","PlaceholderLogoWrapper","mediaContent","getMediaElementWithCaption","mediaElement","Figure","concat","Wrapper","Content"],"sourceRoot":""}