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AAe,EACfvD,KAAM,CACJ6H,cAAe,0EACfC,gBAAiB,eACjBpH,aAAc,GACdqH,aAAc,KACdC,WAAY,KACZP,cAAe,KACfvF,cAAc,EACdS,WAAY,KACZsF,gBAAgB,EAChBC,qBAAsB,KACtBC,mBAAoB,KACpBC,kBAAmB,KACnBC,qBAAsB,KACtBC,aAAc,KACdC,yBAA0B,KAC1BC,aAAc,KACdC,WAAY,MAEdtE,QAAQ,EACRlE,IAAK,qEACLyI,YAAY,GAGDC,EAAuB,CAClCC,WAAY,GACZ5F,WAAY,kBACZ6F,gBAAiB,gBACjBC,WAAY,4BACZC,SAAU,gBACVC,UAAU,EACVC,MAAO,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG1H,KAAK2H,GAAKC,EAAAA,EAAA,GAAQhD,GAAsB,IAAEiD,OAAO,GAAGjD,EAAuBpC,SAASmF,QAC3GG,gBAAgB,EAChBpD,cAAe,CACba,SAAU,MACV/C,MAAO,YACP0B,YAAY,G","sources":["webpack://rockworld/./app/components/organisms/BaseCard/BaseCardLink.tsx","webpack://rockworld/./app/components/organisms/BaseCard/BaseCardContentWrapper.tsx","webpack://rockworld/./app/components/organisms/BaseCard/BaseCard.module.scss","webpack://rockworld/./app/components/organisms/BaseCard/BaseCard.tsx","webpack://rockworld/./app/components/organisms/O6-ContentList/ContentList.tsx","webpack://rockworld/./app/components/organisms/O6-ContentList/index.ts"],"sourcesContent":["import React, { useMemo } from 'react';\r\nimport { AnyFile } from 'app/types';\r\nimport { Link } from '@molecules/Link';\r\nimport { FileDownloadLink } from '@molecules/FileDownloadLink';\r\n\r\nexport type BaseCardLink = {\r\n type: 'heading' | 'body';\r\n url: string;\r\n label: string;\r\n file: AnyFile;\r\n target: string;\r\n classNames: { gated: string; nonGated: string; nonFile: string };\r\n rel?: string;\r\n};\r\n\r\nexport const BaseCardLink = ({ file, url, classNames, label, target, type = 'body' }: BaseCardLink) => {\r\n const _label = type === 'heading' ? label : '';\r\n\r\n const relValue = useMemo(() => {\r\n let value = file?.relAttribute.split('=')[1];\r\n if (value) {\r\n value = value.replaceAll('\"', '');\r\n }\r\n\r\n return value;\r\n }, [file]);\r\n\r\n // dataAttrName -> data-attr-name\r\n const dataAttributes = useMemo(() => {\r\n const source = file || {};\r\n const obj: { [key: string]: string } = {};\r\n\r\n Object.keys(source)\r\n .filter((k) => k.startsWith('data'))\r\n .forEach((k) => {\r\n const key = k\r\n .split(/(?=[A-Z])/)\r\n .map((chunk) => chunk.toLocaleLowerCase())\r\n .join('-');\r\n obj[key] = source[k];\r\n });\r\n\r\n return obj;\r\n }, [file]);\r\n\r\n if (!file) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n const { gatedContent } = file;\r\n\r\n return (\r\n
{description}
\r\n )}\r\n {innerTextLabel &&