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AOc,YAAapB,GAAuBqB,KAAM9B,KAGvFG,GAAQA,EAAKuB,MACVb,EAAAA,cAAA,KAAGa,KAAMvB,EAAKuB,KAAMpB,UAAU,gCAC1BO,EAAAA,cAAA,QAAMP,UAAU,kBAAkBH,EAAK4B,QAG7C,C","sources":["webpack://Kristiania.Web/./Features/Partials/ContentListItem/ContentListItem.module.css?3b40","webpack://Kristiania.Web/./Features/Partials/ContentListItem/ContentListItem.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"ContentListItem\":\"fZJVSAOhjE5zCRGyxzhi\",\"LinkTextUnderline\":\"d_REHRglxAIojeV7lyDw\",\"ImageWrapper\":\"N7q9ZTHSSFbVGFD_J2I2\",\"Image\":\"IEs38zzV4ZJHZFpJJdhd\",\"Info\":\"zOoeSOkOom859N3cCBqY\",\"Category\":\"TU_pgLgsSXmSqRrkGhN2\",\"TitleWrapper\":\"ZGOqWTR6X5XVdPOGhaPU\",\"Title\":\"XdNev0WrxmeriTSwiCJG\",\"Description\":\"u5K49m8sCAFQhMpYrwdt\",\"Variant--horizontal\":\"hgXjRFNZg2WBePSvKAm6\",\"Variant--verticalNoImage\":\"VM92AIHEP3bABFucDFDZ\",\"Variant--rounded\":\"nc7TSgJW7v4obbaNE8Dk\",\"Variant--red\":\"qkrootWfYQo40qAVnNGX\",\"Variant--white\":\"ZgnxOJuIE4jB4F1vejmt\",\"Variant--dark\":\"F_as4N7ckoDQHikdStXf\",\"Variant--grey\":\"IeGb_X3nJ4kdizBP7Kt0\",\"Variant--transparent\":\"bN4kmaT2UReooWdl5OHO\"};","import classNames from 'classnames';\nimport * as React from 'react';\nimport { HtmlDiv } from '../Controls/HtmlDiv';\nimport { Picture } from '../Picture/Picture';\nimport type { BackgroundVariant } from '~/Blocks/ContentListBlock/BackgroundVariant.csharp';\nimport { PicturePlaceholder } from '~/Partials/Picture/Placeholder/PicturePlaceholder';\nimport type { Theme } from '~/Utils/Theme';\nimport { themeDefaultValues } from '~/Utils/Theme';\nimport styles from './ContentListItem.module.css';\nimport type { ContentListItemProps } from './ContentListItemProps.csharp';\n\ntype ContentListItemType = 'horizontal' | 'vertical' | 'verticalNoImage';\ntype ContentListItemVariant = BackgroundVariant;\n\ninterface ContentListItemVariantProps {\n itemType: ContentListItemType;\n variant?: ContentListItemVariant;\n theme?: Pick;\n className?: string;\n imageWrapperClassName?: string;\n titleClassName?: string;\n descriptionClassName?: string;\n}\n\nexport const ContentListItem: React.FC<\n React.PropsWithChildren\n> = props => {\n const {\n title,\n description,\n category,\n picture,\n link,\n itemType,\n variant,\n className,\n imageWrapperClassName,\n titleClassName,\n descriptionClassName,\n theme = themeDefaultValues,\n } = props;\n const { withRoundedCorners } = theme;\n\n const getTitleClassName = () =>\n classNames(styles.Title, link && link.href && styles.LinkTextUnderline, titleClassName);\n\n return (\n \n
\n {picture ? (\n \n ) : (\n \n )}\n
\n
\n {category && {category}}\n
\n

{title}

\n
\n {description && (\n \n )}\n
\n {link && link.href && (\n \n {link.label}\n \n )}\n \n );\n};\n"],"names":["ContentListItem","props","title","description","category","picture","link","itemType","variant","className","imageWrapperClassName","titleClassName","descriptionClassName","theme","themeDefaultValues","withRoundedCorners","React","classNames","styles","concat","ImageWrapper","Picture","_extends","Image","PicturePlaceholder","Info","Category","TitleWrapper","Title","href","LinkTextUnderline","HtmlDiv","Description","html","label"],"sourceRoot":""}