Mercurial > repos > fubar > jbrowse2
comparison x/static/js/7564.3a461e67.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/7564.3a461e67.chunk.js","mappings":"2PAkBA,SAASA,GAAqB,UAC5BC,EAAS,SACTC,EAAQ,OACRC,IAMA,OACEC,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACC,SAAS,KAAKC,MAAM,WAC/BJ,EAAAA,cAACK,EAAAA,EAAa,KACZL,EAAAA,cAACM,EAAAA,EAAW,CAACC,SAAS,UACtBP,EAAAA,cAACQ,EAAAA,EAAiB,KAAC,uEAEjBR,EAAAA,cAAA,UACGD,EAAOU,KAAIC,GACVV,EAAAA,cAAA,MAAIW,IAAKC,KAAKC,UAAUH,KAAKI,EAAAA,EAAAA,IAAwBJ,OAEpD,wDAITV,EAAAA,cAACe,EAAAA,EAAa,KACZf,EAAAA,cAACgB,EAAAA,EAAM,CACLC,MAAM,UACNC,QAAQ,YACRC,QAASA,KACPtB,GAAW,GAEd,mBAGDG,EAAAA,cAACgB,EAAAA,EAAM,CACLE,QAAQ,YACRD,MAAM,YACNE,QAASA,KACPrB,GAAU,GAEb,WAMT,CAEe,SAASsB,GAAe,OACrCC,EAAM,YACNC,IAKA,MAAM,eAAEC,GAAmBF,EAC3B,OAAOE,EACLvB,EAAAA,cAACJ,EAAoB,CACnBC,UAAW2B,UACT,MAAMC,EAAUb,KAAKc,MAAMd,KAAKC,UAAUU,EAAeI,aAGnDN,EAAOO,mBAAmB,IAAKH,EAASI,IAAIC,EAAAA,EAAAA,QAAY,GAC9DR,GAAa,EAEfxB,SAAUA,KACRuB,EAAOU,iBAAgB,GACvBT,GAAa,EAEfvB,OAAQwB,EAAexB,SAEvB,IACN,C,6DCrFA,SAAe,QAA4B,SAAK,OAAQ,CACtDiC,EAAG,8CACD,U","sources":["components/SessionWarningDialog.tsx","../../../node_modules/@mui/icons-material/esm/Warning.js"],"sourcesContent":["import React from 'react'\nimport { Dialog } from '@jbrowse/core/ui'\nimport {\n Button,\n DialogContent,\n DialogContentText,\n DialogActions,\n} from '@mui/material'\nimport { nanoid } from '@jbrowse/core/util/nanoid'\n\nimport WarningIcon from '@mui/icons-material/Warning'\nimport {\n PluginDefinition,\n pluginDescriptionString,\n} from '@jbrowse/core/PluginLoader'\n\nimport { SessionLoaderModel } from '../SessionLoader'\n\nfunction SessionWarningDialog({\n onConfirm,\n onCancel,\n reason,\n}: {\n onConfirm: () => void\n onCancel: () => void\n reason: PluginDefinition[]\n}) {\n return (\n <Dialog open maxWidth=\"xl\" title=\"Warning\">\n <DialogContent>\n <WarningIcon fontSize=\"large\" />\n <DialogContentText>\n This link contains a session that has the following unknown plugins:\n <ul>\n {reason.map(r => (\n <li key={JSON.stringify(r)}>{pluginDescriptionString(r)}</li>\n ))}\n </ul>\n Please ensure you trust the source of this session.\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button\n color=\"primary\"\n variant=\"contained\"\n onClick={() => {\n onConfirm()\n }}\n >\n Yes, I trust it\n </Button>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n onClick={() => {\n onCancel()\n }}\n >\n Cancel\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n\nexport default function SessionTriaged({\n loader,\n handleClose,\n}: {\n loader: SessionLoaderModel\n handleClose: () => void\n}) {\n const { sessionTriaged } = loader\n return sessionTriaged ? (\n <SessionWarningDialog\n onConfirm={async () => {\n const session = JSON.parse(JSON.stringify(sessionTriaged.snap))\n\n // second param true says we passed user confirmation\n await loader.setSessionSnapshot({ ...session, id: nanoid() }, true)\n handleClose()\n }}\n onCancel={() => {\n loader.setBlankSession(true)\n handleClose()\n }}\n reason={sessionTriaged.reason}\n />\n ) : null\n}\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z\"\n}), 'Warning');"],"names":["SessionWarningDialog","onConfirm","onCancel","reason","React","Dialog","open","maxWidth","title","DialogContent","WarningIcon","fontSize","DialogContentText","map","r","key","JSON","stringify","pluginDescriptionString","DialogActions","Button","color","variant","onClick","SessionTriaged","loader","handleClose","sessionTriaged","async","session","parse","snap","setSessionSnapshot","id","nanoid","setBlankSession","d"],"sourceRoot":""} |