view x/static/js/7579.1b98701c.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/7579.1b98701c.chunk.js","mappings":"mZAEO,SAASA,EAA2BC,GACzC,OAAO,EAAAC,EAAA,IAAqB,iBAAkBD,EAChD,CACA,MACA,GAD2B,EAAAE,EAAA,GAAuB,iBAAkB,CAAC,OAAQ,YAAa,WAAY,OAAQ,mBAAoB,WAAY,cAAe,YAAa,aAAc,WAAY,eAAgB,iBAAkB,UAAW,oBAAqB,kBAAmB,cAAe,wBAAyB,sBAAuB,qBAAsB,uBAAwB,kBAAmB,4BAA6B,0BAA2B,yBAA0B,2BAA4B,mBAAoB,6BAA8B,2BAA4B,0BAA2B,4BAA6B,aAAc,iB,qCCY3pB,MAyCMC,GAAkB,EAAAC,EAAA,IAAO,MAAO,CACpCC,KAAM,iBACNL,KAAM,OACNM,kBA5CwB,CAACC,EAAOC,KAChC,MAAM,WACJC,GACEF,EACJ,MAAO,CAAC,CACN,CAAC,MAAM,EAAmBG,WAAYF,EAAOE,SAC5C,CACD,CAAC,MAAM,EAAmBA,WAAYF,EAAO,WAAU,EAAAG,EAAA,GAAWF,EAAWG,iBAC5E,CACD,CAAC,MAAM,EAAmBF,WAAYF,EAAO,WAAU,EAAAG,EAAA,GAAWF,EAAWI,aAC5E,CACD,CAAC,MAAM,EAAmBH,WAAYF,EAAO,WAAU,EAAAG,EAAA,GAAWF,EAAWI,YAAW,EAAAF,EAAA,GAAWF,EAAWG,iBAC7G,CACD,CAAC,MAAM,EAAmBF,WAAYF,EAAO,WAAU,EAAAG,EAAA,GAAWF,EAAWI,YAAW,EAAAF,EAAA,GAAWF,EAAWK,WAC7G,CACD,CAAC,MAAM,EAAmBC,eAAgBP,EAAOO,aAChD,CACD,CAAC,M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ACHN,UAAuB,SAAKuB,EAAA,EAAmBC,SAAU,CACvDC,MAAOd,EACPX,SAAUY,EAAcjB,KAAI,CAAC+B,EAAOT,KACd,SAAKU,EAAA,EAAyBH,SAAU,CAC1DC,MAAOT,EAA2BC,GAClCjB,SAAU0B,GACTT,QAIX,G","sources":["../../../node_modules/@mui/material/ButtonGroup/buttonGroupClasses.js","../../../node_modules/@mui/material/ButtonGroup/ButtonGroup.js"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonGroupUtilityClass(slot) {\n  return generateUtilityClass('MuiButtonGroup', slot);\n}\nconst buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);\nexport default buttonGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport getValidReactChildren from '@mui/utils/getValidReactChildren';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport buttonGroupClasses, { getButtonGroupUtilityClass } from \"./buttonGroupClasses.js\";\nimport ButtonGroupContext from \"./ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"./ButtonGroupButtonContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [{\n    [`& .${buttonGroupClasses.grouped}`]: styles.grouped\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]\n  }, {\n    [`& .${buttonGroupClasses.firstButton}`]: styles.firstButton\n  }, {\n    [`& .${buttonGroupClasses.lastButton}`]: styles.lastButton\n  }, {\n    [`& .${buttonGroupClasses.middleButton}`]: styles.middleButton\n  }, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    color,\n    disabled,\n    disableElevation,\n    fullWidth,\n    orientation,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', `color${capitalize(color)}`],\n    grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],\n    firstButton: ['firstButton'],\n    lastButton: ['lastButton'],\n    middleButton: ['middleButton']\n  };\n  return composeClasses(slots, getButtonGroupUtilityClass, classes);\n};\nconst ButtonGroupRoot = styled('div', {\n  name: 'MuiButtonGroup',\n  slot: 'Root',\n  overridesResolver\n})(memoTheme(({\n  theme\n}) => ({\n  display: 'inline-flex',\n  borderRadius: (theme.vars || theme).shape.borderRadius,\n  variants: [{\n    props: {\n      variant: 'contained'\n    },\n    style: {\n      boxShadow: (theme.vars || theme).shadows[2]\n    }\n  }, {\n    props: {\n      disableElevation: true\n    },\n    style: {\n      boxShadow: 'none'\n    }\n  }, {\n    props: {\n      fullWidth: true\n    },\n    style: {\n      width: '100%'\n    }\n  }, {\n    props: {\n      orientation: 'vertical'\n    },\n    style: {\n      flexDirection: 'column',\n      [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderTopRightRadius: 0,\n        borderTopLeftRadius: 0\n      },\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderBottomRightRadius: 0,\n        borderBottomLeftRadius: 0\n      }\n    }\n  }, {\n    props: {\n      orientation: 'horizontal'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderTopRightRadius: 0,\n        borderBottomRightRadius: 0\n      },\n      [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderTopLeftRadius: 0,\n        borderBottomLeftRadius: 0\n      }\n    }\n  }, {\n    props: {\n      variant: 'text',\n      orientation: 'horizontal'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n        [`&.${buttonGroupClasses.disabled}`]: {\n          borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n        }\n      }\n    }\n  }, {\n    props: {\n      variant: 'text',\n      orientation: 'vertical'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n        [`&.${buttonGroupClasses.disabled}`]: {\n          borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n        }\n      }\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).flatMap(([color]) => [{\n    props: {\n      variant: 'text',\n      color\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)\n      }\n    }\n  }]), {\n    props: {\n      variant: 'outlined',\n      orientation: 'horizontal'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderRightColor: 'transparent',\n        '&:hover': {\n          borderRightColor: 'currentColor'\n        }\n      },\n      [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n        marginLeft: -1\n      }\n    }\n  }, {\n    props: {\n      variant: 'outlined',\n      orientation: 'vertical'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderBottomColor: 'transparent',\n        '&:hover': {\n          borderBottomColor: 'currentColor'\n        }\n      },\n      [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n        marginTop: -1\n      }\n    }\n  }, {\n    props: {\n      variant: 'contained',\n      orientation: 'horizontal'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n        [`&.${buttonGroupClasses.disabled}`]: {\n          borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n        }\n      }\n    }\n  }, {\n    props: {\n      variant: 'contained',\n      orientation: 'vertical'\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n        [`&.${buttonGroupClasses.disabled}`]: {\n          borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n        }\n      }\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n    props: {\n      variant: 'contained',\n      color\n    },\n    style: {\n      [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n        borderColor: (theme.vars || theme).palette[color].dark\n      }\n    }\n  }))],\n  [`& .${buttonGroupClasses.grouped}`]: {\n    minWidth: 40,\n    boxShadow: 'none',\n    props: {\n      variant: 'contained'\n    },\n    style: {\n      '&:hover': {\n        boxShadow: 'none'\n      }\n    }\n  }\n})));\nconst ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiButtonGroup'\n  });\n  const {\n    children,\n    className,\n    color = 'primary',\n    component = 'div',\n    disabled = false,\n    disableElevation = false,\n    disableFocusRipple = false,\n    disableRipple = false,\n    fullWidth = false,\n    orientation = 'horizontal',\n    size = 'medium',\n    variant = 'outlined',\n    ...other\n  } = props;\n  const ownerState = {\n    ...props,\n    color,\n    component,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    disableRipple,\n    fullWidth,\n    orientation,\n    size,\n    variant\n  };\n  const classes = useUtilityClasses(ownerState);\n  const context = React.useMemo(() => ({\n    className: classes.grouped,\n    color,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    disableRipple,\n    fullWidth,\n    size,\n    variant\n  }), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);\n  const validChildren = getValidReactChildren(children);\n  const childrenCount = validChildren.length;\n  const getButtonPositionClassName = index => {\n    const isFirstButton = index === 0;\n    const isLastButton = index === childrenCount - 1;\n    if (isFirstButton && isLastButton) {\n      return '';\n    }\n    if (isFirstButton) {\n      return classes.firstButton;\n    }\n    if (isLastButton) {\n      return classes.lastButton;\n    }\n    return classes.middleButton;\n  };\n  return /*#__PURE__*/_jsx(ButtonGroupRoot, {\n    as: component,\n    role: \"group\",\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState,\n    ...other,\n    children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {\n      value: context,\n      children: validChildren.map((child, index) => {\n        return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {\n          value: getButtonPositionClassName(index),\n          children: child\n        }, index);\n      })\n    })\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonGroup.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, no elevation is used.\n   * @default false\n   */\n  disableElevation: PropTypes.bool,\n  /**\n   * If `true`, the button keyboard focus ripple is disabled.\n   * @default false\n   */\n  disableFocusRipple: PropTypes.bool,\n  /**\n   * If `true`, the button ripple effect is disabled.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * If `true`, the buttons will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The component orientation (layout flow direction).\n   * @default 'horizontal'\n   */\n  orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense button styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'outlined'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default ButtonGroup;"],"names":["getButtonGroupUtilityClass","slot","generateUtilityClass","generateUtilityClasses","ButtonGroupRoot","styled","name","overridesResolver","props","styles","ownerState","grouped","capitalize","orientation","variant","color","firstButton","lastButton","middleButton","root","disableElevation","fullWidth","vertical","memoTheme","theme","display","borderRadius","vars","shape","variants","style","boxShadow","shadows","width","flexDirection","borderTopRightRadius","borderTopLeftRadius","borderBottomRightRadius","borderBottomLeftRadius","borderRight","palette","common","onBackgroundChannel","mode","disabled","action","borderBottom","Object","entries","filter","createSimplePaletteValueFilter","flatMap","borderColor","mainChannel","main","borderRightColor","marginLeft","borderBottomColor","marginTop","grey","map","dark","minWidth","inProps","ref","children","className","component","disableFocusRipple","disableRipple","size","other","classes","slots","composeClasses","useUtilityClasses","context","validChildren","getValidReactChildren","childrenCount","length","getButtonPositionClassName","index","isFirstButton","isLastButton","as","role","clsx","ButtonGroupContext","Provider","value","child","ButtonGroupButtonContext"],"sourceRoot":""}