view x/static/js/1189.f18c6e1f.chunk.js.map @ 125:49f3d3878413 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author fubar
date Sat, 05 Oct 2024 23:58:05 +0000
parents
children
line wrap: on
line source

{"version":3,"file":"static/js/1189.f18c6e1f.chunk.js","mappings":"oOAWA,MAAMA,GAAYC,EAAAA,EAAAA,KAAAA,EAAaC,IAAS,CACtCC,KAAM,CACJC,UAAW,SACXC,WAAYH,EAAMI,QAAQ,GAC1BC,cAAeL,EAAMI,QAAQ,IAE/BE,IAAK,CACHC,OAAQ,SAiCZ,GA7B6BC,EAAAA,EAAAA,WAAS,UAAU,MAC9CC,IAIA,MAAM,QAAEC,GAAYZ,KACd,mBAAEa,GAAuBF,EAC/B,OACEG,EAAAA,cAACC,EAAAA,EAAK,CAACC,UAAWJ,EAAQT,MACtBU,EAcAC,EAAAA,cAAA,OAAKG,MAAO,CAAEC,OAAQ,UAbtBJ,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAACK,EAAAA,EAAU,KAAC,qBACZL,EAAAA,cAACM,EAAAA,EAAM,CACLC,QAAQ,YACRC,MAAM,UACNC,QAASA,IAAMZ,EAAMa,wBACrBR,UAAWJ,EAAQJ,IACnBiB,UAAWX,EAAAA,cAACY,EAAAA,GAAiB,OAC9B,wBASX,G","sources":["../../../plugins/linear-genome-view/src/LinearGenomeView/components/NoTracksActiveButton.tsx"],"sourcesContent":["import React from 'react'\nimport { Button, Paper, Typography } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport { observer } from 'mobx-react'\n\n// icons\nimport { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons'\n\n// locals\nimport { LinearGenomeViewModel } from '..'\n\nconst useStyles = makeStyles()(theme => ({\n  note: {\n    textAlign: 'center',\n    paddingTop: theme.spacing(1),\n    paddingBottom: theme.spacing(1),\n  },\n  top: {\n    zIndex: 1000,\n  },\n}))\n\nconst NoTracksActiveButton = observer(function ({\n  model,\n}: {\n  model: LinearGenomeViewModel\n}) {\n  const { classes } = useStyles()\n  const { hideNoTracksActive } = model\n  return (\n    <Paper className={classes.note}>\n      {!hideNoTracksActive ? (\n        <>\n          <Typography>No tracks active.</Typography>\n          <Button\n            variant=\"contained\"\n            color=\"primary\"\n            onClick={() => model.activateTrackSelector()}\n            className={classes.top}\n            startIcon={<TrackSelectorIcon />}\n          >\n            Open track selector\n          </Button>\n        </>\n      ) : (\n        <div style={{ height: '48px' }} />\n      )}\n    </Paper>\n  )\n})\n\nexport default NoTracksActiveButton\n"],"names":["useStyles","makeStyles","theme","note","textAlign","paddingTop","spacing","paddingBottom","top","zIndex","observer","model","classes","hideNoTracksActive","React","Paper","className","style","height","Typography","Button","variant","color","onClick","activateTrackSelector","startIcon","TrackSelectorIcon"],"sourceRoot":""}