comparison x/static/js/4033.df8ecd0d.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
comparison
equal deleted inserted replaced
124:137e08517410 125:49f3d3878413
1 {"version":3,"file":"static/js/4033.df8ecd0d.chunk.js","mappings":"gPAYA,MAAMA,GAAYC,E,SAAAA,KAAAA,CAAa,CAC7BC,KAAM,CACJC,MAAO,OA8DX,GA1D2BC,EAAAA,EAAAA,WAAS,UAAU,MAC5CC,EAAK,YACLC,IAQA,MAAM,QAAEC,GAAYP,KACd,UAAEQ,EAAY,IAAOH,GACpBI,EAAKC,IAAUC,EAAAA,EAAAA,UAAS,GAAGH,KAC5BI,EAAa,KAARH,IAAeI,OAAOC,OAAOL,GACxC,OACEM,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACC,QAASZ,EAAaa,MAAM,kBACvCJ,EAAAA,cAACK,EAAAA,EAAa,CAACC,UAAWd,EAAQL,MAChCa,EAAAA,cAACO,EAAAA,EAAU,KAAC,4GAIZP,EAAAA,cAACQ,EAAAA,EAAS,CACRC,MAAOf,EACPgB,SAAUC,IACRhB,EAAOgB,EAAMC,OAAOH,MAAM,EAE5BI,YAAY,oBAEZhB,EAA0D,KAArDG,EAAAA,cAAA,OAAKc,MAAO,CAAEC,MAAO,QAAS,mBAEvCf,EAAAA,cAACgB,EAAAA,EAAa,KACZhB,EAAAA,cAACiB,EAAAA,EAAM,CACLC,QAAQ,YACRH,MAAM,UACNI,KAAK,SACLC,WAAS,EACTC,UAAWxB,EACXyB,QAASA,KACPhC,EAAMiC,cAAc7B,GACpBH,GAAa,GAEhB,UAGDS,EAAAA,cAACiB,EAAAA,EAAM,CACLC,QAAQ,YACRH,MAAM,YACNO,QAASA,KACP/B,GAAa,GAEhB,WAMT,G","sources":["../../../plugins/linear-genome-view/src/LinearBasicDisplay/components/SetMaxHeightDialog.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport { observer } from 'mobx-react'\nimport { Dialog } from '@jbrowse/core/ui'\nimport {\n Button,\n DialogActions,\n DialogContent,\n Typography,\n TextField,\n} from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()({\n root: {\n width: 500,\n },\n})\n\nconst SetMaxHeightDialog = observer(function ({\n model,\n handleClose,\n}: {\n model: {\n maxHeight?: number\n setMaxHeight: (arg?: number) => void\n }\n handleClose: () => void\n}) {\n const { classes } = useStyles()\n const { maxHeight = '' } = model\n const [max, setMax] = useState(`${maxHeight}`)\n const ok = max !== '' && !Number.isNaN(+max)\n return (\n <Dialog open onClose={handleClose} title=\"Set max height\">\n <DialogContent className={classes.root}>\n <Typography>\n Set max height for the track. For example, you can increase this if\n the layout says &quot;Max height reached&quot;\n </Typography>\n <TextField\n value={max}\n onChange={event => {\n setMax(event.target.value)\n }}\n placeholder=\"Enter max score\"\n />\n {!ok ? <div style={{ color: 'red' }}>Invalid number</div> : null}\n </DialogContent>\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"primary\"\n type=\"submit\"\n autoFocus\n disabled={!ok}\n onClick={() => {\n model.setMaxHeight(+max)\n handleClose()\n }}\n >\n Submit\n </Button>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n onClick={() => {\n handleClose()\n }}\n >\n Cancel\n </Button>\n </DialogActions>\n </Dialog>\n )\n})\n\nexport default SetMaxHeightDialog\n"],"names":["useStyles","makeStyles","root","width","observer","model","handleClose","classes","maxHeight","max","setMax","useState","ok","Number","isNaN","React","Dialog","open","onClose","title","DialogContent","className","Typography","TextField","value","onChange","event","target","placeholder","style","color","DialogActions","Button","variant","type","autoFocus","disabled","onClick","setMaxHeight"],"sourceRoot":""}