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,GACRxB,EAAAA,cAAA,MAAIyB,IAAKC,IAAS,UAnBZF,IACtBxB,EAAAA,cAACoB,EAAAA,EAAI,CACDnB,UAAWC,IAAWC,EAAOwB,QAASV,EAAsBO,EAAkBN,SAC9EG,MAAOG,EACPD,WAAYK,GACR5B,EAAAA,cAAA,MAAIyB,IAAKC,IAAS,aAAczB,UAAWE,EAAO0B,aAC9C7B,EAAAA,cAACb,EAAAA,YAAWyB,EAAA,GAAKgB,EAAW,CAAErC,WAAS,QAaNuC,CAAiBN,OAIxD,C","sources":["webpack://Kristiania.Web/./Features/Blocks/ContentCard/ContentCard.tsx","webpack://Kristiania.Web/./Features/Blocks/ContentCardListBlock/ContentCardListBlock.module.css?7c33","webpack://Kristiania.Web/./Features/Blocks/ContentCardListBlock/ContentCardListBlock.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { useTheme } from '../../Layouts/Theme/Context/ThemeContextProvider';\nimport styles from '../ContentCardLayout/ContentCardBase.module.css';\nimport type { ContentCardLayoutProps } from '../ContentCardLayout/ContentCardLayout';\nimport { ContentCardLayout } from '../ContentCardLayout/ContentCardLayout';\nimport layoutStyles from '../ContentCardLayout/ContentCardLayout.module.css';\nimport type { ContentCardViewModel } from '~/Blocks/ContentCard/ContentCardViewModel.csharp';\nimport { useClickProxyAllowingTextSelection } from '~/Utils/Hooks/useClickProxyAllowingTextSelection';\n\nexport type ContentCardProps = ContentCardViewModel & Pick;\n\nexport const ContentCard: React.FC> = props => {\n const { variant, callToActionLink, stretched } = props;\n const { clickableRef, onProxyMouseDown, onProxyMouseUp } = useClickProxyAllowingTextSelection();\n const theme = useTheme();\n const { withRoundedCorners, withBoxShadow } = theme;\n\n return (\n \n \n \n );\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"ContentCardListBlock\":\"re7lhSNl15rHkStNWfpr\",\"Inner\":\"fPnbW2LIDDXkLu7Sd2DI\",\"List\":\"qKN9QYrNs0tc2hac6kse\",\"ListRow--oneColumn\":\"qr9XN5fqlIAczQqaknON\",\"ListRow--twoColumns\":\"a8MbRkCPF9NiG9lTnQah\",\"ListRow--threeColumns\":\"Q2QchAPLIgi9KO9i4PnS\",\"ListRow\":\"jtkkgzPbbPs4wbvpUNch\",\"ListRowItem\":\"ybbVqLS47JjhpbRWgQDU\",\"Variant--grey\":\"Yu3F73n71NBxoM1sj0uf\",\"Variant--white\":\"_DmNksM03MW0imTZ92Zj\"};","import classNames from 'classnames';\nimport chunk from 'lodash/chunk';\nimport uniqueId from 'lodash/uniqueId';\nimport * as React from 'react';\nimport type { ContentCardProps } from '../ContentCard/ContentCard';\nimport { ContentCard } from '../ContentCard/ContentCard';\nimport { List } from '~/Partials/List/List';\nimport styles from './ContentCardListBlock.module.css';\nimport type { ContentCardListBlockProps } from './ViewModel/ContentCardListBlockProps.csharp';\n\nexport const ContentCardListBlock: React.FC> = props => {\n const { backgroundVariant, contentCards } = props;\n\n const getRowLayoutClassName = (length: number) => {\n switch (length) {\n case 3:\n return styles['ListRow--threeColumns'];\n case 2:\n return styles['ListRow--twoColumns'];\n default:\n return styles['ListRow--oneColumn'];\n }\n };\n\n const renderRowContent = (contentCardsChunk: ContentCardProps[]) => (\n (\n
  • \n \n
  • \n )}\n />\n );\n\n return (\n
    \n
    \n (\n
  • {renderRowContent(contentCardsChunk)}
  • \n )}\n />\n
    \n
    \n );\n};\n"],"names":["ContentCard","props","variant","callToActionLink","stretched","clickableRef","onProxyMouseDown","onProxyMouseUp","useClickProxyAllowingTextSelection","theme","useTheme","withRoundedCorners","withBoxShadow","React","className","classNames","styles","concat","href","layoutStyles","CardWithLink","onMouseDown","onMouseUp","role","ContentCardLayout","_extends","linkRef","ContentCardListBlock","backgroundVariant","contentCards","getRowLayoutClassName","length","Inner","List","items","chunk","renderItem","contentCardsChunk","key","uniqueId","ListRow","contentCard","ListRowItem","renderRowContent"],"sourceRoot":""}