{"version":3,"file":"ButtonLoadMore-Cc0UAB99.js","sources":["../../../frontend/src/Components/DesignSystem/PostCard/PostCardSkeleton.tsx","../../../frontend/src/Components/Posts/ButtonLoadMore.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Card, Grid } from '@mui/material';\nimport Skeleton from '@mui/material/Skeleton';\n\nimport CardActionArea from './partials/CardActionArea';\nimport CardContent from './partials/CardContent';\nimport CardMedia from './partials/CardMedia';\n\ninterface PostCardSkeletonProps {\n noMedia?: boolean;\n}\n\nfunction PostCardSkeleton({ noMedia }: PostCardSkeletonProps) {\n return (\n \n \n {!noMedia && (\n \n \n \n )}\n\n \n \n \n \n \n\n \n \n \n\n \n {[0, 1, 2].map((i) => (\n \n \n \n ))}\n \n \n \n \n );\n}\n\nexport default PostCardSkeleton;\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { Button, Grid2 as Grid } from '@mui/material';\n\nfunction ButtonLoadMore({ onClick, isAtEndOfList, isFetching, paging, variant = 'outlined' }: any) {\n if (isAtEndOfList) {\n return null;\n }\n\n if (paging && paging.page && paging.page >= paging.total_pages) {\n return null;\n }\n\n return (\n \n \n \n \n \n );\n}\n\nexport default ButtonLoadMore;\n"],"names":["PostCardSkeleton","_ref","noMedia","React","createElement","Card","sx","width","mb","CardActionArea","CardMedia","Skeleton","animation","variant","CardContent","Box","height","Grid","container","spacing","map","i","key","item","ButtonLoadMore","onClick","isAtEndOfList","isFetching","paging","_ref$variant","page","total_pages","justifyContent","alignItems","Button","color","disabled","FormattedMessage","id"],"mappings":"8NAYA,SAASA,EAAgBC,EAAqC,CAAA,IAAlCC,EAAOD,EAAPC,QAExBC,OAAAA,EAAAC,cAACC,EAAI,CAACC,GAAI,CAAEC,MAAO,OAAQC,GAAI,CAAA,CAC7BL,EAAAA,EAAAC,cAACK,EAAc,KACZ,CAACP,GACAC,EAAAC,cAACM,EAAS,KACRP,EAAAC,cAACO,EAAQ,CAACC,UAAU,OAAOC,QAAQ,aAAA,CAAe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