{"version":3,"file":"ProductAppList.mjs","names":["React","makeStyles","Typography","Arrow","ProductAppListItem","useTranslation","useStyles","theme","root","margin","spacing","display","flexWrap","icons","color","props","buttonGroup","marginRight","width","label","palette","getContrastText","secondary","light","marginTop","title","minWidth","moreAppContainer","moreApps","flexDirection","justifyContent","arrow","size","marginLeft","ProductAppList","$","_c","classes","apps","user","t","t0","props_0","apps_0","AppGroup","t1","t2","item","id","redirectInfo","image","icon","getAccessToken","map"],"sources":["../../../../src/shell/ui/appSwitcher/ProductAppList.jsx"],"sourcesContent":["import React from 'react';\nimport { makeStyles, Typography } from '@material-ui/core';\nimport Arrow from '@material-ui/icons/esm/ArrowForward';\nimport ProductAppListItem from './ProductAppListItem';\nimport { useTranslation } from 'react-i18next';\n\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    '& > *': {\n      margin: theme.spacing(0.5)\n    },\n    display: 'flex',\n    flexWrap: 'wrap'\n  },\n  icons: {\n    color: (props) => props.color\n  },\n  buttonGroup: {\n    display: 'flex',\n    marginRight: theme.spacing(3),\n    width: 170\n  },\n  label: {\n    color: theme.palette.getContrastText(theme.palette.secondary.light),\n    marginTop: theme.spacing(2)\n  },\n  title: {\n    color: theme.palette.getContrastText(theme.palette.secondary.light),\n    minWidth: 320\n  },\n\n  moreAppContainer: {\n    width: '100%'\n  },\n  moreApps: {\n    color: theme.palette.getContrastText(theme.palette.secondary.light),\n    display: 'flex',\n    flexDirection: 'row',\n    justifyContent: 'flex-end'\n  },\n  arrow: {\n    size: 18,\n    marginLeft: theme.spacing(1)\n  }\n}));\n\nconst ProductAppList = (props) => {\n  const classes = useStyles(props);\n  const { apps, user } = props;\n  const { t, i18n } = useTranslation();\n\n  const AppGroup = (props) => {\n    const { title, apps } = props;\n    return (\n      <div className={classes.root}>\n        <Typography variant='h6' className={classes.title}>\n          {t(title)}\n        </Typography>\n        {apps}\n        {/* <div className={classes.moreAppContainer}>\n          <div className={classes.moreApps}>\n            <div>\n              <Typography variant=\"caption\">All Apps</Typography>\n            </div>\n            <div className={classes.arrow}>\n              <Arrow />\n            </div>\n          </div>\n        </div> */}\n      </div>\n    );\n  };\n\n  return (\n    <div>\n      <AppGroup\n        apps={apps.map((item) => {\n          return (\n            <ProductAppListItem\n              key={item.id}\n              label={t(item.label)}\n              redirectInfo={item.redirectInfo}\n              image={item.image}\n              icon={item.icon}\n              user={user}\n              getAccessToken={item.getAccessToken}\n            />\n          );\n        })}\n      />\n    </div>\n  );\n};\nexport default ProductAppList;\n"],"mappings":";;;;;;;AAOA,MAAMM,YAAYL,YAAYM,WAAW;CACvCC,MAAM;EACJ,SAAS,EACPC,QAAQF,MAAMG,QAAQ,GAAG,EAC1B;EACDC,SAAS;EACTC,UAAU;EACX;CACDC,OAAO,EACLC,QAAQC,UAAUA,MAAMD,OACzB;CACDE,aAAa;EACXL,SAAS;EACTM,aAAaV,MAAMG,QAAQ,EAAE;EAC7BQ,OAAO;EACR;CACDC,OAAO;EACLL,OAAOP,MAAMa,QAAQC,gBAAgBd,MAAMa,QAAQE,UAAUC,MAAM;EACnEC,WAAWjB,MAAMG,QAAQ,EAAC;EAC3B;CACDe,OAAO;EACLX,OAAOP,MAAMa,QAAQC,gBAAgBd,MAAMa,QAAQE,UAAUC,MAAM;EACnEG,UAAU;EACX;CAEDC,kBAAkB,EAChBT,OAAO,QACR;CACDU,UAAU;EACRd,OAAOP,MAAMa,QAAQC,gBAAgBd,MAAMa,QAAQE,UAAUC,MAAM;EACnEZ,SAAS;EACTkB,eAAe;EACfC,gBAAgB;EACjB;CACDC,OAAO;EACLC,MAAM;EACNC,YAAY1B,MAAMG,QAAQ,EAAC;EAC7B;CACD,EAAE;AAEH,MAAMwB,kBAAiBnB,UAAA;CAAA,MAAAoB,IAAAC,EAAA,GAAA;CACrB,MAAAC,UAAgB/B,UAAUS,MAAM;CAChC,MAAA,EAAAuB,MAAAC,SAAuBxB;CACvB,MAAA,EAAAyB,MAAoBnC,gBAAgB;CAAC,IAAAoC;AAAA,KAAAN,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