{"version":3,"file":"index-CI2mheOS.js","sources":["../../../frontend/src/Components/PostList/ListItems/index.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { Box, Divider, List, ListItem, Paper, Typography } from '@mui/material';\nimport { FormattedMessage } from 'react-intl';\n\nimport PostListItem from '../../DesignSystem/PostListItem/PostListItem';\nimport PostCardSkeleton from '../../DesignSystem/PostCard/PostCardSkeleton';\nimport ButtonLoadMore from '../../Posts/ButtonLoadMore';\n\nfunction ListItems({\n trackingProps,\n emptyState,\n fetchNextPage,\n hasNextPage,\n hideButtons,\n isFetching,\n newTab,\n pages,\n paging,\n postsCount,\n showEmptyState,\n showSkeleton,\n space,\n titleI18nKey,\n titleProps,\n hideParentLink = false,\n disablePadding = false,\n}: any) {\n return (\n <>\n {titleI18nKey && (\n \n \n \n \n \n )}\n\n {showSkeleton &&\n [0, 1, 2].map((i) => (\n \n \n \n ))}\n\n {showEmptyState && {emptyState}}\n\n {!showSkeleton && !showEmptyState && (\n \n \n {pages.map(({ data }: any) => (\n \n {data.data.map((post: any) => (\n \n \n \n \n \n \n ))}\n \n ))}\n
\n\n {hasNextPage && (\n \n fetchNextPage()}\n paging={paging}\n isFetching={isFetching}\n variant=\"text\"\n y\n />\n \n )}\n \n )}\n >\n );\n}\nListItems.propTypes = {\n analyticsTitle: PropTypes.string.isRequired,\n space: PropTypes.shape({\n id: PropTypes.number,\n }).isRequired,\n titleI18nKey: PropTypes.string,\n emptyState: PropTypes.node,\n newTab: PropTypes.bool,\n queryOptions: PropTypes.shape({\n authorId: PropTypes.number,\n visibilities: PropTypes.arrayOf(PropTypes.string),\n }),\n};\n\nexport default ListItems;\n"],"names":["ListItems","_ref","trackingProps","emptyState","fetchNextPage","hasNextPage","hideButtons","isFetching","newTab","pages","paging","postsCount","showEmptyState","showSkeleton","space","titleI18nKey","titleProps","_ref$hideParentLink","hideParentLink","_ref$disablePadding","disablePadding","React","createElement","Fragment","Box","sx","mb","Typography","_extends","component","variant","align","FormattedMessage","id","values","count","map","i","key","PostCardSkeleton","noMedia","Paper","List","_ref2","data","page","post","_post$included$source","ListItem","disableGutters","PostListItem","parent","included","source","currentStep","current_step","parentLink","Divider","pt","pb","ButtonLoadMore","onClick","y","propTypes","analyticsTitle","PropTypes","string","isRequired","shape","number","node","bool","queryOptions","authorId","visibilities","arrayOf"],"mappings":"8aASA,SAASA,EAASC,EAkBV,CAjBNC,IAAAA,EAAaD,EAAbC,cACAC,EAAUF,EAAVE,WACAC,EAAaH,EAAbG,cACAC,EAAWJ,EAAXI,YACAC,EAAWL,EAAXK,YACAC,EAAUN,EAAVM,WACAC,EAAMP,EAANO,OACAC,EAAKR,EAALQ,MACAC,EAAMT,EAANS,OACAC,EAAUV,EAAVU,WACAC,EAAcX,EAAdW,eACAC,EAAYZ,EAAZY,aACAC,EAAKb,EAALa,MACAC,EAAYd,EAAZc,aACAC,EAAUf,EAAVe,WAAUC,EAAAhB,EACViB,eAAAA,EAAcD,IAAG,OAAA,GAAKA,EAAAE,EAAAlB,EACtBmB,eAAAA,EAAcD,IAAG,OAAA,GAAKA,EAGpBE,OAAAA,EAAAC,cAAAD,EAAAE,SACGR,KAAAA,GACCM,EAAAC,cAACE,EAAG,CAACC,GAAI,CAAEC,GAAI,CAAA,CACbL,EAAAA,EAAAC,cAACK,EAAUC,EAAA,CAACC,UAAU,KAAKC,QAAQ,KAAKC,MAAM,QAAaf,EAAAA,CAAU,EACnEK,EAAAC,cAACU,EAAgB,CACfC,GAAIlB,EACJmB,OAAQ,CAAEC,MAAOtB,EAAe,IAAMF,CAAAA,CAAW,CAClD,CACS,CACT,EAGNE,GACC,CAAC,EAAG,EAAG,CAAC,EAAEuB,IAAI,SAACC,EAAC,CACdhB,OAAAA,EAAAC,cAACE,EAAG,CAACc,IAAKD,CAAAA,EACRf,EAAAA,cAACiB,EAAgB,CAACC,QAAO,EAAA,CAAE,CACxB,CACN,CAAA,EAEF5B,GAAkBS,EAAAC,cAACE,EAAG,CAAC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