@pie-element/graphing-solution-set 6.1.2-next.7 → 6.1.2-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{alert-dialog-Ddk9X-Wg.js → alert-dialog-PVG4ltUb.js} +12190 -12834
- package/dist/browser/alert-dialog-PVG4ltUb.js.map +1 -0
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/index.iife.js +97 -97
- package/package.json +6 -6
- package/dist/browser/alert-dialog-Ddk9X-Wg.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useUtilityClasses","capitalize","CheckBoxIcon","CheckBoxOutlineBlankIcon","IndeterminateCheckBoxIcon","useUtilityClasses","capitalize","useUtilityClasses","capitalize","useUtilityClasses","React","useUtilityClasses","React","useControlled","useForkRef","useId","capitalize","e","e","e","t","e","e","t","n","r","i","a","o","s","c","l","u","d","f","S","p","g","_","y","v","b","x","C","w","T","E","D","O","s","c","l","u","d","r","a","e","t","i","o","f"],"sources":["../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/Checkbox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/InputAdornment.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/Switch.js","../../../../../lib-react/config-ui/dist/radio-with-label.js","../../../../../lib-react/config-ui/dist/tabs/index.js","../../../../../lib-react/config-ui/dist/checkbox.js","../../../../../lib-react/config-ui/dist/number-text-field.js","../../../../../lib-react/config-ui/dist/fraction-to-number.js","../../../../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Remove.js","../../../../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Add.js","../../../../../lib-react/config-ui/dist/number-text-field-custom.js","../../../../../lib-react/config-ui/dist/two-choice.js","../../../../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js","../../../../../lib-react/config-ui/dist/layout/layout-contents.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js","../../../../../lib-react/config-ui/dist/layout/settings-box.js","../../../../../lib-react/config-ui/dist/layout/config-layout.js","../../../../../lib-react/config-ui/dist/layout/index.js","../../../../../lib-react/config-ui/dist/settings/toggle.js","../../../../../lib-react/config-ui/dist/settings/settings-radio-label.js","../../../../../lib-react/config-ui/dist/settings/panel.js","../../../../../lib-react/config-ui/dist/settings/index.js","../../../../../lib-react/config-ui/dist/index.js","../../../../../lib-react/graphing-solution-set/dist/grid-setup.js","../../../src/author/utils.ts","../../../src/author/graphing-config.tsx","../../../src/author/correct-response.tsx","../../../src/author/configure.tsx","../../../../../shared/configure-events/dist/index.js","../../../src/author/defaults.tsx","../../../src/author/index.ts"],"sourcesContent":["'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCheckboxUtilityClass(slot) {\n return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);\nexport default checkboxClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport CheckBoxOutlineBlankIcon from \"../internal/svg-icons/CheckBoxOutlineBlank.js\";\nimport CheckBoxIcon from \"../internal/svg-icons/CheckBox.js\";\nimport IndeterminateCheckBoxIcon from \"../internal/svg-icons/IndeterminateCheckBox.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport checkboxClasses, { getCheckboxUtilityClass } from \"./checkboxClasses.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 { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n indeterminate,\n color,\n size\n } = ownerState;\n const slots = {\n root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`, `size${capitalize(size)}`]\n };\n const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst CheckboxRoot = styled(SwitchBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiCheckbox',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n variants: [{\n props: {\n color: 'default',\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color,\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n color: (theme.vars || theme).palette[color].main\n },\n [`&.${checkboxClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n })), {\n // Should be last to override other colors\n props: {\n disableRipple: false\n },\n style: {\n // Reset on touch devices, it doesn't add specificity\n '&:hover': {\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }]\n})));\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCheckbox'\n });\n const {\n checkedIcon = defaultCheckedIcon,\n color = 'primary',\n icon: iconProp = defaultIcon,\n indeterminate = false,\n indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n inputProps,\n size = 'medium',\n disableRipple = false,\n className,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const icon = indeterminate ? indeterminateIconProp : iconProp;\n const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n const ownerState = {\n ...props,\n disableRipple,\n color,\n indeterminate,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalInputProps = slotProps.input ?? inputProps;\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n elementType: CheckboxRoot,\n className: clsx(classes.root, className),\n shouldForwardComponentProp: true,\n externalForwardedProps: {\n slots,\n slotProps,\n ...other\n },\n ownerState,\n additionalProps: {\n type: 'checkbox',\n icon: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: icon.props.fontSize ?? size\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n fontSize: indeterminateIcon.props.fontSize ?? size\n }),\n disableRipple,\n slots,\n slotProps: {\n input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n 'data-indeterminate': indeterminate,\n 'aria-checked': indeterminate ? 'mixed' : undefined\n })\n }\n }\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.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 * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n * @default <CheckBoxIcon />\n */\n checkedIcon: 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(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display when the component is unchecked.\n * @default <CheckBoxOutlineBlankIcon />\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * If `true`, the component appears indeterminate.\n * This does not set the native input element to indeterminate due\n * to inconsistent behavior across browsers.\n * However, we set a `data-indeterminate` attribute on the `input`.\n * @default false\n */\n indeterminate: PropTypes.bool,\n /**\n * The icon to display when the component is indeterminate.\n * @default <IndeterminateCheckBoxIcon />\n */\n indeterminateIcon: PropTypes.node,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense checkbox styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\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 value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Checkbox;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiFormControlLabel', slot);\n}\nconst formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);\nexport default formControlLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useFormControl } from \"../FormControl/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from \"./formControlLabelClasses.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n labelPlacement,\n error,\n required\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],\n label: ['label', disabled && 'disabled'],\n asterisk: ['asterisk', error && 'error']\n };\n return composeClasses(slots, getFormControlLabelUtilityClasses, classes);\n};\nexport const FormControlLabelRoot = styled('label', {\n name: 'MuiFormControlLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${formControlLabelClasses.label}`]: styles.label\n }, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n alignItems: 'center',\n cursor: 'pointer',\n // For correct alignment with the text.\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'transparent',\n marginLeft: -11,\n marginRight: 16,\n // used for row presentation of radio/checkbox\n [`&.${formControlLabelClasses.disabled}`]: {\n cursor: 'default'\n },\n [`& .${formControlLabelClasses.label}`]: {\n [`&.${formControlLabelClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n },\n variants: [{\n props: {\n labelPlacement: 'start'\n },\n style: {\n flexDirection: 'row-reverse',\n marginRight: -11\n }\n }, {\n props: {\n labelPlacement: 'top'\n },\n style: {\n flexDirection: 'column-reverse'\n }\n }, {\n props: {\n labelPlacement: 'bottom'\n },\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n labelPlacement\n }) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',\n style: {\n marginLeft: 16 // used for row presentation of radio/checkbox\n }\n }]\n})));\nconst AsteriskComponent = styled('span', {\n name: 'MuiFormControlLabel',\n slot: 'Asterisk'\n})(memoTheme(({\n theme\n}) => ({\n [`&.${formControlLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\n\n/**\n * Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nconst FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormControlLabel'\n });\n const {\n checked,\n className,\n componentsProps = {},\n control,\n disabled: disabledProp,\n disableTypography,\n inputRef,\n label: labelProp,\n labelPlacement = 'end',\n name,\n onChange,\n required: requiredProp,\n slots = {},\n slotProps = {},\n value,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;\n const required = requiredProp ?? control.props.required;\n const controlProps = {\n disabled,\n required\n };\n ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {\n if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {\n controlProps[key] = props[key];\n }\n });\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n disabled,\n labelPlacement,\n required,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [TypographySlot, typographySlotProps] = useSlot('typography', {\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n let label = labelProp;\n if (label != null && label.type !== Typography && !disableTypography) {\n label = /*#__PURE__*/_jsx(TypographySlot, {\n component: \"span\",\n ...typographySlotProps,\n className: clsx(classes.label, typographySlotProps?.className),\n children: label\n });\n }\n return /*#__PURE__*/_jsxs(FormControlLabelRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(\"div\", {\n children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {\n ownerState: ownerState,\n \"aria-hidden\": true,\n className: classes.asterisk,\n children: [\"\\u2009\", '*']\n })]\n }) : label]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControlLabel.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 * If `true`, the component appears selected.\n */\n checked: PropTypes.bool,\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 props used for each slot inside.\n * @default {}\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n typography: PropTypes.object\n }),\n /**\n * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n */\n control: PropTypes.element.isRequired,\n /**\n * If `true`, the control is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is rendered as it is passed without an additional typography node.\n */\n disableTypography: PropTypes.bool,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * A text or an element to be used in an enclosing label element.\n */\n label: PropTypes.node,\n /**\n * The position of the label.\n * @default 'end'\n */\n labelPlacement: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * @ignore\n */\n name: PropTypes.string,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n typography: PropTypes.elementType\n }),\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 value of the component.\n */\n value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormGroupUtilityClass(slot) {\n return generateUtilityClass('MuiFormGroup', slot);\n}\nconst formGroupClasses = generateUtilityClasses('MuiFormGroup', ['root', 'row', 'error']);\nexport default formGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getFormGroupUtilityClass } from \"./formGroupClasses.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n row,\n error\n } = ownerState;\n const slots = {\n root: ['root', row && 'row', error && 'error']\n };\n return composeClasses(slots, getFormGroupUtilityClass, classes);\n};\nconst FormGroupRoot = styled('div', {\n name: 'MuiFormGroup',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.row && styles.row];\n }\n})({\n display: 'flex',\n flexDirection: 'column',\n flexWrap: 'wrap',\n variants: [{\n props: {\n row: true\n },\n style: {\n flexDirection: 'row'\n }\n }]\n});\n\n/**\n * `FormGroup` wraps controls such as `Checkbox` and `Switch`.\n * It provides compact row layout.\n * For the `Radio`, you should be using the `RadioGroup` component instead of this one.\n */\nconst FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormGroup'\n });\n const {\n className,\n row = false,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n row,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormGroupRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormGroup.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 * Display group of elements in a compact row.\n * @default false\n */\n row: PropTypes.bool,\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} : void 0;\nexport default FormGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;","'use client';\n\nvar _span;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport Typography from \"../Typography/index.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from \"./inputAdornmentClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePointerEvents,\n hiddenLabel,\n position,\n size,\n variant\n } = ownerState;\n const slots = {\n root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]\n };\n return composeClasses(slots, getInputAdornmentUtilityClass, classes);\n};\nconst InputAdornmentRoot = styled('div', {\n name: 'MuiInputAdornment',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n maxHeight: '2em',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n color: (theme.vars || theme).palette.action.active,\n variants: [{\n props: {\n variant: 'filled'\n },\n style: {\n [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n marginTop: 16\n }\n }\n }, {\n props: {\n position: 'start'\n },\n style: {\n marginRight: 8\n }\n }, {\n props: {\n position: 'end'\n },\n style: {\n marginLeft: 8\n }\n }, {\n props: {\n disablePointerEvents: true\n },\n style: {\n pointerEvents: 'none'\n }\n }]\n})));\nconst InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiInputAdornment'\n });\n const {\n children,\n className,\n component = 'div',\n disablePointerEvents = false,\n disableTypography = false,\n position,\n variant: variantProp,\n ...other\n } = props;\n const muiFormControl = useFormControl() || {};\n let variant = variantProp;\n if (variantProp && muiFormControl.variant) {\n if (process.env.NODE_ENV !== 'production') {\n if (variantProp === muiFormControl.variant) {\n console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');\n }\n }\n }\n if (muiFormControl && !variant) {\n variant = muiFormControl.variant;\n }\n const ownerState = {\n ...props,\n hiddenLabel: muiFormControl.hiddenLabel,\n size: muiFormControl.size,\n disablePointerEvents,\n position,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: null,\n children: /*#__PURE__*/_jsx(InputAdornmentRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {\n color: \"textSecondary\",\n children: children\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n }))) : null, children]\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputAdornment.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, normally an `IconButton` or string.\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 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 * Disable pointer events on the root.\n * This allows for the content of the adornment to focus the `input` on click.\n * @default false\n */\n disablePointerEvents: PropTypes.bool,\n /**\n * If children is a string then disable wrapping in a Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The position this adornment should appear relative to the `Input`.\n */\n position: PropTypes.oneOf(['end', 'start']).isRequired,\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 * Note: If you are using the `TextField` component or the `FormControl` component\n * you do not have to set this manually.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputAdornment;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getRadioGroupUtilityClass(slot) {\n return generateUtilityClass('MuiRadioGroup', slot);\n}\nconst radioGroupClasses = generateUtilityClasses('MuiRadioGroup', ['root', 'row', 'error']);\nexport default radioGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport FormGroup from \"../FormGroup/index.js\";\nimport { getRadioGroupUtilityClass } from \"./radioGroupClasses.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport RadioGroupContext from \"./RadioGroupContext.js\";\nimport useId from \"../utils/useId.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = props => {\n const {\n classes,\n row,\n error\n } = props;\n const slots = {\n root: ['root', row && 'row', error && 'error']\n };\n return composeClasses(slots, getRadioGroupUtilityClass, classes);\n};\nconst RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {\n const {\n // private\n // eslint-disable-next-line react/prop-types\n actions,\n children,\n className,\n defaultValue,\n name: nameProp,\n onChange,\n value: valueProp,\n ...other\n } = props;\n const rootRef = React.useRef(null);\n const classes = useUtilityClasses(props);\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'RadioGroup'\n });\n React.useImperativeHandle(actions, () => ({\n focus: () => {\n let input = rootRef.current.querySelector('input:not(:disabled):checked');\n if (!input) {\n input = rootRef.current.querySelector('input:not(:disabled)');\n }\n if (input) {\n input.focus();\n }\n }\n }), []);\n const handleRef = useForkRef(ref, rootRef);\n const name = useId(nameProp);\n const contextValue = React.useMemo(() => ({\n name,\n onChange(event) {\n setValueState(event.target.value);\n if (onChange) {\n onChange(event, event.target.value);\n }\n },\n value\n }), [name, onChange, setValueState, value]);\n return /*#__PURE__*/_jsx(RadioGroupContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(FormGroup, {\n role: \"radiogroup\",\n ref: handleRef,\n className: clsx(classes.root, className),\n ...other,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? RadioGroup.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 * @ignore\n */\n className: PropTypes.string,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * The name used to reference the value of the control.\n * If you don't provide this prop, it falls back to a randomly generated name.\n */\n name: PropTypes.string,\n /**\n * Callback fired when a radio button is selected.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * @param {string} value The value of the selected radio button.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * Value of the selected radio button. The DOM API casts this to a string.\n */\n value: PropTypes.any\n} : void 0;\nexport default RadioGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchUtilityClass(slot) {\n return generateUtilityClass('MuiSwitch', slot);\n}\nconst switchClasses = generateUtilityClasses('MuiSwitch', ['root', 'edgeStart', 'edgeEnd', 'switchBase', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium', 'checked', 'disabled', 'input', 'thumb', 'track']);\nexport default switchClasses;","'use client';\n\n// @inheritedComponent IconButton\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport switchClasses, { getSwitchUtilityClass } from \"./switchClasses.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n})), memoTheme(({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? theme.lighten(theme.palette[color].main, 0.62) : theme.darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n})));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track'\n})(memoTheme(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n boxSizing: 'border-box',\n border: '1px solid transparent',\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n})));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb'\n})(memoTheme(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n boxSizing: 'border-box',\n border: '1px solid transparent',\n width: 20,\n height: 20,\n borderRadius: '50%'\n})));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n edge,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalInputProps = slotProps.input;\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n className: clsx(classes.root, className),\n elementType: SwitchRoot,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n sx\n }\n });\n const [ThumbSlot, thumbSlotProps] = useSlot('thumb', {\n className: classes.thumb,\n elementType: SwitchThumb,\n externalForwardedProps,\n ownerState\n });\n const icon = /*#__PURE__*/_jsx(ThumbSlot, {\n ...thumbSlotProps\n });\n const [TrackSlot, trackSlotProps] = useSlot('track', {\n className: classes.track,\n elementType: SwitchTrack,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, {\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState,\n ...other,\n classes: {\n ...classes,\n root: classes.switchBase\n },\n slots: {\n ...(slots.switchBase && {\n root: slots.switchBase\n }),\n ...(slots.input && {\n input: slots.input\n })\n },\n slotProps: {\n ...(slotProps.switchBase && {\n root: typeof slotProps.switchBase === 'function' ? slotProps.switchBase(ownerState) : slotProps.switchBase\n }),\n input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n role: 'switch'\n })\n }\n }), /*#__PURE__*/_jsx(TrackSlot, {\n ...trackSlotProps\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.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 * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: 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(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n switchBase: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n track: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType,\n switchBase: PropTypes.elementType,\n thumb: PropTypes.elementType,\n track: PropTypes.elementType\n }),\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 value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Radio\";\n//#region src/radio-with-label.tsx\nvar o = t(i)(() => ({ \"& .MuiFormControlLabel-label\": {\n\tleft: \"-5px\",\n\tposition: \"relative\"\n} })), s = t(a)(() => ({ color: `${r.tertiary()} !important` })), c = ({ label: e, value: t, checked: r, onChange: i }) => /* @__PURE__ */ n(o, {\n\tvalue: t,\n\tcontrol: /* @__PURE__ */ n(s, {\n\t\tchecked: r,\n\t\tonChange: i\n\t}),\n\tlabel: e\n});\nc.propTypes = {\n\tlabel: e.string,\n\tvalue: e.string,\n\tchecked: e.bool,\n\tonChange: e.func\n};\n//#endregion\nexport { c as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r, jsxs as i } from \"react/jsx-runtime\";\nimport a from \"@mui/material/Tabs\";\nimport o from \"@mui/material/Tab\";\n//#region src/tabs/index.tsx\nvar s = n(o)(() => ({})), c = class extends e.Component {\n\tstatic propTypes = {\n\t\tclassName: t.string,\n\t\tcontentClassName: t.string,\n\t\tcontentStyle: t.object,\n\t\tchildren: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { value: 0 };\n\t}\n\thandleChange = (e, t) => {\n\t\tthis.setState({ value: t });\n\t};\n\trender() {\n\t\tlet { value: t } = this.state, { children: n, className: o, contentClassName: c, contentStyle: l = {} } = this.props;\n\t\treturn /* @__PURE__ */ i(\"div\", {\n\t\t\tclassName: o,\n\t\t\tchildren: [/* @__PURE__ */ r(a, {\n\t\t\t\tindicatorColor: \"primary\",\n\t\t\t\tvalue: t,\n\t\t\t\tonChange: this.handleChange,\n\t\t\t\tchildren: e.Children.map(n, (e, t) => e && e.props.title ? /* @__PURE__ */ r(s, { label: e.props.title }, t) : null)\n\t\t\t}), /* @__PURE__ */ r(\"div\", {\n\t\t\t\tclassName: c,\n\t\t\t\tstyle: l,\n\t\t\t\tchildren: n[t]\n\t\t\t})]\n\t\t});\n\t}\n};\n//#endregion\nexport { c as Tabs, c as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Checkbox\";\nimport { grey as o } from \"@mui/material/colors\";\n//#region src/checkbox.tsx\nvar s = t(i)(({ theme: e, mini: t }) => ({\n\tmargin: 0,\n\tmarginLeft: 0,\n\tpadding: 0,\n\t\"& .MuiFormControlLabel-label\": {\n\t\tfontSize: e.typography.fontSize - 1,\n\t\ttransform: \"translate(-4%, 2%)\",\n\t\tcolor: \"rgba(0,0,0,1.0)\",\n\t\t...t && {\n\t\t\tmarginLeft: e.spacing(1),\n\t\t\tcolor: o[700],\n\t\t\tfontSize: e.typography.fontSize - 3\n\t\t}\n\t}\n})), c = t(a)(({ theme: e, mini: t, error: n }) => ({\n\tcolor: `${r.tertiary()} !important`,\n\t...t && {\n\t\tmargin: 0,\n\t\tpadding: 0,\n\t\twidth: e.spacing(3),\n\t\theight: e.spacing(3)\n\t},\n\t...n && { color: `${e.palette.error.main} !important` }\n})), l = ({ mini: e, checked: t, onChange: r, value: i, label: a, error: o }) => /* @__PURE__ */ n(s, {\n\tmini: e,\n\tcontrol: /* @__PURE__ */ n(c, {\n\t\tchecked: t,\n\t\tonChange: r,\n\t\tvalue: i,\n\t\tmini: e,\n\t\terror: o\n\t}),\n\tlabel: a\n});\nl.propTypes = {\n\tmini: e.bool,\n\tchecked: e.bool.isRequired,\n\tonChange: e.func.isRequired,\n\tvalue: e.string,\n\tlabel: e.string.isRequired,\n\terror: e.bool\n}, l.defaultProps = {\n\tvalue: \"\",\n\tmini: !1,\n\terror: !1\n};\n//#endregion\nexport { l as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { isFinite as i } from \"@pie-element/shared-lodash\";\nimport a from \"debug\";\nimport o from \"@mui/material/TextField\";\nimport s from \"@mui/material/InputAdornment\";\n//#region src/number-text-field.tsx\nvar c = a(\"@pie-lib:config-ui:number-text-field\"), l = n(o)(({ theme: e }) => ({\n\tmarginRight: e.spacing(1),\n\t\"& .MuiInputLabel-root\": {\n\t\twidth: \"auto\",\n\t\tminWidth: \"max-content\",\n\t\tmaxWidth: \"none\",\n\t\twhiteSpace: \"nowrap\",\n\t\toverflow: \"visible\",\n\t\ttransform: \"translate(0, 8px) scale(0.75)\",\n\t\ttransformOrigin: \"top left\",\n\t\tposition: \"relative\"\n\t},\n\t\"& .MuiInputBase-root, & .MuiInput-root, & .MuiFilledInput-root, & .MuiOutlinedInput-root\": {\n\t\theight: \"auto\",\n\t\tminHeight: \"auto\",\n\t\tmarginTop: 0\n\t},\n\t\"& .MuiInputBase-input\": {\n\t\theight: \"auto\",\n\t\tminHeight: \"auto\",\n\t\tpadding: \"6px 0 7px\"\n\t}\n})), u = (e, t) => {\n\tif (!i(e) && !i(t)) return 0;\n\tif (!i(e) && i(t)) return t;\n\tif (i(e)) return e;\n}, d = class extends e.Component {\n\tstatic propTypes = {\n\t\tdisabled: t.bool,\n\t\tclassName: t.string,\n\t\tinputClassName: t.string,\n\t\tonChange: t.func.isRequired,\n\t\tvalue: t.number,\n\t\tmin: t.number,\n\t\tmax: t.number,\n\t\tlabel: t.string,\n\t\tsuffix: t.string,\n\t\tshowErrorWhenOutsideRange: t.bool,\n\t\tdisableUnderline: t.bool,\n\t\tvariant: t.string\n\t};\n\tstatic defaultProps = { showErrorWhenOutsideRange: !1 };\n\tconstructor(e) {\n\t\tsuper(e);\n\t\tlet t = this.clamp(e.value);\n\t\tthis.state = { value: t }, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tlet t = this.clamp(e.value, e.min, e.max);\n\t\tthis.setState({ value: t });\n\t}\n\tclamp(e, t = this.props.min, n = this.props.max) {\n\t\treturn i(e) ? (i(n) && (e = Math.min(e, n)), i(t) && (e = Math.max(e, t)), e) : u(t, n);\n\t}\n\tonBlur = (e) => {\n\t\tlet t = e.target.value, n = parseFloat(t);\n\t\tc(\"rawNumber: \", n);\n\t\tlet r = this.clamp(n);\n\t\tc(\"number: \", r), r !== this.state.value && (c(\"trigger update...\"), this.setState({ value: r.toString() }, () => {\n\t\t\tthis.props.onChange(e, r);\n\t\t}));\n\t};\n\tonChange(e) {\n\t\tlet t = e.target.value;\n\t\tthis.setState({ value: t });\n\t}\n\terrorMessage = () => {\n\t\tlet { min: e, max: t } = this.props;\n\t\tif (e && t) return `The value must be between ${e} and ${t}`;\n\t\tif (e) return `The value must be greater than ${e}`;\n\t\tif (t) return `The value must be less than ${t}`;\n\t};\n\tgetError = () => {\n\t\tlet { value: e } = this.state, t = parseFloat(e);\n\t\tif (this.clamp(t) !== t) return this.errorMessage();\n\t};\n\trender() {\n\t\tlet { className: e, label: t, disabled: n, suffix: i, min: a, max: o, inputClassName: c, disableUnderline: u, showErrorWhenOutsideRange: d, variant: f } = this.props, p = d && this.getError();\n\t\treturn /* @__PURE__ */ r(l, {\n\t\t\tvariant: u ? \"filled\" : f || \"standard\",\n\t\t\tinputRef: (e) => {\n\t\t\t\tthis.inputRef = e;\n\t\t\t},\n\t\t\tdisabled: n,\n\t\t\tlabel: t,\n\t\t\tInputLabelProps: { shrink: !0 },\n\t\t\tvalue: this.state.value,\n\t\t\terror: !!p,\n\t\t\thelperText: p,\n\t\t\tonChange: this.onChange,\n\t\t\tonBlur: this.onBlur,\n\t\t\tonKeyDown: (e) => {\n\t\t\t\te.key === \"Enter\" && this.inputRef && this.inputRef.blur();\n\t\t\t},\n\t\t\ttype: \"number\",\n\t\t\tclassName: e,\n\t\t\tslotProps: { input: {\n\t\t\t\tendAdornment: i && /* @__PURE__ */ r(s, {\n\t\t\t\t\tposition: \"end\",\n\t\t\t\t\tchildren: i\n\t\t\t\t}),\n\t\t\t\tclassName: c,\n\t\t\t\tinputProps: {\n\t\t\t\t\tmin: a,\n\t\t\t\t\tmax: o\n\t\t\t\t}\n\t\t\t} },\n\t\t\tmargin: \"normal\"\n\t\t});\n\t}\n};\n//#endregion\nexport { d as NumberTextField, d as default };\n","//#region src/fraction-to-number.ts\nvar e = (e) => typeof e == \"object\" && !!e && typeof e.n == \"number\" && typeof e.d == \"number\", t = (t) => {\n\tif (typeof t == \"number\") return t;\n\tif (e(t)) return (t.s ?? 1) * t.n / t.d;\n\tlet n = String(t).trim(), r = n.match(/^([+-]?\\d+)\\s*\\/\\s*([+-]?\\d+)$/);\n\treturn r ? Number.parseInt(r[1] ?? \"0\", 10) / Number.parseInt(r[2] ?? \"1\", 10) : Number(n);\n};\n//#endregion\nexport { t as fractionToNumber };\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"\n}), 'Add');","import { fractionToNumber as e } from \"./fraction-to-number.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport { isFinite as a } from \"@pie-element/shared-lodash\";\nimport o from \"@mui/material/IconButton\";\nimport s from \"@mui/material/TextField\";\nimport c from \"@mui/material/InputAdornment\";\nimport l from \"@mui/icons-material/Remove\";\nimport u from \"@mui/icons-material/Add\";\n//#region src/number-text-field-custom.tsx\nvar d = r(s)(() => ({\n\t\"& input[type=number]\": { MozAppearance: \"textfield\" },\n\t\"& input[type=number]::-webkit-outer-spin-button\": {\n\t\tWebkitAppearance: \"none\",\n\t\tmargin: 0\n\t},\n\t\"& input[type=number]::-webkit-inner-spin-button\": {\n\t\tWebkitAppearance: \"none\",\n\t\tmargin: 0\n\t}\n})), f = r(o)(() => ({ padding: \"2px\" })), p = (e, t) => {\n\tif (!a(e) && !a(t)) return 0;\n\tif (!a(e) && a(t)) return t;\n\tif (a(e)) return e;\n}, m = class extends t.Component {\n\tstatic propTypes = {\n\t\tclassName: n.string,\n\t\tcustomValues: n.array,\n\t\tdisabled: n.bool,\n\t\terror: n.bool,\n\t\tinputClassName: n.string,\n\t\thelperText: n.string,\n\t\tonChange: n.func.isRequired,\n\t\tonlyIntegersAllowed: n.bool,\n\t\tvalue: n.any,\n\t\tmin: n.number,\n\t\tmax: n.number,\n\t\tstep: n.number,\n\t\tlabel: n.string,\n\t\tdisableUnderline: n.bool,\n\t\ttextAlign: n.string,\n\t\tvariant: n.string,\n\t\ttype: n.string\n\t};\n\tstatic defaultProps = {\n\t\tstep: 1,\n\t\tcustomValues: [],\n\t\ttextAlign: \"center\",\n\t\tvariant: \"standard\",\n\t\tonlyIntegersAllowed: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e);\n\t\tlet { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value);\n\t\tthis.state = {\n\t\t\tvalue: t,\n\t\t\tcurrentIndex: n\n\t\t}, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tlet { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value, e.min, e.max);\n\t\tthis.setState({\n\t\t\tvalue: t,\n\t\t\tcurrentIndex: n\n\t\t});\n\t}\n\tclamp(e, t = this.props.min, n = this.props.max) {\n\t\tlet { customValues: r } = this.props;\n\t\treturn (r || []).length > 0 ? e : a(e) ? (a(n) && (e = Math.min(e, n)), a(t) && (e = Math.max(e, t)), e) : p(t, n);\n\t}\n\tnormalizeValueAndIndex = (e, t, n, r) => {\n\t\tlet { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);\n\t\tif ((e || []).length > 0 && o === -1) {\n\t\t\tlet t = i === \"text\" ? this.getClosestFractionValue(e, a) : this.getClosestValue(e, a);\n\t\t\treturn {\n\t\t\t\tvalue: t.value,\n\t\t\t\tcurrentIndex: t.index\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tvalue: a,\n\t\t\tcurrentIndex: o\n\t\t};\n\t};\n\tgetClosestValue = (e, t) => e.reduce((e, n, r) => Math.abs(n - t) < Math.abs(e.value - t) ? {\n\t\tvalue: n,\n\t\tindex: r\n\t} : e, {\n\t\tvalue: e[0],\n\t\tindex: 0\n\t});\n\tgetClosestFractionValue = (t, n) => t.reduce((t, r, i) => Math.abs(e(r) - e(n)) < Math.abs(e(t.value) - e(n)) ? {\n\t\tvalue: r,\n\t\tindex: i\n\t} : t, {\n\t\tvalue: t[0],\n\t\tindex: 0\n\t});\n\tgetValidFraction = (e) => {\n\t\tif (this.isPositiveInteger(e.trim())) return e.trim();\n\t\tif (e.trim() === \"\" || e.trim().split(\"/\").length !== 2) return !1;\n\t\tlet [t, n] = e.trim().split(\"/\");\n\t\treturn isNaN(t) || isNaN(n) || (t = parseFloat(t), n = parseFloat(n), !Number.isInteger(t) || !Number.isInteger(n)) || t < 0 || n < 1 ? !1 : t + \"/\" + n;\n\t};\n\tisPositiveInteger = (e) => e >>> 0 === parseFloat(e);\n\tonBlur = (e) => {\n\t\tlet { customValues: t, onlyIntegersAllowed: n, type: r } = this.props, { value: i } = e.target;\n\t\tr === \"text\" && (i = this.getValidFraction(i) || this.props.value);\n\t\tlet a = n ? Math.round(parseFloat(i)) : parseFloat(i);\n\t\tr === \"text\" && (a = i.trim());\n\t\tlet { value: o, currentIndex: s } = this.normalizeValueAndIndex(t, a);\n\t\tthis.setState({\n\t\t\tvalue: o.toString(),\n\t\t\tcurrentIndex: s\n\t\t}, () => this.props.onChange(e, o));\n\t};\n\tonChange(e) {\n\t\tlet { type: t } = this.props, { value: n } = e.target;\n\t\tt !== \"text\" && typeof n == \"string\" && n.trim() === \"\" || this.setState({ value: n });\n\t}\n\tchangeValue(e, t = 1, n = !1) {\n\t\te.preventDefault();\n\t\tlet { customValues: r, step: i, onlyIntegersAllowed: a, onChange: o } = this.props, { currentIndex: s, value: c } = this.state, l = s + t * 1, u;\n\t\tif (r.length > 0) {\n\t\t\tif (l < 0 || l >= r.length) return;\n\t\t\tu = r[l];\n\t\t} else {\n\t\t\tlet e = ((a ? parseInt(c) : parseFloat(c)) * 1e4 + i * t * 1e4) / 1e4;\n\t\t\tu = this.clamp(e);\n\t\t}\n\t\tthis.setState({\n\t\t\tvalue: u.toString(),\n\t\t\tcurrentIndex: l\n\t\t}, () => {\n\t\t\tn && o(e, u);\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: e, label: t, disabled: n, error: r, min: o, max: s, customValues: p, inputClassName: m, disableUnderline: h, helperText: g, variant: _, textAlign: v, type: y = \"number\" } = this.props, { value: b } = this.state, x = e, S = !1, C = !1;\n\t\treturn p.length > 0 ? (S = b === p[0], C = b === p[p.length - 1]) : a(o) && a(s) && (S = b === o, C = b === s), /* @__PURE__ */ i(d, {\n\t\t\tvariant: _,\n\t\t\tinputRef: (e) => this.inputRef = e,\n\t\t\tdisabled: n,\n\t\t\tlabel: t,\n\t\t\tvalue: b,\n\t\t\terror: r,\n\t\t\thelperText: g,\n\t\t\tonChange: this.onChange,\n\t\t\tonBlur: this.onBlur,\n\t\t\tonKeyPress: (e) => {\n\t\t\t\te.key === \"Enter\" && this.inputRef && this.inputRef.blur();\n\t\t\t},\n\t\t\tonKeyDown: (e) => {\n\t\t\t\te.key === \"ArrowUp\" && this.changeValue(e), e.key === \"ArrowDown\" && this.changeValue(e, -1);\n\t\t\t},\n\t\t\ttitle: \"\",\n\t\t\ttype: y,\n\t\t\tclassName: x,\n\t\t\tInputProps: {\n\t\t\t\tclassName: m,\n\t\t\t\tdisableUnderline: h,\n\t\t\t\tstartAdornment: /* @__PURE__ */ i(c, {\n\t\t\t\t\tposition: \"start\",\n\t\t\t\t\tchildren: /* @__PURE__ */ i(f, {\n\t\t\t\t\t\tdisabled: n || S,\n\t\t\t\t\t\tonClick: (e) => this.changeValue(e, -1, !0),\n\t\t\t\t\t\tsize: \"large\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ i(l, { fontSize: \"small\" })\n\t\t\t\t\t})\n\t\t\t\t}),\n\t\t\t\tendAdornment: /* @__PURE__ */ i(c, {\n\t\t\t\t\tposition: \"end\",\n\t\t\t\t\tchildren: /* @__PURE__ */ i(f, {\n\t\t\t\t\t\tdisabled: n || C,\n\t\t\t\t\t\tonClick: (e) => this.changeValue(e, 1, !0),\n\t\t\t\t\t\tsize: \"large\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ i(u, { fontSize: \"small\" })\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\tinputProps: {\n\t\t\t\tstyle: { textAlign: v },\n\t\t\t\tmin: o,\n\t\t\t\tmax: s\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\nexport { m as NumberTextFieldCustom, m as default };\n","import e from \"./radio-with-label.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { InputContainer as o } from \"@pie-lib/render-ui\";\n//#region src/two-choice.tsx\nfunction s(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction c(e, t) {\n\treturn !e || s(e) ? e : s(e.default) ? e.default : t && s(e[t]) ? e[t] : t && s(e[t]?.default) ? e[t].default : e;\n}\nvar l = c(o, \"InputContainer\") || c(f.InputContainer, \"InputContainer\"), u = a, d = u.default, f = d && typeof d == \"object\" ? d : u, p = r(\"div\")(({ theme: e, direction: t }) => ({\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\tpaddingLeft: 0,\n\tmarginTop: e.spacing(1),\n\t...t === \"vertical\" && { flexDirection: \"column\" }\n})), m = class extends t.Component {\n\tstatic propTypes = {\n\t\theader: n.string.isRequired,\n\t\tclassName: n.string,\n\t\tcustomLabel: n.func,\n\t\topts: n.array.isRequired,\n\t\tvalue: n.string,\n\t\tonChange: n.func.isRequired,\n\t\tdirection: n.oneOf([\"horizontal\", \"vertical\"])\n\t};\n\thandleChange = (e) => {\n\t\tthis.props.onChange(e.currentTarget.value);\n\t};\n\trender() {\n\t\tlet { header: t, className: n, customLabel: r, opts: a, value: o, direction: s } = this.props, c = a.map((e) => typeof e == \"string\" ? {\n\t\t\tlabel: e,\n\t\t\tvalue: e\n\t\t} : e), u = r || e;\n\t\treturn /* @__PURE__ */ i(l, {\n\t\t\tlabel: t,\n\t\t\tclassName: n,\n\t\t\tchildren: /* @__PURE__ */ i(p, {\n\t\t\t\tdirection: s,\n\t\t\t\tchildren: c.map((e, t) => /* @__PURE__ */ i(u, {\n\t\t\t\t\tvalue: e.value,\n\t\t\t\t\tchecked: e.value === o,\n\t\t\t\t\tonChange: this.handleChange,\n\t\t\t\t\tlabel: e.label\n\t\t\t\t}, t))\n\t\t\t})\n\t\t});\n\t}\n}, h = n.shape({\n\tlabel: n.string,\n\tvalue: n.string\n}), g = class extends t.Component {\n\tstatic propTypes = {\n\t\theader: n.string.isRequired,\n\t\tvalue: n.string.isRequired,\n\t\tonChange: n.func.isRequired,\n\t\tone: n.oneOfType([h, n.string]),\n\t\ttwo: n.oneOfType([h, n.string]),\n\t\tclassName: n.string,\n\t\tcustomLabel: n.func\n\t};\n\trender() {\n\t\tlet { one: e, two: t, header: n, className: r, customLabel: a, value: o, onChange: s } = this.props;\n\t\treturn /* @__PURE__ */ i(m, {\n\t\t\tcustomLabel: a,\n\t\t\theader: n,\n\t\t\tclassName: r,\n\t\t\topts: [e, t],\n\t\t\tvalue: o,\n\t\t\tonChange: s\n\t\t});\n\t}\n};\n//#endregion\nexport { m as NChoice, g as default };\n","//#region \\0rolldown/runtime.js\nvar e = Object.defineProperty, t = (t, n) => {\n\tlet r = {};\n\tfor (var i in t) e(r, i, {\n\t\tget: t[i],\n\t\tenumerable: !0\n\t});\n\treturn n || e(r, Symbol.toStringTag, { value: \"Module\" }), r;\n};\n//#endregion\nexport { t as __exportAll };\n","import { Tabs as e } from \"../tabs/index.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i, jsxs as a } from \"react/jsx-runtime\";\n//#region src/layout/layout-contents.tsx\nvar o = r(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tposition: \"relative\"\n})), s = r(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\"\n})), c = r(\"div\")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), l = r(\"div\")(() => ({ flex: \"1\" })), u = r(\"div\")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), d = class extends t.Component {\n\tstatic propTypes = {\n\t\tmode: n.oneOf([\"tabbed\", \"inline\"]),\n\t\tsecondary: n.oneOfType([n.arrayOf(n.node), n.node]),\n\t\tchildren: n.oneOfType([n.arrayOf(n.node), n.node]),\n\t\tdimensions: n.object\n\t};\n\tgetConfiguration = () => {\n\t\tlet { secondary: e } = this.props;\n\t\treturn e?.props?.configuration || e?.props?.children?.props?.configuration || void 0;\n\t};\n\trender() {\n\t\tlet { mode: t, secondary: n, children: r, dimensions: d } = this.props, { minHeight: f, minWidth: p, maxHeight: m, maxWidth: h } = d || {}, g = this.getConfiguration(), _ = Object.entries(g || {}).some(([, e]) => !!e?.settings);\n\t\tif (!_) try {\n\t\t\t_ = JSON.stringify(g)?.match(/settings\":true/)?.length;\n\t\t} catch (e) {\n\t\t\tconsole.log(e.toString());\n\t\t}\n\t\treturn /* @__PURE__ */ a(o, {\n\t\t\tstyle: {\n\t\t\t\tminHeight: f,\n\t\t\t\tminWidth: p,\n\t\t\t\tmaxHeight: m,\n\t\t\t\tmaxWidth: h\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tt === \"inline\" && /* @__PURE__ */ a(s, { children: [/* @__PURE__ */ i(l, {\n\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\tchildren: r\n\t\t\t\t}), _ && /* @__PURE__ */ i(u, {\n\t\t\t\t\tclassName: \"settings-container\",\n\t\t\t\t\tchildren: n\n\t\t\t\t})] }),\n\t\t\t\tt === \"tabbed\" && _ && /* @__PURE__ */ a(e, {\n\t\t\t\t\tonChange: this.onTabsChange,\n\t\t\t\t\tcontentClassName: \"content-container\",\n\t\t\t\t\tindicatorColor: \"primary\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ i(c, {\n\t\t\t\t\t\ttitle: \"Design\",\n\t\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\t\tchildren: r\n\t\t\t\t\t}), /* @__PURE__ */ i(c, {\n\t\t\t\t\t\ttitle: \"Settings\",\n\t\t\t\t\t\tclassName: \"settings-container\",\n\t\t\t\t\t\tchildren: n\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\tt === \"tabbed\" && !_ && /* @__PURE__ */ i(c, {\n\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\tchildren: r\n\t\t\t\t})\n\t\t\t]\n\t\t});\n\t}\n};\n//#endregion\nexport { d as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js\nfunction e() {\n\treturn e = Object.assign ? Object.assign.bind() : function(e) {\n\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\tvar n = arguments[t];\n\t\t\tfor (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);\n\t\t}\n\t\treturn e;\n\t}, e.apply(null, arguments);\n}\n//#endregion\nexport { e as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\nfunction e(e, t) {\n\tif (e == null) return {};\n\tvar n = {};\n\tfor (var r in e) if ({}.hasOwnProperty.call(e, r)) {\n\t\tif (t.indexOf(r) !== -1) continue;\n\t\tn[r] = e[r];\n\t}\n\treturn n;\n}\n//#endregion\nexport { e as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction e(t, n) {\n\treturn e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {\n\t\treturn e.__proto__ = t, e;\n\t}, e(t, n);\n}\n//#endregion\nexport { e as default };\n","import e from \"./setPrototypeOf.js\";\n//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\nfunction t(t, n) {\n\tt.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);\n}\n//#endregion\nexport { t as default };\n","//#region ../../../node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js\nvar e = (function() {\n\tif (typeof Map < \"u\") return Map;\n\tfunction e(e, t) {\n\t\tvar n = -1;\n\t\treturn e.some(function(e, r) {\n\t\t\treturn e[0] === t ? (n = r, !0) : !1;\n\t\t}), n;\n\t}\n\treturn function() {\n\t\tfunction t() {\n\t\t\tthis.__entries__ = [];\n\t\t}\n\t\treturn Object.defineProperty(t.prototype, \"size\", {\n\t\t\tget: function() {\n\t\t\t\treturn this.__entries__.length;\n\t\t\t},\n\t\t\tenumerable: !0,\n\t\t\tconfigurable: !0\n\t\t}), t.prototype.get = function(t) {\n\t\t\tvar n = e(this.__entries__, t), r = this.__entries__[n];\n\t\t\treturn r && r[1];\n\t\t}, t.prototype.set = function(t, n) {\n\t\t\tvar r = e(this.__entries__, t);\n\t\t\t~r ? this.__entries__[r][1] = n : this.__entries__.push([t, n]);\n\t\t}, t.prototype.delete = function(t) {\n\t\t\tvar n = this.__entries__, r = e(n, t);\n\t\t\t~r && n.splice(r, 1);\n\t\t}, t.prototype.has = function(t) {\n\t\t\treturn !!~e(this.__entries__, t);\n\t\t}, t.prototype.clear = function() {\n\t\t\tthis.__entries__.splice(0);\n\t\t}, t.prototype.forEach = function(e, t) {\n\t\t\tt === void 0 && (t = null);\n\t\t\tfor (var n = 0, r = this.__entries__; n < r.length; n++) {\n\t\t\t\tvar i = r[n];\n\t\t\t\te.call(t, i[1], i[0]);\n\t\t\t}\n\t\t}, t;\n\t}();\n})(), t = typeof window < \"u\" && typeof document < \"u\" && window.document === document, n = (function() {\n\treturn typeof global < \"u\" && global.Math === Math ? global : typeof self < \"u\" && self.Math === Math ? self : typeof window < \"u\" && window.Math === Math ? window : Function(\"return this\")();\n})(), r = (function() {\n\treturn typeof requestAnimationFrame == \"function\" ? requestAnimationFrame.bind(n) : function(e) {\n\t\treturn setTimeout(function() {\n\t\t\treturn e(Date.now());\n\t\t}, 1e3 / 60);\n\t};\n})(), i = 2;\nfunction a(e, t) {\n\tvar n = !1, a = !1, o = 0;\n\tfunction s() {\n\t\tn && (n = !1, e()), a && l();\n\t}\n\tfunction c() {\n\t\tr(s);\n\t}\n\tfunction l() {\n\t\tvar e = Date.now();\n\t\tif (n) {\n\t\t\tif (e - o < i) return;\n\t\t\ta = !0;\n\t\t} else n = !0, a = !1, setTimeout(c, t);\n\t\to = e;\n\t}\n\treturn l;\n}\nvar o = 20, s = [\n\t\"top\",\n\t\"right\",\n\t\"bottom\",\n\t\"left\",\n\t\"width\",\n\t\"height\",\n\t\"size\",\n\t\"weight\"\n], c = typeof MutationObserver < \"u\", l = function() {\n\tfunction e() {\n\t\tthis.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = a(this.refresh.bind(this), o);\n\t}\n\treturn e.prototype.addObserver = function(e) {\n\t\t~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();\n\t}, e.prototype.removeObserver = function(e) {\n\t\tvar t = this.observers_, n = t.indexOf(e);\n\t\t~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();\n\t}, e.prototype.refresh = function() {\n\t\tthis.updateObservers_() && this.refresh();\n\t}, e.prototype.updateObservers_ = function() {\n\t\tvar e = this.observers_.filter(function(e) {\n\t\t\treturn e.gatherActive(), e.hasActive();\n\t\t});\n\t\treturn e.forEach(function(e) {\n\t\t\treturn e.broadcastActive();\n\t\t}), e.length > 0;\n\t}, e.prototype.connect_ = function() {\n\t\t!t || this.connected_ || (document.addEventListener(\"transitionend\", this.onTransitionEnd_), window.addEventListener(\"resize\", this.refresh), c ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {\n\t\t\tattributes: !0,\n\t\t\tchildList: !0,\n\t\t\tcharacterData: !0,\n\t\t\tsubtree: !0\n\t\t})) : (document.addEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);\n\t}, e.prototype.disconnect_ = function() {\n\t\t!t || !this.connected_ || (document.removeEventListener(\"transitionend\", this.onTransitionEnd_), window.removeEventListener(\"resize\", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);\n\t}, e.prototype.onTransitionEnd_ = function(e) {\n\t\tvar t = e.propertyName, n = t === void 0 ? \"\" : t;\n\t\ts.some(function(e) {\n\t\t\treturn !!~n.indexOf(e);\n\t\t}) && this.refresh();\n\t}, e.getInstance = function() {\n\t\treturn this.instance_ ||= new e(), this.instance_;\n\t}, e.instance_ = null, e;\n}(), u = (function(e, t) {\n\tfor (var n = 0, r = Object.keys(t); n < r.length; n++) {\n\t\tvar i = r[n];\n\t\tObject.defineProperty(e, i, {\n\t\t\tvalue: t[i],\n\t\t\tenumerable: !1,\n\t\t\twritable: !1,\n\t\t\tconfigurable: !0\n\t\t});\n\t}\n\treturn e;\n}), d = (function(e) {\n\treturn e && e.ownerDocument && e.ownerDocument.defaultView || n;\n}), f = S(0, 0, 0, 0);\nfunction p(e) {\n\treturn parseFloat(e) || 0;\n}\nfunction m(e) {\n\treturn [...arguments].slice(1).reduce(function(t, n) {\n\t\tvar r = e[\"border-\" + n + \"-width\"];\n\t\treturn t + p(r);\n\t}, 0);\n}\nfunction h(e) {\n\tfor (var t = [\n\t\t\"top\",\n\t\t\"right\",\n\t\t\"bottom\",\n\t\t\"left\"\n\t], n = {}, r = 0, i = t; r < i.length; r++) {\n\t\tvar a = i[r], o = e[\"padding-\" + a];\n\t\tn[a] = p(o);\n\t}\n\treturn n;\n}\nfunction g(e) {\n\tvar t = e.getBBox();\n\treturn S(0, 0, t.width, t.height);\n}\nfunction _(e) {\n\tvar t = e.clientWidth, n = e.clientHeight;\n\tif (!t && !n) return f;\n\tvar r = d(e).getComputedStyle(e), i = h(r), a = i.left + i.right, o = i.top + i.bottom, s = p(r.width), c = p(r.height);\n\tif (r.boxSizing === \"border-box\" && (Math.round(s + a) !== t && (s -= m(r, \"left\", \"right\") + a), Math.round(c + o) !== n && (c -= m(r, \"top\", \"bottom\") + o)), !y(e)) {\n\t\tvar l = Math.round(s + a) - t, u = Math.round(c + o) - n;\n\t\tMath.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);\n\t}\n\treturn S(i.left, i.top, s, c);\n}\nvar v = (function() {\n\treturn typeof SVGGraphicsElement < \"u\" ? function(e) {\n\t\treturn e instanceof d(e).SVGGraphicsElement;\n\t} : function(e) {\n\t\treturn e instanceof d(e).SVGElement && typeof e.getBBox == \"function\";\n\t};\n})();\nfunction y(e) {\n\treturn e === d(e).document.documentElement;\n}\nfunction b(e) {\n\treturn t ? v(e) ? g(e) : _(e) : f;\n}\nfunction x(e) {\n\tvar t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < \"u\" ? DOMRectReadOnly : Object).prototype);\n\treturn u(a, {\n\t\tx: t,\n\t\ty: n,\n\t\twidth: r,\n\t\theight: i,\n\t\ttop: n,\n\t\tright: t + r,\n\t\tbottom: i + n,\n\t\tleft: t\n\t}), a;\n}\nfunction S(e, t, n, r) {\n\treturn {\n\t\tx: e,\n\t\ty: t,\n\t\twidth: n,\n\t\theight: r\n\t};\n}\nvar C = function() {\n\tfunction e(e) {\n\t\tthis.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = S(0, 0, 0, 0), this.target = e;\n\t}\n\treturn e.prototype.isActive = function() {\n\t\tvar e = b(this.target);\n\t\treturn this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;\n\t}, e.prototype.broadcastRect = function() {\n\t\tvar e = this.contentRect_;\n\t\treturn this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;\n\t}, e;\n}(), w = function() {\n\tfunction e(e, t) {\n\t\tvar n = x(t);\n\t\tu(this, {\n\t\t\ttarget: e,\n\t\t\tcontentRect: n\n\t\t});\n\t}\n\treturn e;\n}(), T = function() {\n\tfunction t(t, n, r) {\n\t\tif (this.activeObservations_ = [], this.observations_ = new e(), typeof t != \"function\") throw TypeError(\"The callback provided as parameter 1 is not a function.\");\n\t\tthis.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;\n\t}\n\treturn t.prototype.observe = function(e) {\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tif (!(typeof Element > \"u\" || !(Element instanceof Object))) {\n\t\t\tif (!(e instanceof d(e).Element)) throw TypeError(\"parameter 1 is not of type \\\"Element\\\".\");\n\t\t\tvar t = this.observations_;\n\t\t\tt.has(e) || (t.set(e, new C(e)), this.controller_.addObserver(this), this.controller_.refresh());\n\t\t}\n\t}, t.prototype.unobserve = function(e) {\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tif (!(typeof Element > \"u\" || !(Element instanceof Object))) {\n\t\t\tif (!(e instanceof d(e).Element)) throw TypeError(\"parameter 1 is not of type \\\"Element\\\".\");\n\t\t\tvar t = this.observations_;\n\t\t\tt.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));\n\t\t}\n\t}, t.prototype.disconnect = function() {\n\t\tthis.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);\n\t}, t.prototype.gatherActive = function() {\n\t\tvar e = this;\n\t\tthis.clearActive(), this.observations_.forEach(function(t) {\n\t\t\tt.isActive() && e.activeObservations_.push(t);\n\t\t});\n\t}, t.prototype.broadcastActive = function() {\n\t\tif (this.hasActive()) {\n\t\t\tvar e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {\n\t\t\t\treturn new w(e.target, e.broadcastRect());\n\t\t\t});\n\t\t\tthis.callback_.call(e, t, e), this.clearActive();\n\t\t}\n\t}, t.prototype.clearActive = function() {\n\t\tthis.activeObservations_.splice(0);\n\t}, t.prototype.hasActive = function() {\n\t\treturn this.activeObservations_.length > 0;\n\t}, t;\n}(), E = typeof WeakMap < \"u\" ? /* @__PURE__ */ new WeakMap() : new e(), D = function() {\n\tfunction e(t) {\n\t\tif (!(this instanceof e)) throw TypeError(\"Cannot call a class as a function.\");\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tvar n = new T(t, l.getInstance(), this);\n\t\tE.set(this, n);\n\t}\n\treturn e;\n}();\n[\n\t\"observe\",\n\t\"unobserve\",\n\t\"disconnect\"\n].forEach(function(e) {\n\tD.prototype[e] = function() {\n\t\tvar t;\n\t\treturn (t = E.get(this))[e].apply(t, arguments);\n\t};\n});\nvar O = (function() {\n\treturn n.ResizeObserver === void 0 ? D : n.ResizeObserver;\n})();\n//#endregion\nexport { O as default };\n","import e from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js\";\nimport t from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\";\nimport n from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\";\nimport r from \"../../../../resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js\";\nimport { Component as i, createElement as a } from \"react\";\nimport o from \"prop-types\";\n//#region ../../../node_modules/.bun/react-measure@2.5.2+6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js\nvar s = [\n\t\"client\",\n\t\"offset\",\n\t\"scroll\",\n\t\"bounds\",\n\t\"margin\"\n];\nfunction c(e) {\n\tvar t = [];\n\treturn s.forEach(function(n) {\n\t\te[n] && t.push(n);\n\t}), t;\n}\nfunction l(e, t) {\n\tvar n = {};\n\tif (t.indexOf(\"client\") > -1 && (n.client = {\n\t\ttop: e.clientTop,\n\t\tleft: e.clientLeft,\n\t\twidth: e.clientWidth,\n\t\theight: e.clientHeight\n\t}), t.indexOf(\"offset\") > -1 && (n.offset = {\n\t\ttop: e.offsetTop,\n\t\tleft: e.offsetLeft,\n\t\twidth: e.offsetWidth,\n\t\theight: e.offsetHeight\n\t}), t.indexOf(\"scroll\") > -1 && (n.scroll = {\n\t\ttop: e.scrollTop,\n\t\tleft: e.scrollLeft,\n\t\twidth: e.scrollWidth,\n\t\theight: e.scrollHeight\n\t}), t.indexOf(\"bounds\") > -1) {\n\t\tvar r = e.getBoundingClientRect();\n\t\tn.bounds = {\n\t\t\ttop: r.top,\n\t\t\tright: r.right,\n\t\t\tbottom: r.bottom,\n\t\t\tleft: r.left,\n\t\t\twidth: r.width,\n\t\t\theight: r.height\n\t\t};\n\t}\n\tif (t.indexOf(\"margin\") > -1) {\n\t\tvar i = getComputedStyle(e);\n\t\tn.margin = {\n\t\t\ttop: i ? parseInt(i.marginTop) : 0,\n\t\t\tright: i ? parseInt(i.marginRight) : 0,\n\t\t\tbottom: i ? parseInt(i.marginBottom) : 0,\n\t\t\tleft: i ? parseInt(i.marginLeft) : 0\n\t\t};\n\t}\n\treturn n;\n}\nfunction u(e) {\n\treturn e && e.ownerDocument && e.ownerDocument.defaultView || window;\n}\nfunction d(s) {\n\treturn function(d) {\n\t\tvar f, p;\n\t\treturn p = f = /*#__PURE__*/ function(i) {\n\t\t\tn(o, i);\n\t\t\tfunction o() {\n\t\t\t\tvar e, t = [...arguments];\n\t\t\t\treturn e = i.call.apply(i, [this].concat(t)) || this, e.state = { contentRect: {\n\t\t\t\t\tentry: {},\n\t\t\t\t\tclient: {},\n\t\t\t\t\toffset: {},\n\t\t\t\t\tscroll: {},\n\t\t\t\t\tbounds: {},\n\t\t\t\t\tmargin: {}\n\t\t\t\t} }, e._animationFrameID = null, e._resizeObserver = null, e._node = null, e._window = null, e.measure = function(t) {\n\t\t\t\t\tvar n = l(e._node, s || c(e.props));\n\t\t\t\t\tt && (n.entry = t[0].contentRect), e._animationFrameID = e._window.requestAnimationFrame(function() {\n\t\t\t\t\t\te._resizeObserver !== null && (e.setState({ contentRect: n }), typeof e.props.onResize == \"function\" && e.props.onResize(n));\n\t\t\t\t\t});\n\t\t\t\t}, e._handleRef = function(t) {\n\t\t\t\t\te._resizeObserver !== null && e._node !== null && e._resizeObserver.unobserve(e._node), e._node = t, e._window = u(e._node);\n\t\t\t\t\tvar n = e.props.innerRef;\n\t\t\t\t\tn && (typeof n == \"function\" ? n(e._node) : n.current = e._node), e._resizeObserver !== null && e._node !== null && e._resizeObserver.observe(e._node);\n\t\t\t\t}, e;\n\t\t\t}\n\t\t\tvar f = o.prototype;\n\t\t\treturn f.componentDidMount = function() {\n\t\t\t\tthis._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new r(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == \"function\" && this.props.onResize(l(this._node, s || c(this.props))));\n\t\t\t}, f.componentWillUnmount = function() {\n\t\t\t\tthis._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);\n\t\t\t}, f.render = function() {\n\t\t\t\tvar n = this.props;\n\t\t\t\treturn n.innerRef, n.onResize, a(d, e({}, t(n, [\"innerRef\", \"onResize\"]), {\n\t\t\t\t\tmeasureRef: this._handleRef,\n\t\t\t\t\tmeasure: this.measure,\n\t\t\t\t\tcontentRect: this.state.contentRect\n\t\t\t\t}));\n\t\t\t}, o;\n\t\t}(i), f.propTypes = {\n\t\t\tclient: o.bool,\n\t\t\toffset: o.bool,\n\t\t\tscroll: o.bool,\n\t\t\tbounds: o.bool,\n\t\t\tmargin: o.bool,\n\t\t\tinnerRef: o.oneOfType([o.object, o.func]),\n\t\t\tonResize: o.func\n\t\t}, p;\n\t};\n}\nvar f = d()(function(e) {\n\tvar t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;\n\treturn i({\n\t\tmeasure: t,\n\t\tmeasureRef: n,\n\t\tcontentRect: r\n\t});\n});\nf.displayName = \"Measure\", f.propTypes.children = o.func;\n//#endregion\nexport { f as default, d as withContentRect };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\n//#region src/layout/settings-box.tsx\nvar a = n(\"div\")(() => ({\n\tbackgroundColor: i.white(),\n\tborder: `2px solid ${i.border()}`,\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tjustifyContent: \"flex-start\",\n\tminWidth: \"275px\",\n\tmaxWidth: \"300px\",\n\tpadding: \"20px 4px 4px 20px\",\n\tzIndex: 99\n})), o = class extends e.Component {\n\tstatic propTypes = {\n\t\tclassName: t.string,\n\t\tchildren: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired\n\t};\n\tstatic defaultProps = {};\n\trender() {\n\t\tlet { className: e, children: t } = this.props;\n\t\treturn /* @__PURE__ */ r(a, {\n\t\t\tclassName: e,\n\t\t\tchildren: t\n\t\t});\n\t}\n};\n//#endregion\nexport { o as SettingsBox, o as default };\n","import e, { withContentRect as t } from \"../node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js\";\nimport n from \"./layout-contents.js\";\nimport { SettingsBox as r } from \"./settings-box.js\";\nimport i from \"react\";\nimport a from \"prop-types\";\nimport { StyledEngineProvider as o, ThemeProvider as s, createTheme as c } from \"@mui/material/styles\";\nimport { jsx as l, jsxs as u } from \"react/jsx-runtime\";\n//#region src/layout/config-layout.tsx\nvar d = c({\n\ttypography: { fontFamily: \"inherit\" },\n\tcomponents: { MuiButton: { styleOverrides: { contained: {\n\t\tbackgroundColor: \"#e0e0e0\",\n\t\tcolor: \"#000000\",\n\t\t\"&:hover\": { backgroundColor: \"#bdbdbd\" }\n\t} } } }\n}), f = class extends i.Component {\n\tstatic propTypes = {\n\t\tchildren: a.oneOfType([\n\t\t\ta.string,\n\t\t\ta.arrayOf(a.element),\n\t\t\ta.element\n\t\t]),\n\t\tclassName: a.string,\n\t\tdimensions: a.object,\n\t\tsettings: a.element,\n\t\tsidePanelMinWidth: a.number,\n\t\thideSettings: a.bool,\n\t\textraCSSRules: a.shape({\n\t\t\tnames: a.arrayOf(a.string),\n\t\t\trules: a.string\n\t\t})\n\t};\n\tstatic defaultProps = {\n\t\tsidePanelMinWidth: 1135,\n\t\thideSettings: !1,\n\t\tdimensions: {}\n\t};\n\tconstructor(...e) {\n\t\tsuper(...e), this.state = { layoutMode: void 0 };\n\t}\n\tonResize = (e) => {\n\t\tlet { bounds: t } = e, { sidePanelMinWidth: n, dimensions: r } = this.props, { maxWidth: i } = r || {}, a = t.width > n && (!i || i > n) ? \"inline\" : \"tabbed\";\n\t\ta !== this.state.layoutMode && this.setState({ layoutMode: a });\n\t};\n\trender() {\n\t\treturn /* @__PURE__ */ l(o, {\n\t\t\tinjectFirst: !0,\n\t\t\tchildren: /* @__PURE__ */ l(s, {\n\t\t\t\ttheme: d,\n\t\t\t\tchildren: /* @__PURE__ */ l(e, {\n\t\t\t\t\tbounds: !0,\n\t\t\t\t\tonResize: this.onResize,\n\t\t\t\t\tchildren: ({ measureRef: e }) => {\n\t\t\t\t\t\tlet { children: t, settings: i, hideSettings: a, dimensions: o, extraCSSRules: s } = this.props, { layoutMode: c } = this.state, d = a ? null : c === \"inline\" ? /* @__PURE__ */ l(r, {\n\t\t\t\t\t\t\tclassName: \"settings-box\",\n\t\t\t\t\t\t\tchildren: i\n\t\t\t\t\t\t}) : i;\n\t\t\t\t\t\treturn /* @__PURE__ */ u(\"div\", {\n\t\t\t\t\t\t\tref: e,\n\t\t\t\t\t\t\tclassName: \"main-container extraCSSRules\",\n\t\t\t\t\t\t\tchildren: [s?.rules ? /* @__PURE__ */ l(\"style\", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${s.rules} }` } }) : null, /* @__PURE__ */ l(n, {\n\t\t\t\t\t\t\t\tmode: c,\n\t\t\t\t\t\t\t\tsecondary: d,\n\t\t\t\t\t\t\t\tdimensions: o,\n\t\t\t\t\t\t\t\tchildren: t\n\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n}, p = t(\"bounds\")(f);\n//#endregion\nexport { p as default };\n","import { __exportAll as e } from \"../_virtual/_rolldown/runtime.js\";\nimport t from \"./layout-contents.js\";\nimport n from \"./config-layout.js\";\n//#region src/layout/index.ts\nvar r = /* @__PURE__ */ e({\n\tConfigLayout: () => n,\n\tLayoutContents: () => t\n});\n//#endregion\nexport { n as ConfigLayout, t as LayoutContents, r as layout_exports };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n, jsxs as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\nimport a from \"@mui/material/Switch\";\nimport o from \"@mui/material/InputLabel\";\n//#region src/settings/toggle.tsx\nvar s = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\twidth: \"100%\",\n\tjustifyContent: \"space-between\"\n})), c = t(o)(({ theme: e }) => ({\n\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\tfontSize: e.typography.fontSize,\n\tpaddingTop: e.spacing(2)\n})), l = t(a)(({ checked: e }) => ({\n\t\"&.Mui-checked .MuiSwitch-thumb\": { color: `${i.tertiary()} !important` },\n\t\"&.Mui-checked .MuiSwitch-track\": { backgroundColor: `${i.tertiaryLight()} !important` },\n\t\"& .MuiSwitch-track\": { backgroundColor: e ? `${i.tertiaryLight()} !important` : void 0 }\n})), u = ({ checked: e, disabled: t, label: i, toggle: a }) => /* @__PURE__ */ r(s, { children: [/* @__PURE__ */ n(c, { children: i }), /* @__PURE__ */ n(l, {\n\tchecked: e,\n\tdisabled: t,\n\tonChange: (e) => a(e.target.checked)\n})] });\nu.propTypes = {\n\tchecked: e.bool,\n\tdisabled: e.bool,\n\tlabel: e.string.isRequired,\n\ttoggle: e.func.isRequired\n};\n//#endregion\nexport { u as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Radio\";\n//#region src/settings/settings-radio-label.tsx\nvar o = t(i)(({ theme: e }) => ({ \"& .MuiFormControlLabel-label\": {\n\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\tfontSize: e.typography.fontSize - 2,\n\tleft: \"-5px\",\n\tposition: \"relative\"\n} })), s = t(a)(() => ({ color: `${r.tertiary()} !important` })), c = ({ label: e, value: t, checked: r, onChange: i }) => /* @__PURE__ */ n(o, {\n\tvalue: t,\n\tcontrol: /* @__PURE__ */ n(s, {\n\t\tchecked: r,\n\t\tonChange: i\n\t}),\n\tlabel: e\n});\nc.propTypes = {\n\tlabel: e.string,\n\tvalue: e.string,\n\tchecked: e.bool,\n\tonChange: e.func\n};\n//#endregion\nexport { c as default };\n","import e from \"../checkbox.js\";\nimport { NumberTextField as t } from \"../number-text-field.js\";\nimport { NChoice as n } from \"../two-choice.js\";\nimport r from \"./toggle.js\";\nimport i from \"./settings-radio-label.js\";\nimport a from \"react\";\nimport o from \"prop-types\";\nimport { styled as s } from \"@mui/material/styles\";\nimport { jsx as c, jsxs as l } from \"react/jsx-runtime\";\nimport { get as u, set as d } from \"@pie-element/shared-lodash\";\nimport f from \"@mui/material/Typography\";\nimport p from \"@mui/material/Input\";\nimport m from \"@mui/material/Select\";\nimport h from \"@mui/material/MenuItem\";\nimport g from \"debug\";\n//#region src/settings/panel.tsx\nvar _ = g(\"pie-lib:config-ui:settings:panel\"), v = {\n\tlabel: o.string,\n\tvalue: o.string\n}, y = {\n\tlabel: o.string,\n\tvalue: o.string,\n\tonChange: o.func\n}, b = ({ label: t, value: n, onChange: r }) => /* @__PURE__ */ c(e, {\n\tchecked: n,\n\tlabel: t,\n\tonChange: (e) => {\n\t\tr(e.target.checked);\n\t}\n});\nb.propTypes = {\n\tlabel: o.string,\n\tvalue: o.bool,\n\tonChange: o.func\n};\nvar x = s(n)(({ theme: e }) => ({\n\tmarginTop: e.spacing(.5),\n\tpaddingBottom: e.spacing(.5),\n\twidth: \"100%\",\n\t\"& > label\": {\n\t\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\t\ttransform: \"translate(0, 10px) scale(1)\",\n\t\tfontSize: \"18px\",\n\t\tmarginTop: e.spacing(2.5)\n\t},\n\t\"& > div\": { marginTop: e.spacing(2.5) }\n})), S = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ c(x, {\n\tdirection: \"horizontal\",\n\tcustomLabel: i,\n\tvalue: t,\n\theader: e,\n\topts: r,\n\tonChange: n\n});\nS.propTypes = {\n\t...y,\n\tchoices: o.arrayOf(o.shape(v))\n};\nvar C = S, w = s(\"p\")(({ theme: e }) => ({\n\tmargin: 0,\n\tfontSize: e.typography.fontSize\n})), T = s(m)(({ theme: e }) => ({\n\tmarginTop: e.spacing(.5),\n\tborder: \"2px solid lightgrey\",\n\tpadding: `0 ${e.spacing(1)}`,\n\tborderRadius: \"4px\"\n})), E = ({ label: e, value: t, onChange: n, choices: r = [] }) => {\n\tlet i = (e) => typeof e == \"string\" ? e : e.label, a = (e) => typeof e == \"string\" ? e : e.value;\n\treturn /* @__PURE__ */ l(\"div\", { children: [e && /* @__PURE__ */ c(w, { children: e }), /* @__PURE__ */ c(T, {\n\t\tvalue: t || r && r[0],\n\t\tonChange: ({ target: e }) => n(e.value),\n\t\tinput: /* @__PURE__ */ c(p, { id: `dropdown-${e}` }),\n\t\tdisableUnderline: !0,\n\t\tMenuProps: { transitionDuration: {\n\t\t\tenter: 225,\n\t\t\texit: 195\n\t\t} },\n\t\tchildren: r.map((e, t) => /* @__PURE__ */ c(h, {\n\t\t\tvalue: a(e),\n\t\t\tchildren: i(e)\n\t\t}, t))\n\t})] });\n};\nE.propTypes = {\n\t...y,\n\tchoices: o.arrayOf(o.string)\n};\nvar D = s(f)(({ theme: e }) => ({\n\tmarginRight: e.spacing(3),\n\tmarginTop: e.spacing(1)\n})), O = ({ label: e }) => /* @__PURE__ */ c(D, { children: e }), k = s(t)(({ theme: e }) => ({\n\twidth: \"35%\",\n\tmarginRight: e.spacing(3),\n\tmarginTop: e.spacing(1),\n\t\"& .MuiInputBase-root\": {\n\t\tmarginTop: e.spacing(.5),\n\t\tborder: \"2px solid lightgrey\",\n\t\tborderRadius: \"4px\",\n\t\tpadding: `0 ${e.spacing(1)}`,\n\t\tbackgroundColor: \"transparent\"\n\t}\n})), A = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ c(k, {\n\tvariant: \"standard\",\n\tlabel: e || \"Label\",\n\tvalue: t,\n\tmax: a,\n\tmin: i,\n\tonChange: (e, t) => n(t),\n\tsuffix: r,\n\tshowErrorWhenOutsideRange: !0,\n\tdisableUnderline: !0\n});\nA.propTypes = {\n\t...y,\n\tsuffix: o.string,\n\tmin: o.number,\n\tmax: o.number,\n\tvalue: o.number\n}, O.propTypes = { ...y };\nvar j = ({ disabled: e, label: t, value: n, onChange: i }) => /* @__PURE__ */ c(r, {\n\tlabel: t,\n\tchecked: !!n,\n\tdisabled: !!e,\n\ttoggle: i\n});\nj.propTypes = {\n\t...y,\n\tvalue: o.bool\n};\nvar M = {\n\ttoggle: j,\n\tradio: C,\n\tdropdown: E,\n\tnumberField: A,\n\tcheckbox: b,\n\ttextField: O\n}, N = s(\"div\")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), P = s(\"div\")(({ theme: e }) => ({\n\tcolor: \"#495B8F\",\n\tfontSize: e.typography.fontSize + 2,\n\tfontWeight: 600,\n\tmarginBottom: e.spacing(1)\n})), F = s(\"p\")(({ theme: e }) => ({\n\tfontSize: e.typography.fontSize,\n\tmarginBottom: 0\n})), I = (e) => {\n\tlet { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {\n\t\tlet { isConfigProperty: o, ...s } = u(e, r || n), l = u(o ? i : t, n), d = {\n\t\t\t...s,\n\t\t\tkey: n,\n\t\t\tvalue: l\n\t\t}, f = M[d.type];\n\t\treturn /* @__PURE__ */ c(f, {\n\t\t\t...d,\n\t\t\tonChange: (e) => a(n, e, o)\n\t\t}, n);\n\t}, s = (e, t) => {\n\t\tlet n = e[t];\n\t\tif (!n) return null;\n\t\tlet { type: r, label: i, fields: a, choices: s } = n;\n\t\treturn r === \"numberFields\" ? /* @__PURE__ */ l(\"div\", { children: [/* @__PURE__ */ c(F, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === \"checkboxes\" ? /* @__PURE__ */ l(\"div\", { children: [/* @__PURE__ */ c(\"p\", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);\n\t};\n\treturn /* @__PURE__ */ l(N, { children: [/* @__PURE__ */ c(P, { children: n }), Object.keys(r).map((e) => s(r, e))] });\n};\nI.propTypes = {\n\tmodel: o.object,\n\tlabel: o.string,\n\tgroup: o.object,\n\tconfiguration: o.object,\n\tonChange: o.func\n};\nvar L = class extends a.Component {\n\tstatic propTypes = {\n\t\tmodel: o.object,\n\t\tconfiguration: o.object,\n\t\tgroups: o.object,\n\t\tonChangeModel: o.func,\n\t\tonChangeConfiguration: o.func,\n\t\tmodal: o.object\n\t};\n\tstatic defaultProps = {\n\t\tonChangeModel: () => {},\n\t\tonChangeConfiguration: () => {}\n\t};\n\tchange = (e, t, n = !1) => {\n\t\t_(\"[changeModel]\", e, t);\n\t\tlet { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };\n\t\tn ? (d(o, e, t), i(o, e)) : (d(a, e, t), r(a, e));\n\t};\n\trender() {\n\t\tlet { groups: e, model: t, configuration: n, modal: r } = this.props;\n\t\treturn _(\"render:\", t), /* @__PURE__ */ l(\"div\", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ c(I, {\n\t\t\tlabel: r,\n\t\t\tmodel: t,\n\t\t\tconfiguration: n,\n\t\t\tgroup: e[r],\n\t\t\tonChange: this.change\n\t\t}, r) : null), r] });\n\t}\n};\n//#endregion\nexport { L as Panel, L as default };\n","import { __exportAll as e } from \"../_virtual/_rolldown/runtime.js\";\nimport { Panel as t } from \"./panel.js\";\n//#region src/settings/index.ts\nvar n = /* @__PURE__ */ e({\n\tPanel: () => t,\n\tcheckbox: () => u,\n\tcheckboxes: () => d,\n\tdropdown: () => s,\n\tnumberField: () => c,\n\tnumberFields: () => l,\n\tradio: () => o,\n\ttextField: () => r,\n\ttoggle: () => i\n}), r = (e, t = !0) => ({\n\tlabel: e,\n\ttype: \"textField\",\n\tisConfigProperty: t\n}), i = (e, t = !1, n = !1) => ({\n\ttype: \"toggle\",\n\tlabel: e,\n\tisConfigProperty: t,\n\tdisabled: n\n}), a = (e) => typeof e == \"string\" ? {\n\tlabel: e,\n\tvalue: e\n} : e, o = function() {\n\tlet [e, t, n = !1] = Array.prototype.slice.call(arguments);\n\treturn {\n\t\ttype: \"radio\",\n\t\tlabel: e,\n\t\tchoices: t && t.map((e) => a(e)),\n\t\tisConfigProperty: n\n\t};\n}, s = (e, t, n = !1) => ({\n\ttype: \"dropdown\",\n\tlabel: e,\n\tchoices: t,\n\tisConfigProperty: n\n}), c = (e, t, n = !1) => ({\n\t...t,\n\tlabel: e,\n\ttype: \"numberField\",\n\tisConfigProperty: n\n}), l = (e, t, n = !1) => (Object.keys(t).map((e) => {\n\tt[e] = c(t[e].label, t[e], n);\n}), {\n\ttype: \"numberFields\",\n\tlabel: e,\n\tfields: t\n}), u = (e, t, n = !1) => ({\n\t...t,\n\tlabel: e,\n\ttype: \"checkbox\",\n\tisConfigProperty: n\n}), d = (e, t, n = !1) => (Object.keys(t).map((e) => {\n\tt[e] = u(t[e].label, t[e], n);\n}), {\n\ttype: \"checkboxes\",\n\tlabel: e,\n\tchoices: t\n});\n//#endregion\nexport { t as Panel, u as checkbox, d as checkboxes, s as dropdown, c as numberField, l as numberFields, o as radio, n as settings_exports, r as textField, i as toggle };\n","import e from \"./alert-dialog.js\";\nimport { FeedbackSelector as t } from \"./feedback-config/feedback-selector.js\";\nimport { FeedbackConfig as n, buildDefaults as r } from \"./feedback-config/index.js\";\nimport { InputCheckbox as i, InputRadio as a, InputSwitch as o } from \"./inputs.js\";\nimport { Langs as s, LanguageControls as c } from \"./langs.js\";\nimport { Tabs as l } from \"./tabs/index.js\";\nimport u from \"./checkbox.js\";\nimport d from \"./form-section.js\";\nimport f from \"./help.js\";\nimport p from \"./input.js\";\nimport { NumberTextField as m } from \"./number-text-field.js\";\nimport { NumberTextFieldCustom as h } from \"./number-text-field-custom.js\";\nimport g, { NChoice as _ } from \"./two-choice.js\";\nimport v from \"./mui-box/index.js\";\nimport { TagsInput as y } from \"./tags-input/index.js\";\nimport { ChoiceConfiguration as b } from \"./choice-configuration/index.js\";\nimport { layout_exports as x } from \"./layout/index.js\";\nimport { choice_utils_exports as S } from \"./choice-utils.js\";\nimport C from \"./with-stateful-model.js\";\nimport w from \"./settings/toggle.js\";\nimport T from \"./settings/display-size.js\";\nimport { settings_exports as E } from \"./settings/index.js\";\nimport * as D from \"@pie-lib/render-ui\";\nimport { InputContainer as O } from \"@pie-lib/render-ui\";\n//#region src/index.ts\nfunction k(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction A(e, t) {\n\treturn !e || k(e) ? e : k(e.default) ? e.default : t && k(e[t]) ? e[t] : t && k(e[t]?.default) ? e[t].default : e;\n}\nvar j = A(O, \"InputContainer\") || A(P.InputContainer, \"InputContainer\"), M = D, N = M.default, P = N && typeof N == \"object\" ? N : M;\n//#endregion\nexport { e as AlertDialog, u as Checkbox, b as ChoiceConfiguration, T as DisplaySize, n as FeedbackConfig, t as FeedbackSelector, d as FormSection, f as Help, p as Input, i as InputCheckbox, j as InputContainer, a as InputRadio, o as InputSwitch, s as Langs, c as LanguageControls, v as MuiBox, _ as NChoice, m as NumberTextField, h as NumberTextFieldCustom, l as Tabs, y as TagsInput, w as Toggle, g as TwoChoice, S as choiceUtils, r as feedbackConfigDefaults, x as layout, E as settings, C as withStatefulModel };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { Fragment as n, jsx as r, jsxs as i } from \"react/jsx-runtime\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { InputContainer as o, color as s } from \"@pie-lib/render-ui\";\nimport c from \"@pie-lib/editable-html-tip-tap\";\nimport { Accordion as l, AccordionDetails as u, AccordionSummary as d, Typography as f } from \"@mui/material\";\nimport p from \"@mui/icons-material/ExpandMore\";\nimport { NumberTextFieldCustom as m, Toggle as h } from \"@pie-lib/config-ui\";\n//#region src/grid-setup.tsx\nfunction g(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction _(e, t) {\n\treturn !e || g(e) ? e : g(e.default) ? e.default : t && g(e[t]) ? e[t] : t && g(e[t]?.default) ? e[t].default : e;\n}\nvar v = _(o, \"InputContainer\") || _(x.InputContainer, \"InputContainer\"), y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = t(\"div\")(() => ({ width: \"450px\" })), C = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\twidth: \"100%\"\n})), w = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"center\"\n})), T = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-around\",\n\talignItems: \"center\"\n})), E = t(\"div\")(({ theme: e }) => ({\n\twidth: \"130px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`\n})), D = t(\"div\")(({ theme: e }) => ({\n\twidth: \"160px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`,\n\t\"& .MuiFormControl-root\": { width: \"100%\" }\n})), O = t(\"div\")(({ theme: e }) => ({\n\twidth: \"230px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`,\n\t\"& .MuiFormControl-root\": { width: \"100%\" }\n})), k = t(f)(({ theme: e }) => ({\n\tfontStyle: \"italic\",\n\tmargin: `${e.spacing(1)} 0`\n})), A = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\",\n\talignItems: \"center\"\n})), j = t(f)(() => ({ color: s.disabled() })), M = t(\"div\")(({ theme: e }) => ({ paddingTop: e.spacing(2) })), N = (e) => {\n\tlet { disabled: t, displayedFields: n, labelValue: a, labelValues: o, gridValue: s, gridValues: c, onChange: l } = e, { labelStep: u = {}, step: d = {} } = n;\n\treturn /* @__PURE__ */ i(w, { children: [d && d.enabled && /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(m, {\n\t\tlabel: d.label || \"\",\n\t\tvalue: s,\n\t\tcustomValues: c,\n\t\tvariant: \"outlined\",\n\t\tdisabled: t,\n\t\tonChange: (e, t) => l(\"step\", t)\n\t}) }), u && u.enabled && /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(m, {\n\t\tlabel: u.label || \"\",\n\t\tvalue: a,\n\t\tcustomValues: o,\n\t\tvariant: \"outlined\",\n\t\tdisabled: t,\n\t\tonChange: (e, t) => l(\"labelStep\", t)\n\t}) })] });\n};\nN.propTypes = {\n\tdisabled: e.bool,\n\tdisplayedFields: e.object,\n\tlabelValue: e.number,\n\tlabelValues: e.array,\n\tgridValue: e.number,\n\tgridValues: e.array,\n\tonChange: e.func\n};\nvar P = (e) => {\n\tlet { disabled: t, displayedFields: n, displayHeader: a, label: o, maxValue: s, minValue: l, onChange: u, type: d } = e, { axisLabel: p = {}, min: h = {}, max: g = {} } = n;\n\treturn /* @__PURE__ */ i(w, { children: [\n\t\ta && /* @__PURE__ */ i(f, {\n\t\t\tvariant: \"subtitle2\",\n\t\t\tchildren: [/* @__PURE__ */ r(\"i\", { children: d === \"domain\" ? \"x\" : \"y\" }), \"-axis\"]\n\t\t}),\n\t\th && h.enabled && /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(m, {\n\t\t\tlabel: h.label || \"\",\n\t\t\tvalue: l,\n\t\t\tmin: -1e4,\n\t\t\tmax: s - .05,\n\t\t\tvariant: \"outlined\",\n\t\t\tdisabled: t,\n\t\t\tonChange: (e, t) => u(\"min\", t)\n\t\t}) }),\n\t\tg && g.enabled && /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(m, {\n\t\t\tlabel: g.label || \"\",\n\t\t\tvalue: s,\n\t\t\tmin: l + .05,\n\t\t\tmax: 1e4,\n\t\t\tvariant: \"outlined\",\n\t\t\tdisabled: t,\n\t\t\tonChange: (e, t) => u(\"max\", t)\n\t\t}) }),\n\t\tp && p.enabled && /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(v, {\n\t\t\tlabel: p.label || \"\",\n\t\t\tchildren: /* @__PURE__ */ r(M, { children: /* @__PURE__ */ r(c, {\n\t\t\t\tonChange: (e) => u(\"axisLabel\", e),\n\t\t\t\tmarkup: o || \"\",\n\t\t\t\tcharactersLimit: 5,\n\t\t\t\tonKeyDown: (e) => e.key === \"Enter\",\n\t\t\t\tactivePlugins: [\n\t\t\t\t\t\"bold\",\n\t\t\t\t\t\"italic\",\n\t\t\t\t\t\"underline\",\n\t\t\t\t\t\"strikethrough\"\n\t\t\t\t]\n\t\t\t}) })\n\t\t}) })\n\t] });\n};\nP.propTypes = {\n\tdisabled: e.bool,\n\tdisplayedFields: e.object,\n\tdisplayHeader: e.bool,\n\tlabel: e.string,\n\tmaxValue: e.number,\n\tminValue: e.number,\n\ttype: e.string,\n\tonChange: e.func\n};\nvar F = (e) => {\n\tlet { domain: t, displayedFields: a = {}, gridValues: o = {}, includeAxes: s, labelValues: c = {}, onChange: g, onChangeView: _, range: v, size: y, sizeConstraints: b, standardGrid: x } = e, D = {\n\t\tmin: 2,\n\t\tmax: 41\n\t}, { axisLabel: M = {}, dimensionsEnabled: F, includeAxesEnabled: I, labelStep: L = {}, min: R = {}, max: z = {}, standardGridEnabled: B, step: V = {} } = a || {}, H = R.enabled || z.enabled || M.enabled || V.enabled || L.enabled, U = {\n\t\tstep: V,\n\t\tlabelStep: L\n\t}, W = {\n\t\tmin: R,\n\t\tmax: z,\n\t\taxisLabel: M\n\t}, G = (e) => {\n\t\tlet n = (e) => {\n\t\t\tlet n = e === \"domain\" ? t : v;\n\t\t\treturn {\n\t\t\t\tmin: 1,\n\t\t\t\tmax: n.max < D.min || n.max > D.max ? 16 : n.max,\n\t\t\t\tstep: 1,\n\t\t\t\tlabelStep: 0\n\t\t\t};\n\t\t}, r = {\n\t\t\t...v,\n\t\t\t...e ? { labelStep: 1 } : n(\"range\")\n\t\t}, i = {\n\t\t\t...t,\n\t\t\t...e ? { labelStep: 1 } : n(\"domain\")\n\t\t};\n\t\tg({\n\t\t\tincludeAxes: e,\n\t\t\trange: r,\n\t\t\tdomain: i\n\t\t});\n\t}, K = (e) => {\n\t\tg({\n\t\t\tstandardGrid: e,\n\t\t\trange: {\n\t\t\t\t...t,\n\t\t\t\taxisLabel: v.axisLabel\n\t\t\t},\n\t\t\tgraph: {\n\t\t\t\t...y,\n\t\t\t\theight: y.width\n\t\t\t}\n\t\t});\n\t}, q = (e, t) => {\n\t\tlet n = {\n\t\t\t...y,\n\t\t\t[e]: t\n\t\t};\n\t\tx && (n.height = t), g({ graph: n });\n\t}, J = (e, n) => {\n\t\tt[e] = n, x && e !== \"axisLabel\" && (v[e] = n), g({\n\t\t\tdomain: t,\n\t\t\trange: v\n\t\t});\n\t}, Y = (e, t) => {\n\t\tv[e] = t, g({ range: v });\n\t}, X = /* @__PURE__ */ i(n, { children: [\n\t\t/* @__PURE__ */ i(T, { children: [/* @__PURE__ */ r(P, {\n\t\t\tdisplayedFields: W,\n\t\t\tdisplayHeader: H,\n\t\t\ttype: \"domain\",\n\t\t\tminValue: t.min,\n\t\t\tmaxValue: t.max,\n\t\t\tlabel: t.axisLabel,\n\t\t\tincludeAxes: s,\n\t\t\tonChange: J\n\t\t}), /* @__PURE__ */ r(P, {\n\t\t\tdisplayedFields: W,\n\t\t\tdisplayHeader: H,\n\t\t\ttype: \"range\",\n\t\t\tminValue: v.min,\n\t\t\tmaxValue: v.max,\n\t\t\tlabel: v.axisLabel,\n\t\t\tdisabled: x,\n\t\t\tincludeAxes: s,\n\t\t\tonChange: Y\n\t\t})] }),\n\t\t(R.enabled || z.enabled) && /* @__PURE__ */ r(k, { children: \"If you want the axis to be visible, use a zero or negative Min Value, and a positive Max Value\" }),\n\t\t(V.enabled || L.enabled) && /* @__PURE__ */ i(T, { children: [/* @__PURE__ */ r(N, {\n\t\t\tdisplayedFields: U,\n\t\t\tgridValue: t.step,\n\t\t\tlabelValue: t.labelStep,\n\t\t\tgridValues: o.domain || [],\n\t\t\tlabelValues: c.domain || [],\n\t\t\tonChange: J\n\t\t}), /* @__PURE__ */ r(N, {\n\t\t\tdisabled: x,\n\t\t\tdisplayedFields: U,\n\t\t\tgridValue: v.step,\n\t\t\tlabelValue: v.labelStep,\n\t\t\tgridValues: o.range || [],\n\t\t\tlabelValues: c.range || [],\n\t\t\tonChange: Y\n\t\t})] }),\n\t\tL.enabled && /* @__PURE__ */ r(k, { children: \"For unnumbered gridlines, enter a label interval of 0\" })\n\t] }), Z = z.enabled ? /* @__PURE__ */ i(w, { children: [/* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(m, {\n\t\tlabel: \"Number of Vertical Gridlines\",\n\t\tvalue: t.max,\n\t\tmin: !s && D.min,\n\t\tmax: !s && D.max,\n\t\tvariant: \"outlined\",\n\t\tonChange: (e, t) => J(\"max\", t)\n\t}) }), /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(m, {\n\t\tlabel: \"Number of Horizontal Gridlines\",\n\t\tvalue: v.max,\n\t\tmin: !s && D.min,\n\t\tmax: !s && D.max,\n\t\tvariant: \"outlined\",\n\t\tdisabled: x,\n\t\tonChange: (e, t) => Y(\"max\", t)\n\t}) })] }) : null;\n\treturn /* @__PURE__ */ r(S, { children: /* @__PURE__ */ i(l, {\n\t\tonChange: _,\n\t\tTransitionProps: { timeout: {\n\t\t\tenter: 225,\n\t\t\texit: 195\n\t\t} },\n\t\tchildren: [/* @__PURE__ */ r(d, {\n\t\t\texpandIcon: /* @__PURE__ */ r(p, {}),\n\t\t\tchildren: /* @__PURE__ */ r(f, {\n\t\t\t\tvariant: \"subtitle1\",\n\t\t\t\tchildren: \"Customize Grid Setup\"\n\t\t\t})\n\t\t}), /* @__PURE__ */ r(u, { children: /* @__PURE__ */ i(C, { children: [\n\t\t\tI && /* @__PURE__ */ r(h, {\n\t\t\t\tlabel: \"Include axes and labels?\",\n\t\t\t\ttoggle: G,\n\t\t\t\tchecked: s\n\t\t\t}),\n\t\t\tB && /* @__PURE__ */ r(h, {\n\t\t\t\tlabel: \"Constrain to standard coordinate grid?\",\n\t\t\t\ttoggle: K,\n\t\t\t\tchecked: x\n\t\t\t}),\n\t\t\ts ? X : Z,\n\t\t\tF && /* @__PURE__ */ i(A, { children: [\n\t\t\t\t/* @__PURE__ */ i(\"div\", { children: [/* @__PURE__ */ r(f, { children: \"Dimensions(px)\" }), /* @__PURE__ */ i(j, { children: [\n\t\t\t\t\t\"Min \",\n\t\t\t\t\tb.min,\n\t\t\t\t\t\", Max \",\n\t\t\t\t\tb.max\n\t\t\t\t] })] }),\n\t\t\t\t/* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(m, {\n\t\t\t\t\tlabel: \"Width\",\n\t\t\t\t\tvalue: y.width,\n\t\t\t\t\tmin: b.min,\n\t\t\t\t\tmax: b.max,\n\t\t\t\t\tstep: b.step,\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tonChange: (e, t) => q(\"width\", t)\n\t\t\t\t}) }),\n\t\t\t\t/* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(m, {\n\t\t\t\t\tlabel: \"Height\",\n\t\t\t\t\tvalue: y.height,\n\t\t\t\t\tmin: b.min,\n\t\t\t\t\tmax: b.max,\n\t\t\t\t\tstep: b.step,\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tdisabled: x,\n\t\t\t\t\tonChange: (e, t) => q(\"height\", t)\n\t\t\t\t}) })\n\t\t\t] })\n\t\t] }) })]\n\t}) });\n};\nF.propTypes = {\n\tdomain: e.object,\n\tdisplayedFields: e.object,\n\tgridValues: e.object,\n\tincludeAxes: e.bool,\n\tlabelValues: e.object,\n\tonChange: e.func,\n\tonChangeView: e.func,\n\trange: e.object,\n\tsize: e.object,\n\tsizeConstraints: e.object,\n\tstandardGrid: e.bool\n};\n//#endregion\nexport { F as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/utils.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport { isEqual } from '@pie-element/shared-lodash';\n\n/*Valid grid values*/\nconst VALID_GRID_VALUES = [\n 0.01, 0.02, 0.04, 0.05, 0.0625, 0.1, 0.125, 0.2, 0.25, 0.5, 1, 2, 3, 4, 5, 8, 10, 12, 15, 20, 40, 50, 64, 100, 500,\n 1000,\n];\n\n// same as VALID_GRID_VALUES but next values are excluded: 0.04, 0.0625, 0.125, 3, 4, 8, 12, 15, 40, 64\nconst PREFERRED_VALID_GRID_VALUES = [0.01, 0.02, 0.05, 0.1, 0.2, 0.25, 0.5, 1, 2, 5, 10, 20, 50, 100, 500, 1000];\n\n/*Valid label values*/\nexport const VALID_LABEL_VALUES = {\n 0.01: [0, 0.01, 0.02, 0.04, 0.05, 0.1],\n 0.02: [0, 0.02, 0.04, 0.1],\n 0.04: [0, 0.04, 0.08, 0.16, 0.2],\n 0.05: [0, 0.05, 0.1, 0.2, 0.25],\n 0.0625: [0, 0.0625, 0.125, 0.25, 0.5],\n 0.1: [0, 0.1, 0.2, 0.4, 0.5, 1],\n 0.125: [0, 0.125, 0.25, 0.5, 1],\n 0.2: [0, 0.2, 0.5, 0.1],\n 0.25: [0, 0.25, 0.5, 1, 2],\n 0.5: [0, 0.5, 1, 2],\n 1: [0, 1, 2, 4, 5, 10],\n 2: [0, 2, 4, 8, 10],\n 3: [0, 3, 6, 12, 15],\n 4: [0, 4, 8, 16, 20],\n 5: [0, 5, 10, 20, 25],\n 8: [0, 8, 16, 32, 40, 64],\n 10: [0, 10, 20, 40, 50, 100],\n 12: [0, 12, 24],\n 15: [0, 15, 30, 60],\n 20: [0, 20, 40, 80, 100],\n 40: [0, 40, 80, 160, 200],\n 50: [0, 50, 100, 200, 250],\n 64: [0, 64, 128],\n 100: [0, 100, 200, 400, 500],\n 500: [0, 500, 1000, 2500],\n 1000: [0, 1000, 2000, 4000, 5000],\n};\n\n/*\n * Function to get grid values\n * @param {Object} axis - axis object\n * @param {Number} size - size of the axis\n * @param {Boolean} prefferedValues - flag to get preffered values\n * */\nexport const getGridValues = (axis, size, prefferedValues = false) => {\n const minValue = (10 * (axis.max - axis.min)) / size;\n const maxValue = minValue * 10;\n const values = prefferedValues ? PREFERRED_VALID_GRID_VALUES : VALID_GRID_VALUES;\n return values.filter((value) => value >= minValue && value <= maxValue);\n};\n\n/*\n * Function to get label values\n * @param {Number} value - value of the axis step\n * */\nexport const getLabelValues = (value) => VALID_LABEL_VALUES[value] || [];\n\n/*\n * Function to apply constraints\n * @param {Object} axis - axis object\n * @param {Number} size - size of the axis\n * @param {Array} oldGridValues - old grid values\n * @param {Array} oldLabelValues - old label values\n * */\nexport const applyConstraints = (axis, size, oldGridValues, oldLabelValues) => {\n const gridValues = getGridValues(axis, size);\n let labelValues = getLabelValues(axis.step);\n if (!isEqual(oldGridValues, gridValues) && !gridValues.includes(axis.step)) {\n const preferredValues = getGridValues(axis, size, true);\n const lowestValue = preferredValues[0] || 1;\n axis.step = lowestValue;\n labelValues = getLabelValues(lowestValue);\n if (!labelValues.includes(axis.labelStep)) {\n axis.labelStep = lowestValue;\n }\n return { gridValues, labelValues };\n }\n if (!isEqual(oldLabelValues, labelValues) && !labelValues.includes(axis.labelStep)) {\n axis.labelStep = axis.step;\n }\n return { gridValues, labelValues };\n};\n\n// also used in pie-lib/graphing/utils as 'getTickValues'\n/*\n * Function to get plotable points\n * @param {Object} prop - axis object\n * */\nconst getPlotablePoints = (prop) => {\n const tickValues = [];\n let tickVal = 0;\n while (tickVal >= prop.min && tickValues.indexOf(tickVal) < 0) {\n tickValues.push(tickVal);\n tickVal = Math.round((tickVal - prop.step) * 10000) / 10000;\n }\n tickVal = Math.round(prop.step * 10000) / 10000;\n while (tickVal <= prop.max && tickValues.indexOf(tickVal) < 0) {\n tickValues.push(tickVal);\n tickVal = Math.round((tickVal + prop.step) * 10000) / 10000;\n }\n // return only ticks that are inside the min-max interval\n if (tickValues) {\n return tickValues.filter((tV) => tV >= prop.min && tV <= prop.max);\n }\n return [];\n};\n\n/*\n * Function to get plotable marks\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * @param {Object} answers - answers object\n * */\nexport const filterPlotableMarks = (domain, range, answers) => {\n const domainValues = getPlotablePoints(domain);\n const rangeValues = getPlotablePoints(range);\n const isPointPlotable = (x, y) => domainValues.includes(x) && rangeValues.includes(y);\n return Object.entries(answers || {}).reduce((newAnswers, [key, answer]) => {\n newAnswers[key] = {\n ...answer,\n marks: (answer.marks || []).filter((mark) => {\n if (mark.type === 'point') {\n return isPointPlotable(mark.x, mark.y);\n }\n if (mark.type === 'polygon') {\n return !mark.points.find((point) => !isPointPlotable(point.x, point.y));\n }\n const from = mark.from || mark.root;\n const to = mark.to || mark.edge;\n return mark.building\n ? isPointPlotable(from.x, from.y)\n : isPointPlotable(from.x, from.y) && isPointPlotable(to.x, to.y);\n }),\n };\n return newAnswers;\n }, {});\n};\n\n//////////////////////////////////////////////////////////////////////////////////\n// BELOW FUNCTIONS ARE USED IN src/utils as well\n//////////////////////////////////////////////////////////////////////////////////\n\n/*\n * Function to calculate the distance between two points\n * @param {Object} a - point a\n * @param {Object} b - point b\n * */\nconst distance = (a, b) => {\n return Number(Math.sqrt((a.x - b.x) ** 2 + (a.y - b.y) ** 2).toFixed(3));\n};\n\n/*\n * Function to check if a point lies on edges of a polygon\n * @param {Object} point - point object\n * @param {Array} polygon - polygon points array\n * */\nconst pointInPolygon = (point, polygon) => {\n let c = point;\n let inside = false;\n let clonePolygon = [...polygon];\n clonePolygon.push(polygon[0]);\n for (let i = 0; i < clonePolygon.length - 1; i++) {\n let a = clonePolygon[i];\n let b = clonePolygon[i + 1];\n // check if point is on the edge\n if (distance(a, c) + distance(c, b) === distance(a, b)) {\n inside = true;\n break;\n }\n }\n return inside;\n};\n\n/*\n * Function to get the intersection point of two lines\n * @param {Number} x1 - x coordinate of point 1 of line 1\n * @param {Number} y1 - y coordinate of point 1 of line 1\n * @param {Number} x2 - x coordinate of point 2 of line 1\n * @param {Number} y2 - y coordinate of point 2 of line 1\n * @param {Number} x3 - x coordinate of point 1 of line 2\n * @param {Number} y3 - y coordinate of point 1 of line 2\n * @param {Number} x4 - x coordinate of point 2 of line 2\n * @param {Number} y4 - y coordinate of point 2 of line 2\n * */\nconst lineIntersect = (x1, y1, x2, y2, x3, y3, x4, y4) => {\n let ua,\n denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);\n if (denominator === 0) {\n return null;\n }\n ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denominator;\n return {\n x: Number((x1 + ua * (x2 - x1)).toFixed(3)),\n y: Number((y1 + ua * (y2 - y1)).toFixed(3)),\n };\n};\n\n/*\n * Check if a point is inside the graph\n * @param {Object} point - point object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst isPointInsideGraph = (point, domain, range) => {\n return point.x > domain.min && point.x < domain.max && point.y > range.min && point.y < range.max;\n};\n\n/*\n * Check if a point is on or inside the graph\n * @param {Object} point - point object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst isPointOnOrInsideGraph = (point, domain, range) => {\n return point.x >= domain.min && point.x <= domain.max && point.y >= range.min && point.y <= range.max;\n};\n\n/*\n * Find the intersection point of a mark with the graph\n * @param {Object} mark - mark object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findIntersectionPointForMark = (mark, domain, range) => {\n let intersectionPoint = [];\n let tempData = [\n [domain.max, range.max, domain.max, range.min],\n [domain.min, range.max, domain.min, range.min],\n [domain.min, range.max, domain.max, range.max],\n [domain.min, range.min, domain.max, range.min],\n ];\n for (let i = 0; i < tempData.length; i++) {\n let intersection = lineIntersect(\n mark.from.x,\n mark.from.y,\n mark.to.x,\n mark.to.y,\n tempData[i][0],\n tempData[i][1],\n tempData[i][2],\n tempData[i][3],\n );\n if (intersection && isPointOnOrInsideGraph(intersection, domain, range)) {\n intersectionPoint.push(intersection);\n }\n }\n return intersectionPoint;\n};\n\n/*\n * Sort points in clockwise direction for a polygon\n * @param {Array} points - points array\n * */\nconst sortPointsClockWise = (points) => {\n // Find min max to get center and Sort from top to bottom\n points.sort((a, b) => a.y - b.y);\n // Get center y\n const cy = (points[0].y + points[points.length - 1].y) / 2;\n // Sort from right to left\n points.sort((a, b) => b.x - a.x);\n // Get center x\n const cx = (points[0].x + points[points.length - 1].x) / 2;\n // Center point\n const center = { x: cx, y: cy };\n // As the points are sorted from right to left the first point is the rightmost Starting angle used to reference other angles\n let startAng;\n points.forEach((point) => {\n let ang = Math.atan2(point.y - center.y, point.x - center.x);\n if (!startAng) {\n startAng = ang;\n } else {\n if (ang < startAng) {\n // ensure that all points are clockwise of the start point\n ang += Math.PI * 2;\n }\n }\n point.angle = ang; // add the angle to the point\n });\n // first sort clockwise\n points.sort((a, b) => a.angle - b.angle);\n // then reverse the order\n const ccwPoints = points.reverse();\n // move the last point back to the start\n ccwPoints.unshift(ccwPoints.pop());\n return ccwPoints.map(({ angle, ...attr }) => attr);\n};\n\n/*\n * Function to calculate the dot product of two vectors\n * @param {Object} v1 - point 1\n * @param {Object} v2 - point 2\n * */\nconst dotProduct = (v1, v2) => {\n return v1.x * v2.x + v1.y * v2.y;\n};\n\n/*\n * Function to calculate the magnitude of a vector\n * @param {Object} v - point object\n * */\nconst magnitude = (v) => {\n return Math.sqrt(v.x * v.x + v.y * v.y);\n};\n\n/*\n * Function to calculate the angle between two vectors in radians\n * @param {Object} v1 - point 1\n * @param {Object} v2 - point 2\n * */\nconst angleBetweenVectors = (v1, v2) => {\n const dot = dotProduct(v1, v2);\n const magV1 = magnitude(v1);\n const magV2 = magnitude(v2);\n // Ensure the dot product is within the domain of the acos function\n return Math.acos(dot / (magV1 * magV2));\n};\n\n/*\n * Function to check if a point lies between the angle formed by two lines\n * @param {Object} commonPoint - common point of the two lines\n * @param {Object} point1 - point 1 of cone\n * @param {Object} point2 - point 2 of cone\n * @param {Object} testPoint - point to be tested\n * */\nconst pointInAngle = (commonPoint, point1, point2, testPoint) => {\n const vector1 = { x: point1.x - commonPoint.x, y: point1.y - commonPoint.y };\n const vector2 = { x: point2.x - commonPoint.x, y: point2.y - commonPoint.y };\n const testVector = { x: testPoint.x - commonPoint.x, y: testPoint.y - commonPoint.y };\n const angle1 = angleBetweenVectors(vector1, testVector);\n const angle2 = angleBetweenVectors(vector2, testVector);\n const angleSum = angle1 + angle2;\n // Check if the sum of angles is approximately equal to the angle between the two lines\n // You may need to adjust the tolerance (e.g., 0.0001) based on your specific requirements\n const tolerance = 0.0001;\n return Math.abs(angleSum - angleBetweenVectors(vector1, vector2)) < tolerance;\n};\n\n/*\n * Function to remove duplicate points from an array\n * @param {Array} array - array of points\n * */\nconst removeDuplicatesFromArray = (array) => {\n return array.filter((obj, index) => {\n return index === array.findIndex((o) => obj.x === o.x && obj.y === o.y);\n });\n};\n\n/*\n * Function to remove duplicate points and filter sections\n * @param {Array} sections - array of sections\n * */\nconst removeDuplicateAndFilterSections = (sections) => {\n //removing duplicate points.\n for (let i = 0; i < sections.length; i++) {\n sections[i] = sections[i].filter((obj, index) => {\n return index === sections[i].findIndex((o) => obj.x === o.x && obj.y === o.y);\n });\n }\n //removing arrays with two points\n sections = sections.filter((section) => section.length > 2);\n //sorting the points in clockwise direction\n for (let i = 0; i < sections.length; i++) {\n sections[i] = sortPointsClockWise(sections[i]);\n }\n return sections;\n};\n\n/*\n * Function to find sections in solution set for one line\n * @param {Array} intersectionPoint - intersection point\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findSectionsInSolutionSetForOneLine = (intersectionPoint, domain, range) => {\n let sections = [];\n sections.push([].concat(intersectionPoint));\n sections.push([].concat(intersectionPoint));\n if (\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[1].x === domain.max && intersectionPoint[0].y === range.max)\n ) {\n sections[0].push({ x: domain.max, y: range.max });\n sections[1].push({ x: domain.min, y: range.max }, { x: domain.min, y: range.min }, { x: domain.max, y: range.min });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[1].x === domain.min && intersectionPoint[0].y === range.max)\n ) {\n sections[0].push({ x: domain.min, y: range.max });\n sections[1].push({ x: domain.max, y: range.max }, { x: domain.max, y: range.min }, { x: domain.min, y: range.min });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].y === range.min) ||\n (intersectionPoint[1].x === domain.min && intersectionPoint[0].y === range.min)\n ) {\n sections[0].push({ x: domain.min, y: range.min });\n sections[1].push({ x: domain.max, y: range.min }, { x: domain.max, y: range.max }, { x: domain.min, y: range.max });\n } else if (\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].y === range.min) ||\n (intersectionPoint[1].x === domain.max && intersectionPoint[0].y === range.min)\n ) {\n sections[0].push({ x: domain.max, y: range.min });\n sections[1].push({ x: domain.min, y: range.min }, { x: domain.min, y: range.max }, { x: domain.max, y: range.max });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].x === domain.max) ||\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].x === domain.min)\n ) {\n sections[0].push({ x: domain.min, y: range.max }, { x: domain.max, y: range.max });\n sections[1].push({ x: domain.min, y: range.min }, { x: domain.max, y: range.min });\n } else if (\n (intersectionPoint[0].y === range.min && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[0].y === range.max && intersectionPoint[1].y === range.min)\n ) {\n sections[0].push({ x: domain.min, y: range.min }, { x: domain.min, y: range.max });\n sections[1].push({ x: domain.max, y: range.min }, { x: domain.max, y: range.max });\n }\n return removeDuplicateAndFilterSections(sections);\n};\n\n/*\n * Function to find sections in solution set for two lines\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answers - answers array\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findSectionsInSolutionSetForTwoLines = (gssLineData, answers, domain, range) => {\n let mark1 = answers[0];\n let mark2 = answers[1];\n let cornerPoints = [\n { x: domain.min, y: range.min },\n { x: domain.min, y: range.max },\n { x: domain.max, y: range.min },\n { x: domain.max, y: range.max },\n ];\n let intersectPoint = lineIntersect(\n mark1.from.x,\n mark1.from.y,\n mark1.to.x,\n mark1.to.y,\n mark2.from.x,\n mark2.from.y,\n mark2.to.x,\n mark2.to.y,\n );\n let sections = [];\n let intersectionPoint1 = findIntersectionPointForMark(mark1, domain, range);\n intersectionPoint1 = removeDuplicatesFromArray(intersectionPoint1);\n let intersectionPoint2 = findIntersectionPointForMark(mark2, domain, range);\n intersectionPoint2 = removeDuplicatesFromArray(intersectionPoint2);\n if (intersectPoint && isPointInsideGraph(intersectPoint, domain, range)) {\n for (let i = 0; i < intersectionPoint1.length; i++) {\n for (let j = 0; j < intersectionPoint2.length; j++) {\n let bucket = [];\n let newCornerPoints = [];\n bucket.push(intersectPoint);\n bucket.push(intersectionPoint1[i]);\n bucket.push(intersectionPoint2[j]);\n for (let k = 0; k < cornerPoints.length; k++) {\n if (pointInAngle(intersectPoint, intersectionPoint1[i], intersectionPoint2[j], cornerPoints[k])) {\n bucket.push(cornerPoints[k]);\n } else {\n newCornerPoints.push(cornerPoints[k]);\n }\n }\n cornerPoints = newCornerPoints;\n sections.push(bucket);\n }\n }\n } else {\n let sections1 = findSectionsInSolutionSetForOneLine(intersectionPoint1, domain, range);\n let sections2 = findSectionsInSolutionSetForOneLine(intersectionPoint2, domain, range);\n for (let i = 0; i < sections1.length; i++) {\n if (\n !(pointInPolygon(intersectionPoint2[0], sections1[i]) && pointInPolygon(intersectionPoint2[1], sections1[i]))\n ) {\n sections.push(sections1[i]);\n }\n }\n for (let i = 0; i < sections2.length; i++) {\n if (\n !(pointInPolygon(intersectionPoint1[0], sections2[i]) && pointInPolygon(intersectionPoint1[1], sections2[i]))\n ) {\n sections.push(sections2[i]);\n }\n }\n for (let i = 0; i < sections.length; i++) {\n cornerPoints = cornerPoints.filter(function (o1) {\n return !sections[i].some(function (o2) {\n return o1.x === o2.x && o1.y === o2.y;\n });\n });\n }\n let sections3 = cornerPoints.concat(intersectionPoint1, intersectionPoint2);\n sections.push(sections3);\n }\n return removeDuplicateAndFilterSections(sections);\n};\n\n/*\n * Function to find sections in solution set\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answers - answers array\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nexport const findSectionsInSolutionSet = (gssLineData, answers, domain, range) => {\n if (gssLineData.numberOfLines === 1) {\n const intersectionPoint = findIntersectionPointForMark(answers[0], domain, range);\n gssLineData.sections = findSectionsInSolutionSetForOneLine(intersectionPoint, domain, range);\n } else {\n gssLineData.sections = findSectionsInSolutionSetForTwoLines(gssLineData, answers, domain, range);\n }\n return gssLineData;\n};\n\n/*\n * Function to check if a point is inside a polygon\n * @param {Object} point - point to be checked\n * @param {Array} polygon - polygon points array\n * */\nexport const pointInsidePolygon = (point, polygon) => {\n const num_vertices = polygon.length;\n const x = point.x;\n const y = point.y;\n let inside = false;\n let p1 = polygon[0];\n let p2;\n for (let i = 1; i <= num_vertices; i++) {\n p2 = polygon[i % num_vertices];\n if (y > Math.min(p1.y, p2.y)) {\n if (y <= Math.max(p1.y, p2.y)) {\n if (x <= Math.max(p1.x, p2.x)) {\n const x_intersection = ((y - p1.y) * (p2.x - p1.x)) / (p2.y - p1.y) + p1.x;\n if (p1.x === p2.x || x <= x_intersection) {\n inside = !inside;\n }\n }\n }\n }\n p1 = p2;\n }\n return inside;\n};\n\n/*\n * Function to check if lines are added in the graph\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answer - answer array\n * */\nexport const checkIfLinesAreAdded = (gssLineData, answer) => {\n if (answer.length === 0) {\n return false;\n }\n if (gssLineData.numberOfLines === 1) {\n if (answer.length === 1) {\n return !answer[0].building;\n }\n } else {\n if (answer.length !== 2) {\n return false;\n } else {\n return !answer[1].building;\n }\n }\n};\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/graphing-config.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GraphContainer, GridSetup } from '@pie-lib/graphing-solution-set';\nimport { AlertDialog } from '@pie-lib/config-ui';\nimport { MenuItem, Select, Typography, OutlinedInput } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { applyConstraints, filterPlotableMarks, getGridValues, getLabelValues } from './utils.js';\nimport { isEqual, cloneDeep } from '@pie-element/shared-lodash';\n\nconst Container: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexWrap: 'wrap',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GridConfigWrapper: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing(3),\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GraphConfig: any = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst SubtitleText: any = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1.5),\n marginBottom: theme.spacing(1),\n}));\n\nconst GridConfig: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n width: '100%',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GridConfigLabel: any = styled(Typography)(({ theme }) => ({\n padding: `0 ${theme.spacing(1)}`,\n}));\n\nconst GridConfigSelect: any = styled(Select)({\n flex: '1',\n});\n\nexport class GraphingConfig extends React.Component {\n static propTypes = {\n availableTools: PropTypes.array,\n authoring: PropTypes.object,\n dimensionsEnabled: PropTypes.bool,\n graphDimensions: PropTypes.object,\n gridConfigurations: PropTypes.array,\n labelsPlaceholders: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n showLabels: PropTypes.bool,\n showTitle: PropTypes.bool,\n titlePlaceholder: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n const { domain, range, graph } = props.model || {};\n const gridValues = {\n domain: getGridValues(domain, graph.width, true),\n range: getGridValues(range, graph.height, true),\n };\n const labelValues = {\n domain: getLabelValues(domain.step),\n range: getLabelValues(range.step),\n };\n this.state = {\n gridValues,\n labelValues,\n showPixelGuides: false,\n dialog: { isOpened: false },\n domain: { ...domain },\n range: { ...range },\n };\n }\n\n /*\n * Function to change labels\n * @param {object} labels - labels object\n * */\n changeLabels: any = (labels) => {\n const { model, onChange } = this.props;\n onChange({ ...model, labels });\n };\n\n /*\n * Function to change title\n * @param {string} title - title string\n * */\n changeTitle: any = (title) => {\n const { model, onChange } = this.props;\n onChange({ ...model, title });\n };\n\n /*\n * Function to change grid configuration\n * @param {object} config - grid configuration object\n * @param {number} newSelectedGrid - new selected grid\n * */\n onConfigChange: any = (config, newSelectedGrid) => {\n const { model, onChange } = this.props;\n const { defaultGridConfiguration: oldSelectedGrid = 0 } = model;\n const { gridValues: oldGridValues, labelValues: oldLabelValues, domain: oldDomain, range: oldRange } = this.state;\n const updatedModel = { ...model, ...config };\n const { answers, domain, includeAxes = true, graph, range, standardGrid } = updatedModel;\n const gridValues = { domain: [], range: [] };\n const labelValues = { domain: [], range: [] };\n const selectedGrid = newSelectedGrid >= 0 ? newSelectedGrid : oldSelectedGrid;\n if (includeAxes) {\n const domainConstraints = applyConstraints(domain, graph.width, oldGridValues.domain, oldLabelValues.domain);\n gridValues.domain = domainConstraints.gridValues || [];\n labelValues.domain = domainConstraints.labelValues || [];\n }\n if (standardGrid) {\n gridValues.range = gridValues.domain;\n labelValues.range = labelValues.domain;\n range.step = domain.step;\n range.labelStep = domain.labelStep;\n } else {\n if (includeAxes) {\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n gridValues.range = rangeConstraints.gridValues || [];\n labelValues.range = rangeConstraints.labelValues || [];\n }\n }\n const filteredAnswers = cloneDeep(answers);\n filteredAnswers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n const plotableAnswers = filterPlotableMarks(domain, range, filteredAnswers);\n if (!isEqual(filteredAnswers, plotableAnswers)) {\n this.setState({\n dialog: {\n isOpened: true,\n onClose: () =>\n this.setState({ dialog: { isOpened: false } }, onChange({ ...model, domain: oldDomain, range: oldRange })),\n onConfirm: () => {\n updatedModel.gssLineData.sections = [];\n updatedModel.gssLineData.selectedTool = 'lineA';\n this.setState(\n {\n gridValues,\n labelValues,\n dialog: { isOpened: false },\n domain: { ...domain },\n range: { ...range },\n },\n onChange({ ...updatedModel, answers: plotableAnswers, defaultGridConfiguration: selectedGrid }),\n );\n },\n },\n });\n return;\n }\n this.setState({ gridValues, labelValues, domain: { ...domain }, range: { ...range } });\n onChange({ ...updatedModel, defaultGridConfiguration: selectedGrid });\n };\n\n /*\n * Function to change view\n * @param {object} event - event object\n * @param {boolean} expanded - expanded boolean\n * */\n onChangeView: any = (event, expanded) => {\n const { graphDimensions: { enabled } = {} } = this.props;\n if (enabled) {\n this.setState({ showPixelGuides: expanded });\n }\n };\n\n /*\n * Function to change grid configuration\n * @param {object} event - event object\n * */\n changeGridConfiguration: any = (event) => {\n const { gridConfigurations } = this.props;\n const { value } = event.target;\n this.onConfigChange(gridConfigurations?.[value] || {}, value);\n };\n\n /*\n * Render the component\n * */\n render() {\n const {\n authoring = {},\n gridConfigurations = [],\n graphDimensions = {},\n labelsPlaceholders,\n model,\n showLabels,\n dimensionsEnabled,\n showTitle,\n titlePlaceholder,\n mathMlOptions = {},\n } = this.props;\n const { arrows, coordinatesOnHover, defaultGridConfiguration, domain, labels, range, standardGrid, title } =\n model || {};\n const graph = (model || {}).graph || {};\n const { min, max, step } = graphDimensions || {};\n const { dialog = {}, gridValues, labelValues, showPixelGuides } = this.state;\n const sizeConstraints = {\n min: Math.max(150, min),\n max: Math.min(800, max),\n step: step >= 1 ? Math.min(200, step) : 20,\n };\n const displayedFields = {\n axisLabel: authoring.axisLabel,\n dimensionsEnabled,\n includeAxesEnabled: false, //Setting false by default as per requirement\n labelStep: authoring.labelStep,\n min: authoring.min,\n max: authoring.max,\n standardGridEnabled: authoring.standardGridEnabled,\n step: authoring.step,\n };\n const displayGridSetup =\n authoring.enabled &&\n Object.values(displayedFields).some((field) => (typeof field === 'object' ? field.enabled : field));\n return (\n <Container>\n <GridConfigWrapper>\n {gridConfigurations && gridConfigurations.length ? (\n <GridConfig>\n <GridConfigLabel component=\"div\" variant=\"h6\">\n Grid Configuration\n </GridConfigLabel>\n <GridConfigSelect\n input={<OutlinedInput labelWidth={10} />}\n displayEmpty\n onChange={this.changeGridConfiguration}\n value={defaultGridConfiguration}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n {(gridConfigurations || []).map((config, index) => (\n <MenuItem key={index} value={index}>\n {config.label}\n </MenuItem>\n ))}\n </GridConfigSelect>\n </GridConfig>\n ) : null}\n {displayGridSetup && (\n <GridSetup\n displayedFields={displayedFields}\n domain={domain}\n gridValues={gridValues}\n includeAxes={true} //Setting true by default as per requirement\n labelValues={labelValues}\n range={range}\n size={graph}\n sizeConstraints={sizeConstraints}\n standardGrid={standardGrid}\n onChange={this.onConfigChange}\n onChangeView={this.onChangeView}\n />\n )}\n </GridConfigWrapper>\n <GraphConfig key=\"graph\">\n <Typography component=\"div\" variant=\"h6\">\n Define Graph Attributes\n </Typography>\n <SubtitleText component=\"div\" variant=\"body1\">\n Use this interface to add/edit a title and/or labels\n </SubtitleText>\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n collapsibleToolbar={true}\n collapsibleToolbarTitle={'Add Background Shapes to Graph'}\n domain={domain}\n key=\"graphing-config\"\n labels={labels}\n labelsPlaceholders={labelsPlaceholders}\n marks={[]}\n onChangeLabels={this.changeLabels}\n onChangeTitle={this.changeTitle}\n range={range}\n showLabels={showLabels}\n showPixelGuides={showPixelGuides}\n showTitle={showTitle}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n titlePlaceholder={titlePlaceholder}\n disableToolbar={true}\n mathMlOptions={mathMlOptions}\n />\n </GraphConfig>\n <AlertDialog\n open={dialog.isOpened}\n title=\"Warning\"\n text=\"This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.\"\n onClose={dialog.onClose}\n onConfirm={dialog.onConfirm}\n />\n </Container>\n );\n }\n}\n\nexport default GraphingConfig;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/correct-response.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { GraphContainer as Graph } from '@pie-lib/graphing-solution-set';\nimport { AlertDialog } from '@pie-lib/config-ui';\nimport { set } from '@pie-element/shared-lodash';\nimport { RadioGroup, Typography } from '@mui/material';\nimport Radio from '@mui/material/Radio';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport { findSectionsInSolutionSet, pointInsidePolygon, checkIfLinesAreAdded } from './utils.js';\n\nconst SubtitleText: any = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1.5),\n marginBottom: theme.spacing(1),\n}));\n\nconst RadioButtonClass: any = styled(FormControlLabel)({\n height: '20px',\n width: 'fit-content',\n padding: '.5rem 0',\n});\n\nconst StyledRadio: any = styled(Radio)({\n color: '#000000 !important',\n});\n\nconst ErrorMessage: any = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nexport class CorrectResponse extends React.Component {\n static propTypes = {\n errors: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n state = {\n dialog: {\n open: false,\n },\n };\n\n /*\n * Function to handle the alert dialog open and close\n * @param {boolean} open - open or close the dialog\n * @param {function} callback - callback function to be called after setting the state\n * */\n handleAlertDialog = (open, callback) =>\n this.setState(\n {\n dialog: { open },\n },\n callback,\n );\n\n /*\n * Function to change the marks on the graph\n * @param {array} marks - marks to be added on the graph\n * */\n changeMarks: any = (marks) => {\n const { model, onChange } = this.props;\n const { gssLineData } = model;\n if (gssLineData.selectedTool === 'lineA' && marks.length > 0) {\n marks[0].fill = gssLineData['lineA'].lineType;\n }\n if (gssLineData.selectedTool === 'lineB' && marks.length > 1) {\n marks[1].fill = gssLineData['lineB'].lineType;\n }\n if (marks.length === 0) {\n gssLineData.selectedTool = 'lineA';\n set(model, 'gssLineData', gssLineData);\n }\n set(model, 'answers.correctAnswer.marks', marks);\n onChange(model);\n };\n\n /*\n * Reset the graph to original state and remove all the elements added on the graph\n * */\n onResetClick: any = () => {\n const { model, onChange } = this.props;\n const { gssLineData, answers } = model;\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'This will remove all the elements added on the graph and reset graph to original state. Are you sure you want to continue?',\n onConfirm: () => {\n // Reset the graph to original state\n answers.correctAnswer.marks = [];\n gssLineData.selectedTool = 'lineA';\n gssLineData.lineA.lineType = 'Solid';\n if (gssLineData.lineB) gssLineData.lineB.lineType = 'Solid';\n set(model, 'answers', answers);\n set(model, 'gssLineData', gssLineData);\n onChange(model);\n this.handleAlertDialog(false);\n },\n onClose: () => this.handleAlertDialog(false),\n },\n });\n };\n\n /*\n * Function to change the number of lines on the graph\n * @param {object} e - event object\n * @param {number} value - number of lines to be added on the graph\n * */\n changeNumberOfLines: any = (e, value) => {\n const { model } = this.props;\n let gssLineData = model.gssLineData;\n if (gssLineData.selectedTool === 'solutionSet') {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Changing number of lines after adding solution set will remove added solution set. Are you sure you want to continue?',\n onConfirm: () => {\n this.changeLine(e, value);\n this.handleAlertDialog(false);\n },\n onClose: () => this.handleAlertDialog(false),\n },\n });\n } else {\n this.changeLine(e, value);\n }\n };\n\n /*\n * Function to change the number of line on the graph\n * @param {object} e - event object\n * @param {number} value - number of lines to be added on the graph\n * */\n changeLine: any = (e, value) => {\n const { model, onChange } = this.props;\n const { answers } = model;\n let gssLineData = model.gssLineData;\n //remove polygon from correct answer\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n if (Number.parseInt(value) === 1) {\n //remove lineB from gssLineData and correct answer\n delete gssLineData.lineB;\n if (answers.correctAnswer.marks.length > 1) answers.correctAnswer.marks.pop();\n gssLineData.numberOfLines = 1;\n gssLineData.selectedTool = 'lineA';\n } else {\n gssLineData.numberOfLines = 2;\n if (answers.correctAnswer.marks.length > 0) gssLineData.selectedTool = 'lineB';\n gssLineData.lineB = {\n lineType: 'Solid',\n };\n }\n //reset solution set\n set(model, 'answers', answers);\n set(model, 'gssLineData', gssLineData);\n onChange(model);\n };\n\n /*\n * Function to handle the changes to solution set on the graph\n * @param {object} point - point selected on the graph\n * */\n onSolutionSetSelected: any = (point) => {\n const { model, onChange } = this.props;\n const { answers, gssLineData } = model;\n for (const section of gssLineData.sections) {\n //check if the point is inside the polygon\n if (pointInsidePolygon(point, section)) {\n let polygon = {\n points: section,\n building: false,\n type: 'polygon',\n closed: true,\n isSolution: true,\n };\n //remove old answer section from correct answer\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n //add new answer section to correct answer\n answers.correctAnswer.marks.push(polygon);\n break;\n }\n }\n set(model, 'answers', answers);\n onChange(model);\n };\n\n /*\n * Function to handle the changes to line data on the graph\n * @param {object} gssLineData - line data on the graph\n * @param {string} oldSelectedTool - old selected tool\n * */\n onChangeGssLineData: any = (gssLineData, oldSelectedTool) => {\n const { model } = this.props;\n const { answers, domain, range } = model;\n //handle solution set changes\n if (gssLineData.selectedTool === 'solutionSet') {\n let lines = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n if (!checkIfLinesAreAdded(gssLineData, lines)) {\n gssLineData.selectedTool = oldSelectedTool;\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please define the line(s) and then select a solution set for the item.',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n } else {\n let lines = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n gssLineData = findSectionsInSolutionSet(gssLineData, lines, domain, range);\n }\n this.handleGssLineDataChange(gssLineData, answers);\n } else {\n let polygons = answers.correctAnswer.marks.filter((mark) => mark.type === 'polygon');\n if (oldSelectedTool === 'solutionSet' && polygons.length > 0) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Changing a line after adding a solution set will clear your selected solution set. Click \\'Clear Solution Set\\' to change the line. Otherwise, click \\'Cancel\\'.',\n onConfirm: () => {\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n this.handleGssLineDataChange(gssLineData, answers);\n this.handleAlertDialog(false);\n },\n onConfirmText: 'CLEAR SOLUTION SET',\n onClose: () => {\n gssLineData.selectedTool = oldSelectedTool;\n this.handleGssLineDataChange(gssLineData, answers);\n this.handleAlertDialog(false);\n },\n },\n });\n } else {\n this.handleGssLineDataChange(gssLineData, answers);\n }\n }\n };\n\n /*\n * Function to handle the changes to line data on the graph\n * @param {object} gssLineData - line data on the graph\n * @param {object} answers - correct answer\n * */\n handleGssLineDataChange: any = (gssLineData, answers) => {\n const { model, onChange } = this.props;\n //handle line type changes from solid to dashed and vice versa\n if (answers.correctAnswer.marks.length > 0 && answers.correctAnswer.marks[0] && gssLineData.lineA) {\n answers.correctAnswer.marks[0].fill = gssLineData.lineA.lineType;\n }\n if (answers.correctAnswer.marks.length > 1 && answers.correctAnswer.marks[1] && gssLineData.lineB) {\n answers.correctAnswer.marks[1].fill = gssLineData.lineB.lineType;\n }\n //check if line is added to the graph before switching to lineB\n if (\n (gssLineData.selectedTool === 'lineB' && answers.correctAnswer.marks.length === 0) ||\n (gssLineData.selectedTool === 'lineB' && answers.correctAnswer.marks[0].building)\n ) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please add Line A to the graph before adding Line B',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n gssLineData.selectedTool = 'lineA';\n }\n //check if lineB is added to the graph before switching to lineA\n if (\n gssLineData.selectedTool === 'lineA' &&\n answers.correctAnswer.marks.length > 1 &&\n answers.correctAnswer.marks[1].building\n ) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please add Line B to the graph before switching to Line A',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n gssLineData.selectedTool = 'lineB';\n }\n set(model, 'gssLineData', gssLineData);\n set(model, 'answers', answers);\n onChange(model);\n };\n\n /*\n * Function to update the model\n * @param {object} props - updated props\n * */\n updateModel: any = (props) => {\n const { model, onChange } = this.props;\n onChange({\n ...model,\n ...props,\n });\n };\n\n /*\n * Render the component\n * */\n render() {\n const { errors, model, mathMlOptions = {} } = this.props;\n const { dialog } = this.state;\n //get the default values to GssLineData\n const {\n gssLineData = {\n numberOfLines: 1,\n selectedTool: 'lineA',\n lineA: {\n lineType: 'Solid',\n },\n },\n arrows,\n coordinatesOnHover,\n domain,\n graph = {},\n labels,\n labelsEnabled,\n range,\n title,\n titleEnabled,\n answers,\n } = model || {};\n const { correctAnswerErrors = '' } = errors || {};\n return (\n <div>\n <Typography component=\"div\" variant=\"h6\">\n Define Line Type(s) and Correct Response\n </Typography>\n <SubtitleText component=\"div\" variant=\"body1\">\n Use this interface to choose how many lines students will be able to draw, and to define the correct answer.\n </SubtitleText>\n <SubtitleText component=\"div\" variant=\"body1\">\n Choose Number of Lines\n </SubtitleText>\n <RadioGroup name=\"numberOfLines\" value={gssLineData.numberOfLines} onChange={this.changeNumberOfLines}>\n <RadioButtonClass\n value=\"1\"\n control={<StyledRadio checked={gssLineData.numberOfLines === 1} />}\n label=\"One\"\n />\n <RadioButtonClass\n value=\"2\"\n control={<StyledRadio checked={gssLineData.numberOfLines === 2} />}\n label=\"Two\"\n />\n </RadioGroup>\n <React.Fragment>\n <Graph\n style={correctAnswerErrors['correctAnswer'] && { border: '2px solid red' }}\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n disabledLabels={true}\n disabledTitle={true}\n domain={domain}\n draggableTools={true}\n labels={labels}\n marks={answers && answers.correctAnswer && answers.correctAnswer.marks ? answers.correctAnswer.marks : []}\n onChangeMarks={(newMarks) => this.changeMarks(newMarks)}\n onCustomReset={this.onResetClick}\n range={range}\n showLabels={labelsEnabled}\n showTitle={titleEnabled}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n gssLineData={gssLineData}\n onChangeGssLineData={this.onChangeGssLineData}\n onSolutionSetSelected={this.onSolutionSetSelected}\n toolbarTools={['line', 'polygon']}\n mathMlOptions={mathMlOptions}\n />\n {correctAnswerErrors['correctAnswer'] && (\n <ErrorMessage>{correctAnswerErrors['correctAnswer']}</ErrorMessage>\n )}\n </React.Fragment>\n <AlertDialog\n open={dialog.open}\n title={dialog.title}\n text={dialog.text}\n onClose={dialog.onClose}\n onConfirm={dialog.onConfirm}\n onConfirmText={dialog.onConfirmText ? dialog.onConfirmText : 'OK'}\n />\n </div>\n );\n }\n}\n\nexport default CorrectResponse;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/configure.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\n\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@mui/material/Typography';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport GraphingConfig from './graphing-config.js';\nimport CorrectResponse from './correct-response.js';\n\nconst { Panel, toggle, radio, checkboxes, textField, dropdown } = settings;\nconst log = debug('@pie-element:graphing-solution-set:configure');\n\nconst StyledInputContainer: any = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n marginTop: theme.spacing(2),\n}));\n\nconst Description: any = styled(Typography)(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n}));\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n };\n\n /*\n * Triggered when configure component is mounted\n * */\n componentDidMount() {\n const { configuration, onModelChanged, model } = this.props;\n const { title, graphDimensions } = configuration || {};\n let { arrows, titleEnabled: showTitle, dimensionsEnabled: showDimensions } = model || {};\n // This is used for offering support for old models which have the property arrows: boolean\n // Same thing is set in the controller: packages/graphing/controller/src/index.js - model\n if (typeof arrows === 'boolean') {\n if (arrows) {\n arrows = { left: true, right: true, up: true, down: true };\n } else {\n arrows = { left: false, right: false, up: false, down: false };\n }\n }\n const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;\n const dimensionsEnabled =\n showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;\n onModelChanged && onModelChanged({ ...model, arrows, titleEnabled, dimensionsEnabled });\n }\n\n /*\n * Triggered when the rationale is changed\n * @param {string} rationale - The new rationale\n * */\n onRationaleChange: any = (rationale) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, rationale });\n };\n\n /*\n * Triggered when the prompt is changed\n * @param {string} prompt - The new prompt\n * */\n onPromptChange: any = (prompt) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, prompt });\n };\n\n /*\n * Triggered when the teacher instructions are changed\n * @param {string} teacherInstructions - The new teacher instructions\n * */\n onTeacherInstructionsChange: any = (teacherInstructions) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, teacherInstructions });\n };\n\n /*\n * Render the component\n * */\n render() {\n const { model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n arrows = {},\n authoring = {},\n coordinatesOnHover = {},\n contentDimensions = {},\n gridConfigurations = [],\n graphDimensions = {},\n instruction = {},\n labels = {},\n padding = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n title = {},\n maxImageWidth = {},\n maxImageHeight = {},\n withRubric = {},\n language = {},\n languageChoices = {},\n mathMlOptions = {},\n } = configuration || {};\n const {\n errors = {},\n extraCSSRules,\n labelsEnabled,\n dimensionsEnabled,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n titleEnabled,\n } = model || {};\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const labelsPlaceholders = {\n top: labels.top,\n right: labels.right,\n bottom: labels.bottom,\n left: labels.left,\n };\n const panelItemType = {\n arrows:\n arrows.settings &&\n checkboxes(arrows.label, {\n left: arrows.left,\n right: arrows.right,\n up: arrows.up,\n down: arrows.down,\n }),\n titleEnabled: title.settings && toggle(title.label),\n padding: padding.settings && toggle(padding.label),\n labelsEnabled: labels.settings && toggle(labels.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),\n coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),\n };\n const panelProperties = {\n 'authoring.enabled': authoring.settings && toggle(authoring.label, true),\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n instruction: instruction.settings && textField(instruction.label),\n };\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <Description component=\"div\" variant=\"body1\">\n {instruction?.label || ''}\n </Description>\n {teacherInstructionsEnabled && (\n <StyledInputContainer label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n {promptEnabled && (\n <StyledInputContainer label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n <GraphingConfig\n authoring={authoring}\n gridConfigurations={gridConfigurations}\n graphDimensions={graphDimensions}\n labelsPlaceholders={labelsPlaceholders}\n model={model}\n showLabels={labelsEnabled}\n dimensionsEnabled={dimensionsEnabled}\n showTitle={titleEnabled}\n titlePlaceholder={title.placeholder}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n <CorrectResponse\n errors={errors}\n model={model}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n {rationaleEnabled && (\n <StyledInputContainer label={rationale.label || 'Rationale'}>\n <EditableHtml\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default Configure;\n","//#region src/index.ts\nvar e = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model.updated\";\n\t}\n\tconstructor(t, n = !1) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tupdate: t,\n\t\t\t\treset: n\n\t\t\t}\n\t\t}), this.update = t, this.reset = n;\n\t}\n}, t = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.image\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, n = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.image\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n}, r = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.sound\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, i = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.sound\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n};\n//#endregion\nexport { t as DeleteImageEvent, r as DeleteSoundEvent, n as InsertImageEvent, i as InsertSoundEvent, e as ModelUpdatedEvent };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/defaults.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\n/*\n * This file contains the default configuration for the Graphing Solution Set Item Type.\n * Model is similar to the one used in graphing item type except for the gssLineData object which handles\n * the configuration for the lines and the solution set.\n *\n * Same model is used in controller default.js\n * */\nexport default {\n model: {\n answers: {\n correctAnswer: {\n name: 'Correct Answer',\n marks: [],\n },\n },\n arrows: {\n left: true,\n right: true,\n up: true,\n down: true,\n },\n marks: [],\n defaultGridConfiguration: 0,\n domain: {\n min: -5,\n max: 5,\n step: 1,\n labelStep: 1,\n axisLabel: 'x',\n },\n graph: {\n width: 500,\n height: 500,\n },\n gssLineData: {\n numberOfLines: 1,\n selectedTool: 'lineA',\n sections: [],\n lineA: {\n lineType: 'Solid',\n },\n },\n includeAxes: true,\n labels: {},\n labelsEnabled: true,\n padding: true,\n prompt: '',\n range: {\n min: -5,\n max: 5,\n step: 1,\n labelStep: 1,\n axisLabel: 'y',\n },\n rationale: '',\n standardGrid: false,\n title: '',\n coordinatesOnHover: false,\n promptEnabled: true,\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n },\n configuration: {\n authoring: {\n settings: false,\n label: 'Customize Grid Setup',\n enabled: true,\n includeAxesEnabled: false,\n standardGridEnabled: true,\n min: {\n label: 'Min Value',\n enabled: true,\n },\n max: {\n label: 'Max Value',\n enabled: true,\n },\n axisLabel: {\n label: 'Label',\n enabled: true,\n },\n step: {\n label: 'Grid Interval',\n enabled: true,\n },\n labelStep: {\n label: 'Label Interval',\n enabled: true,\n },\n },\n arrows: {\n settings: true,\n label: 'Include Arrows',\n left: {\n label: 'left',\n },\n right: {\n label: 'right',\n },\n up: {\n label: 'up',\n },\n down: {\n label: 'down',\n },\n },\n gridConfigurations: [\n {\n label: '4-quadrant coordinate grid, -10 to 10',\n arrows: {\n left: true,\n right: true,\n up: true,\n down: true,\n },\n domain: {\n min: -10,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: -10,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: '0 to 10 on both axes',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: 0,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: '0 to 20 on both axes',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 20,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: 0,\n max: 20,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: 'Sample Data Graph',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 30,\n step: 1,\n padding: 0,\n labelStep: 2,\n axisLabel: '<i>t</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: 'Time (seconds)',\n left: 'Distance (meters)',\n },\n padding: true,\n range: {\n min: 0,\n max: 80,\n step: 5,\n padding: 0,\n labelStep: 10,\n axisLabel: '<i>d</i>',\n },\n standardGrid: false,\n title: 'Distance as a function of time',\n },\n ],\n graphDimensions: {\n settings: false,\n label: 'Graph Dimensions',\n enabled: true,\n min: 150,\n max: 800,\n step: 20,\n },\n padding: {\n settings: false,\n label: 'Padding',\n },\n labels: {\n settings: true,\n label: 'Graph Labels',\n enabled: true,\n top: 'Click here to add a top label',\n right: 'Click here to add a right label',\n bottom: 'Click here to add a bottom label',\n left: 'Click here to add a left label',\n },\n prompt: {\n settings: true,\n label: 'Item Stem',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n scoringType: {\n settings: false,\n label: 'Scoring Type',\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n title: {\n settings: true,\n label: 'Graph Title',\n enabled: true,\n placeholder: 'Click here to add a title for this graph',\n },\n instruction: {\n settings: false,\n label:\n 'Graphing Solution Set items involve plotting one or two lines on a graph and then selecting the correct area that represents the solution set. To create one, first configure the grid, then select if one or two lines will be offered and if the lines should be solid or dashed. After defining the line(s), define the correct answer by clicking the area that represents the solution set.',\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n coordinatesOnHover: {\n settings: true,\n label: 'Coordinates on Hover',\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n },\n};\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Configure from './configure.js';\nimport {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-element/shared-configure-events';\nimport debug from 'debug';\nimport defaultValues from './defaults.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nconst log = debug('pie-elements:graphing-solution-set:configure');\n\n// this function is implemented in controller as well\nconst sortedAnswers = (answers) =>\n Object.keys(answers || {})\n .sort()\n .reduce((result, key) => {\n if (key !== 'correctAnswer') {\n result[key] = answers[key];\n }\n\n return result;\n }, {});\n\nexport default class GraphLinesConfigure extends HTMLElement {\n static createDefaultModel = (model = {}) => {\n const normalizedModel = { ...defaultValues.model, ...model };\n const { answers = {}, domain = {}, graph = {}, range = {}, standardGrid } = normalizedModel;\n return {\n ...normalizedModel,\n answers:\n (answers &&\n answers.correctAnswer && {\n correctAnswer: answers.correctAnswer,\n ...sortedAnswers(answers),\n }) ||\n answers,\n range:\n (standardGrid && {\n ...range,\n min: domain.min,\n max: domain.max,\n step: domain.step,\n labelStep: domain.labelStep,\n }) ||\n range,\n graph: (standardGrid && { ...graph, height: graph.width }) || graph,\n };\n };\n\n constructor() {\n super();\n this._root = null;\n this._model = GraphLinesConfigure.createDefaultModel();\n this._configuration = defaultValues.configuration;\n }\n\n /*\n * Function to set the model\n * */\n set model(m) {\n this._model = GraphLinesConfigure.createDefaultModel(m);\n this._render();\n }\n\n /*\n * Function to set the configuration\n * */\n set configuration(c) {\n this._configuration = c;\n // if language:enabled is true, then the corresponding default item model should include a language value;\n // if it is false, then the language field should be omitted from the item model.\n // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,\n // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).\n //TODO: add logic in controller and add tests\n if (c.language?.enabled) {\n if (c.languageChoices?.options?.length) {\n this._model.language = c.languageChoices.options[0].value;\n }\n } else {\n if (c.language.settings) {\n if (this._model.language) {\n this._configuration.language.enabled = true;\n }\n } else {\n delete this._model.language;\n }\n }\n this._render();\n }\n\n /*\n * Triggered when the model is changed\n * @param {object} model - the new model\n * */\n onModelChanged: any = (model) => {\n this._model = model;\n this._render();\n log('[onModelChanged]: ', this._model);\n this.dispatchEvent(new ModelUpdatedEvent(this._model));\n };\n\n /*\n * Triggered when the configuration is changed\n * @param {object} config - the new configuration\n * */\n onConfigurationChanged: any = (config) => {\n this._configuration = config;\n this._render();\n };\n\n insertImage: any = (handler) => {\n this.dispatchEvent(new InsertImageEvent(handler));\n };\n\n onDeleteImage: any = (src, done) => {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n };\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n /*\n * Render the component\n * */\n _render() {\n if (this._model) {\n const el = React.createElement(Configure, {\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n model: this._model,\n configuration: this._configuration,\n imageSupport: {\n add: this.insertImage,\n delete: this.onDeleteImage,\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n queueMicrotask(() => {\n renderMath(this);\n });\n }\n }\n\n connectedCallback() {\n this._render();\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,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,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;EACF;EACA,iBAAiB;GACf,UAAU;GACV,OAAO;GACP,SAAS;GACT,KAAK;GACL,KAAK;GACL,MAAM;EACR;EACA,SAAS;GACP,UAAU;GACV,OAAO;EACT;EACA,QAAQ;GACN,UAAU;GACV,OAAO;GACP,SAAS;GACT,KAAK;GACL,OAAO;GACP,QAAQ;GACR,MAAM;EACR;EACA,QAAQ;GACN,UAAU;GACV,OAAO;EACT;EACA,WAAW;GACT,UAAU;GACV,OAAO;EACT;EACA,aAAa;GACX,UAAU;GACV,OAAO;EACT;EACA,qBAAqB;GACnB,UAAU;GACV,OAAO;EACT;EACA,qBAAqB;GACnB,UAAU;GACV,OAAO;EACT;EACA,OAAO;GACL,UAAU;GACV,OAAO;GACP,SAAS;GACT,aAAa;EACf;EACA,aAAa;GACX,UAAU;GACV,OACE;EACJ;EACA,uBAAuB;EACvB,YAAY;GACV,OAAO;GACP,UAAU;GACV,SAAS;EACX;EACA,oBAAoB;GAClB,UAAU;GACV,OAAO;EACT;EACA,eAAe;GACb,qBAAqB;GACrB,QAAQ;GACR,WAAW;EACb;EACA,gBAAgB;GACd,qBAAqB;GACrB,QAAQ;GACR,WAAW;EACb;EACA,YAAY;GACV,UAAU;GACV,OAAO;EACT;EACA,UAAU;GACR,UAAU;GACV,OAAO;GACP,SAAS;EACX;EACA,iBAAiB;GACf,OAAO;GACP,SAAS,CAAC;EACZ;EACA,eAAe;GACb,WAAW;GACX,YAAY;EACd;CACF;AACF,GCrVM,MAAA,GAAA,EAAA,QAAA,CAAY,8CAA8C,GAG1D,MAAiB,MACrB,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KAAK,cAAc,IAAI,GAAkB,KAAK,MAAM,CAAC;CACvD;CAMA,0BAA+B,MAAW;EAExC,AADA,KAAK,iBAAiB,GACtB,KAAK,QAAQ;CACf;CAEA,eAAoB,MAAY;EAC9B,KAAK,cAAc,IAAI,GAAiB,CAAO,CAAC;CAClD;CAEA,iBAAsB,GAAK,MAAS;EAClC,KAAK,cAAc,IAAI,GAAiB,GAAK,CAAI,CAAC;CACpD;CAEA,YAAY,GAAS;EACnB,KAAK,cAAc,IAAI,GAAiB,CAAO,CAAC;CAClD;CAEA,cAAc,GAAK,GAAM;EACvB,KAAK,cAAc,IAAI,GAAiB,GAAK,CAAI,CAAC;CACpD;CAKA,UAAU;EACR,IAAI,KAAK,QAAQ;GACf,IAAM,IAAK,EAAM,cAAc,IAAW;IACxC,gBAAgB,KAAK;IACrB,wBAAwB,KAAK;IAC7B,OAAO,KAAK;IACZ,eAAe,KAAK;IACpB,cAAc;KACZ,KAAK,KAAK;KACV,QAAQ,KAAK;IACf;IACA,oBAAoB;KAClB,KAAK,KAAK,YAAY,KAAK,IAAI;KAC/B,QAAQ,KAAK,cAAc,KAAK,IAAI;IACtC;GACF,CAAC;GAKD,AAJA,AACE,KAAK,UAAQ,GAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAE,GACpB,qBAAqB;IACnB,GAAW,IAAI;GACjB,CAAC;EACH;CACF;CAEA,oBAAoB;EAClB,KAAK,QAAQ;CACf;CAEA,uBAAuB;EACrB,AAEE,KAAK,WADL,KAAK,MAAM,QAAQ,GACN;CAEjB;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["useUtilityClasses","capitalize","CheckBoxIcon","CheckBoxOutlineBlankIcon","IndeterminateCheckBoxIcon","useUtilityClasses","capitalize","useUtilityClasses","capitalize","useUtilityClasses","React","useUtilityClasses","React","useControlled","useForkRef","useId","capitalize","e","e","e","t","e","e","t","n","r","i","a","o","s","c","l","u","d","f","S","p","g","_","y","v","b","x","C","w","T","E","D","O","s","c","l","u","d","r","a","e","t","i","o","f"],"sources":["../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/Checkbox.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/InputAdornment.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/Switch.js","../../../../../lib-react/config-ui/dist/radio-with-label.js","../../../../../lib-react/config-ui/dist/tabs/index.js","../../../../../lib-react/config-ui/dist/checkbox.js","../../../../../lib-react/config-ui/dist/number-text-field.js","../../../../../lib-react/config-ui/dist/fraction-to-number.js","../../../../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Remove.js","../../../../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Add.js","../../../../../lib-react/config-ui/dist/number-text-field-custom.js","../../../../../lib-react/config-ui/dist/two-choice.js","../../../../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js","../../../../../lib-react/config-ui/dist/layout/layout-contents.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","../../../../../lib-react/config-ui/dist/node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js","../../../../../lib-react/config-ui/dist/layout/settings-box.js","../../../../../lib-react/config-ui/dist/layout/config-layout.js","../../../../../lib-react/config-ui/dist/layout/index.js","../../../../../lib-react/config-ui/dist/settings/toggle.js","../../../../../lib-react/config-ui/dist/settings/settings-radio-label.js","../../../../../lib-react/config-ui/dist/settings/panel.js","../../../../../lib-react/config-ui/dist/settings/index.js","../../../../../lib-react/config-ui/dist/index.js","../../../../../lib-react/graphing-solution-set/dist/grid-setup.js","../../../src/author/utils.ts","../../../src/author/graphing-config.tsx","../../../src/author/correct-response.tsx","../../../src/author/configure.tsx","../../../../../shared/configure-events/dist/index.js","../../../src/author/defaults.tsx","../../../src/author/index.ts"],"sourcesContent":["'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCheckboxUtilityClass(slot) {\n return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);\nexport default checkboxClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport CheckBoxOutlineBlankIcon from \"../internal/svg-icons/CheckBoxOutlineBlank.js\";\nimport CheckBoxIcon from \"../internal/svg-icons/CheckBox.js\";\nimport IndeterminateCheckBoxIcon from \"../internal/svg-icons/IndeterminateCheckBox.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport checkboxClasses, { getCheckboxUtilityClass } from \"./checkboxClasses.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 { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n indeterminate,\n color,\n size\n } = ownerState;\n const slots = {\n root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`, `size${capitalize(size)}`]\n };\n const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst CheckboxRoot = styled(SwitchBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiCheckbox',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n variants: [{\n props: {\n color: 'default',\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color,\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n color: (theme.vars || theme).palette[color].main\n },\n [`&.${checkboxClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n })), {\n // Should be last to override other colors\n props: {\n disableRipple: false\n },\n style: {\n // Reset on touch devices, it doesn't add specificity\n '&:hover': {\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }]\n})));\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCheckbox'\n });\n const {\n checkedIcon = defaultCheckedIcon,\n color = 'primary',\n icon: iconProp = defaultIcon,\n indeterminate = false,\n indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n inputProps,\n size = 'medium',\n disableRipple = false,\n className,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const icon = indeterminate ? indeterminateIconProp : iconProp;\n const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n const ownerState = {\n ...props,\n disableRipple,\n color,\n indeterminate,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalInputProps = slotProps.input ?? inputProps;\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n elementType: CheckboxRoot,\n className: clsx(classes.root, className),\n shouldForwardComponentProp: true,\n externalForwardedProps: {\n slots,\n slotProps,\n ...other\n },\n ownerState,\n additionalProps: {\n type: 'checkbox',\n icon: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: icon.props.fontSize ?? size\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n fontSize: indeterminateIcon.props.fontSize ?? size\n }),\n disableRipple,\n slots,\n slotProps: {\n input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n 'data-indeterminate': indeterminate,\n 'aria-checked': indeterminate ? 'mixed' : undefined\n })\n }\n }\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.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 * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n * @default <CheckBoxIcon />\n */\n checkedIcon: 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(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display when the component is unchecked.\n * @default <CheckBoxOutlineBlankIcon />\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * If `true`, the component appears indeterminate.\n * This does not set the native input element to indeterminate due\n * to inconsistent behavior across browsers.\n * However, we set a `data-indeterminate` attribute on the `input`.\n * @default false\n */\n indeterminate: PropTypes.bool,\n /**\n * The icon to display when the component is indeterminate.\n * @default <IndeterminateCheckBoxIcon />\n */\n indeterminateIcon: PropTypes.node,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense checkbox styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\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 value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Checkbox;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiFormControlLabel', slot);\n}\nconst formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);\nexport default formControlLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useFormControl } from \"../FormControl/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from \"./formControlLabelClasses.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n labelPlacement,\n error,\n required\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],\n label: ['label', disabled && 'disabled'],\n asterisk: ['asterisk', error && 'error']\n };\n return composeClasses(slots, getFormControlLabelUtilityClasses, classes);\n};\nexport const FormControlLabelRoot = styled('label', {\n name: 'MuiFormControlLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${formControlLabelClasses.label}`]: styles.label\n }, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n alignItems: 'center',\n cursor: 'pointer',\n // For correct alignment with the text.\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'transparent',\n marginLeft: -11,\n marginRight: 16,\n // used for row presentation of radio/checkbox\n [`&.${formControlLabelClasses.disabled}`]: {\n cursor: 'default'\n },\n [`& .${formControlLabelClasses.label}`]: {\n [`&.${formControlLabelClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n },\n variants: [{\n props: {\n labelPlacement: 'start'\n },\n style: {\n flexDirection: 'row-reverse',\n marginRight: -11\n }\n }, {\n props: {\n labelPlacement: 'top'\n },\n style: {\n flexDirection: 'column-reverse'\n }\n }, {\n props: {\n labelPlacement: 'bottom'\n },\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n labelPlacement\n }) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',\n style: {\n marginLeft: 16 // used for row presentation of radio/checkbox\n }\n }]\n})));\nconst AsteriskComponent = styled('span', {\n name: 'MuiFormControlLabel',\n slot: 'Asterisk'\n})(memoTheme(({\n theme\n}) => ({\n [`&.${formControlLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\n\n/**\n * Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nconst FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormControlLabel'\n });\n const {\n checked,\n className,\n componentsProps = {},\n control,\n disabled: disabledProp,\n disableTypography,\n inputRef,\n label: labelProp,\n labelPlacement = 'end',\n name,\n onChange,\n required: requiredProp,\n slots = {},\n slotProps = {},\n value,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;\n const required = requiredProp ?? control.props.required;\n const controlProps = {\n disabled,\n required\n };\n ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {\n if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {\n controlProps[key] = props[key];\n }\n });\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n disabled,\n labelPlacement,\n required,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [TypographySlot, typographySlotProps] = useSlot('typography', {\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n let label = labelProp;\n if (label != null && label.type !== Typography && !disableTypography) {\n label = /*#__PURE__*/_jsx(TypographySlot, {\n component: \"span\",\n ...typographySlotProps,\n className: clsx(classes.label, typographySlotProps?.className),\n children: label\n });\n }\n return /*#__PURE__*/_jsxs(FormControlLabelRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(\"div\", {\n children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {\n ownerState: ownerState,\n \"aria-hidden\": true,\n className: classes.asterisk,\n children: [\"\\u2009\", '*']\n })]\n }) : label]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControlLabel.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 * If `true`, the component appears selected.\n */\n checked: PropTypes.bool,\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 props used for each slot inside.\n * @default {}\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n typography: PropTypes.object\n }),\n /**\n * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n */\n control: PropTypes.element.isRequired,\n /**\n * If `true`, the control is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is rendered as it is passed without an additional typography node.\n */\n disableTypography: PropTypes.bool,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * A text or an element to be used in an enclosing label element.\n */\n label: PropTypes.node,\n /**\n * The position of the label.\n * @default 'end'\n */\n labelPlacement: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * @ignore\n */\n name: PropTypes.string,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n typography: PropTypes.elementType\n }),\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 value of the component.\n */\n value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormGroupUtilityClass(slot) {\n return generateUtilityClass('MuiFormGroup', slot);\n}\nconst formGroupClasses = generateUtilityClasses('MuiFormGroup', ['root', 'row', 'error']);\nexport default formGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getFormGroupUtilityClass } from \"./formGroupClasses.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n row,\n error\n } = ownerState;\n const slots = {\n root: ['root', row && 'row', error && 'error']\n };\n return composeClasses(slots, getFormGroupUtilityClass, classes);\n};\nconst FormGroupRoot = styled('div', {\n name: 'MuiFormGroup',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.row && styles.row];\n }\n})({\n display: 'flex',\n flexDirection: 'column',\n flexWrap: 'wrap',\n variants: [{\n props: {\n row: true\n },\n style: {\n flexDirection: 'row'\n }\n }]\n});\n\n/**\n * `FormGroup` wraps controls such as `Checkbox` and `Switch`.\n * It provides compact row layout.\n * For the `Radio`, you should be using the `RadioGroup` component instead of this one.\n */\nconst FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormGroup'\n });\n const {\n className,\n row = false,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n row,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormGroupRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormGroup.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 * Display group of elements in a compact row.\n * @default false\n */\n row: PropTypes.bool,\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} : void 0;\nexport default FormGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;","'use client';\n\nvar _span;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport Typography from \"../Typography/index.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from \"./inputAdornmentClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePointerEvents,\n hiddenLabel,\n position,\n size,\n variant\n } = ownerState;\n const slots = {\n root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]\n };\n return composeClasses(slots, getInputAdornmentUtilityClass, classes);\n};\nconst InputAdornmentRoot = styled('div', {\n name: 'MuiInputAdornment',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n maxHeight: '2em',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n color: (theme.vars || theme).palette.action.active,\n variants: [{\n props: {\n variant: 'filled'\n },\n style: {\n [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n marginTop: 16\n }\n }\n }, {\n props: {\n position: 'start'\n },\n style: {\n marginRight: 8\n }\n }, {\n props: {\n position: 'end'\n },\n style: {\n marginLeft: 8\n }\n }, {\n props: {\n disablePointerEvents: true\n },\n style: {\n pointerEvents: 'none'\n }\n }]\n})));\nconst InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiInputAdornment'\n });\n const {\n children,\n className,\n component = 'div',\n disablePointerEvents = false,\n disableTypography = false,\n position,\n variant: variantProp,\n ...other\n } = props;\n const muiFormControl = useFormControl() || {};\n let variant = variantProp;\n if (variantProp && muiFormControl.variant) {\n if (process.env.NODE_ENV !== 'production') {\n if (variantProp === muiFormControl.variant) {\n console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');\n }\n }\n }\n if (muiFormControl && !variant) {\n variant = muiFormControl.variant;\n }\n const ownerState = {\n ...props,\n hiddenLabel: muiFormControl.hiddenLabel,\n size: muiFormControl.size,\n disablePointerEvents,\n position,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: null,\n children: /*#__PURE__*/_jsx(InputAdornmentRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {\n color: \"textSecondary\",\n children: children\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n }))) : null, children]\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputAdornment.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, normally an `IconButton` or string.\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 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 * Disable pointer events on the root.\n * This allows for the content of the adornment to focus the `input` on click.\n * @default false\n */\n disablePointerEvents: PropTypes.bool,\n /**\n * If children is a string then disable wrapping in a Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The position this adornment should appear relative to the `Input`.\n */\n position: PropTypes.oneOf(['end', 'start']).isRequired,\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 * Note: If you are using the `TextField` component or the `FormControl` component\n * you do not have to set this manually.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputAdornment;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getRadioGroupUtilityClass(slot) {\n return generateUtilityClass('MuiRadioGroup', slot);\n}\nconst radioGroupClasses = generateUtilityClasses('MuiRadioGroup', ['root', 'row', 'error']);\nexport default radioGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport FormGroup from \"../FormGroup/index.js\";\nimport { getRadioGroupUtilityClass } from \"./radioGroupClasses.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport RadioGroupContext from \"./RadioGroupContext.js\";\nimport useId from \"../utils/useId.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = props => {\n const {\n classes,\n row,\n error\n } = props;\n const slots = {\n root: ['root', row && 'row', error && 'error']\n };\n return composeClasses(slots, getRadioGroupUtilityClass, classes);\n};\nconst RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {\n const {\n // private\n // eslint-disable-next-line react/prop-types\n actions,\n children,\n className,\n defaultValue,\n name: nameProp,\n onChange,\n value: valueProp,\n ...other\n } = props;\n const rootRef = React.useRef(null);\n const classes = useUtilityClasses(props);\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'RadioGroup'\n });\n React.useImperativeHandle(actions, () => ({\n focus: () => {\n let input = rootRef.current.querySelector('input:not(:disabled):checked');\n if (!input) {\n input = rootRef.current.querySelector('input:not(:disabled)');\n }\n if (input) {\n input.focus();\n }\n }\n }), []);\n const handleRef = useForkRef(ref, rootRef);\n const name = useId(nameProp);\n const contextValue = React.useMemo(() => ({\n name,\n onChange(event) {\n setValueState(event.target.value);\n if (onChange) {\n onChange(event, event.target.value);\n }\n },\n value\n }), [name, onChange, setValueState, value]);\n return /*#__PURE__*/_jsx(RadioGroupContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(FormGroup, {\n role: \"radiogroup\",\n ref: handleRef,\n className: clsx(classes.root, className),\n ...other,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? RadioGroup.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 * @ignore\n */\n className: PropTypes.string,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * The name used to reference the value of the control.\n * If you don't provide this prop, it falls back to a randomly generated name.\n */\n name: PropTypes.string,\n /**\n * Callback fired when a radio button is selected.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * @param {string} value The value of the selected radio button.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * Value of the selected radio button. The DOM API casts this to a string.\n */\n value: PropTypes.any\n} : void 0;\nexport default RadioGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchUtilityClass(slot) {\n return generateUtilityClass('MuiSwitch', slot);\n}\nconst switchClasses = generateUtilityClasses('MuiSwitch', ['root', 'edgeStart', 'edgeEnd', 'switchBase', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium', 'checked', 'disabled', 'input', 'thumb', 'track']);\nexport default switchClasses;","'use client';\n\n// @inheritedComponent IconButton\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport switchClasses, { getSwitchUtilityClass } from \"./switchClasses.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n})), memoTheme(({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? theme.lighten(theme.palette[color].main, 0.62) : theme.darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n})));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track'\n})(memoTheme(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n boxSizing: 'border-box',\n border: '1px solid transparent',\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n})));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb'\n})(memoTheme(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n boxSizing: 'border-box',\n border: '1px solid transparent',\n width: 20,\n height: 20,\n borderRadius: '50%'\n})));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n edge,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalInputProps = slotProps.input;\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n className: clsx(classes.root, className),\n elementType: SwitchRoot,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n sx\n }\n });\n const [ThumbSlot, thumbSlotProps] = useSlot('thumb', {\n className: classes.thumb,\n elementType: SwitchThumb,\n externalForwardedProps,\n ownerState\n });\n const icon = /*#__PURE__*/_jsx(ThumbSlot, {\n ...thumbSlotProps\n });\n const [TrackSlot, trackSlotProps] = useSlot('track', {\n className: classes.track,\n elementType: SwitchTrack,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, {\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState,\n ...other,\n classes: {\n ...classes,\n root: classes.switchBase\n },\n slots: {\n ...(slots.switchBase && {\n root: slots.switchBase\n }),\n ...(slots.input && {\n input: slots.input\n })\n },\n slotProps: {\n ...(slotProps.switchBase && {\n root: typeof slotProps.switchBase === 'function' ? slotProps.switchBase(ownerState) : slotProps.switchBase\n }),\n input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n role: 'switch'\n })\n }\n }), /*#__PURE__*/_jsx(TrackSlot, {\n ...trackSlotProps\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.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 * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: 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(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n switchBase: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n track: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType,\n switchBase: PropTypes.elementType,\n thumb: PropTypes.elementType,\n track: PropTypes.elementType\n }),\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 value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Radio\";\n//#region src/radio-with-label.tsx\nvar o = t(i)(() => ({ \"& .MuiFormControlLabel-label\": {\n\tleft: \"-5px\",\n\tposition: \"relative\"\n} })), s = t(a)(() => ({ color: `${r.tertiary()} !important` })), c = ({ label: e, value: t, checked: r, onChange: i }) => /* @__PURE__ */ n(o, {\n\tvalue: t,\n\tcontrol: /* @__PURE__ */ n(s, {\n\t\tchecked: r,\n\t\tonChange: i\n\t}),\n\tlabel: e\n});\nc.propTypes = {\n\tlabel: e.string,\n\tvalue: e.string,\n\tchecked: e.bool,\n\tonChange: e.func\n};\n//#endregion\nexport { c as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r, jsxs as i } from \"react/jsx-runtime\";\nimport a from \"@mui/material/Tabs\";\nimport o from \"@mui/material/Tab\";\n//#region src/tabs/index.tsx\nvar s = n(o)(() => ({})), c = class extends e.Component {\n\tstatic propTypes = {\n\t\tclassName: t.string,\n\t\tcontentClassName: t.string,\n\t\tcontentStyle: t.object,\n\t\tchildren: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { value: 0 };\n\t}\n\thandleChange = (e, t) => {\n\t\tthis.setState({ value: t });\n\t};\n\trender() {\n\t\tlet { value: t } = this.state, { children: n, className: o, contentClassName: c, contentStyle: l = {} } = this.props;\n\t\treturn /* @__PURE__ */ i(\"div\", {\n\t\t\tclassName: o,\n\t\t\tchildren: [/* @__PURE__ */ r(a, {\n\t\t\t\tindicatorColor: \"primary\",\n\t\t\t\tvalue: t,\n\t\t\t\tonChange: this.handleChange,\n\t\t\t\tchildren: e.Children.map(n, (e, t) => e && e.props.title ? /* @__PURE__ */ r(s, { label: e.props.title }, t) : null)\n\t\t\t}), /* @__PURE__ */ r(\"div\", {\n\t\t\t\tclassName: c,\n\t\t\t\tstyle: l,\n\t\t\t\tchildren: n[t]\n\t\t\t})]\n\t\t});\n\t}\n};\n//#endregion\nexport { c as Tabs, c as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Checkbox\";\nimport { grey as o } from \"@mui/material/colors\";\n//#region src/checkbox.tsx\nvar s = t(i)(({ theme: e, mini: t }) => ({\n\tmargin: 0,\n\tmarginLeft: 0,\n\tpadding: 0,\n\t\"& .MuiFormControlLabel-label\": {\n\t\tfontSize: e.typography.fontSize - 1,\n\t\ttransform: \"translate(-4%, 2%)\",\n\t\tcolor: \"rgba(0,0,0,1.0)\",\n\t\t...t && {\n\t\t\tmarginLeft: e.spacing(1),\n\t\t\tcolor: o[700],\n\t\t\tfontSize: e.typography.fontSize - 3\n\t\t}\n\t}\n})), c = t(a)(({ theme: e, mini: t, error: n }) => ({\n\tcolor: `${r.tertiary()} !important`,\n\t...t && {\n\t\tmargin: 0,\n\t\tpadding: 0,\n\t\twidth: e.spacing(3),\n\t\theight: e.spacing(3)\n\t},\n\t...n && { color: `${e.palette.error.main} !important` }\n})), l = ({ mini: e, checked: t, onChange: r, value: i, label: a, error: o }) => /* @__PURE__ */ n(s, {\n\tmini: e,\n\tcontrol: /* @__PURE__ */ n(c, {\n\t\tchecked: t,\n\t\tonChange: r,\n\t\tvalue: i,\n\t\tmini: e,\n\t\terror: o\n\t}),\n\tlabel: a\n});\nl.propTypes = {\n\tmini: e.bool,\n\tchecked: e.bool.isRequired,\n\tonChange: e.func.isRequired,\n\tvalue: e.string,\n\tlabel: e.string.isRequired,\n\terror: e.bool\n}, l.defaultProps = {\n\tvalue: \"\",\n\tmini: !1,\n\terror: !1\n};\n//#endregion\nexport { l as default };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { isFinite as i } from \"@pie-element/shared-lodash\";\nimport a from \"debug\";\nimport o from \"@mui/material/TextField\";\nimport s from \"@mui/material/InputAdornment\";\n//#region src/number-text-field.tsx\nvar c = a(\"@pie-lib:config-ui:number-text-field\"), l = n(o)(({ theme: e }) => ({\n\tmarginRight: e.spacing(1),\n\t\"& .MuiInputLabel-root\": {\n\t\twidth: \"auto\",\n\t\tminWidth: \"max-content\",\n\t\tmaxWidth: \"none\",\n\t\twhiteSpace: \"nowrap\",\n\t\toverflow: \"visible\",\n\t\ttransform: \"translate(0, 8px) scale(0.75)\",\n\t\ttransformOrigin: \"top left\",\n\t\tposition: \"relative\"\n\t},\n\t\"& .MuiInputBase-root, & .MuiInput-root, & .MuiFilledInput-root, & .MuiOutlinedInput-root\": {\n\t\theight: \"auto\",\n\t\tminHeight: \"auto\",\n\t\tmarginTop: 0\n\t},\n\t\"& .MuiInputBase-input\": {\n\t\theight: \"auto\",\n\t\tminHeight: \"auto\",\n\t\tpadding: \"6px 0 7px\"\n\t}\n})), u = (e, t) => {\n\tif (!i(e) && !i(t)) return 0;\n\tif (!i(e) && i(t)) return t;\n\tif (i(e)) return e;\n}, d = class extends e.Component {\n\tstatic propTypes = {\n\t\tdisabled: t.bool,\n\t\tclassName: t.string,\n\t\tinputClassName: t.string,\n\t\tonChange: t.func.isRequired,\n\t\tvalue: t.number,\n\t\tmin: t.number,\n\t\tmax: t.number,\n\t\tlabel: t.string,\n\t\tsuffix: t.string,\n\t\tshowErrorWhenOutsideRange: t.bool,\n\t\tdisableUnderline: t.bool,\n\t\tvariant: t.string\n\t};\n\tstatic defaultProps = { showErrorWhenOutsideRange: !1 };\n\tconstructor(e) {\n\t\tsuper(e);\n\t\tlet t = this.clamp(e.value);\n\t\tthis.state = { value: t }, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tlet t = this.clamp(e.value, e.min, e.max);\n\t\tthis.setState({ value: t });\n\t}\n\tclamp(e, t = this.props.min, n = this.props.max) {\n\t\treturn i(e) ? (i(n) && (e = Math.min(e, n)), i(t) && (e = Math.max(e, t)), e) : u(t, n);\n\t}\n\tonBlur = (e) => {\n\t\tlet t = e.target.value, n = parseFloat(t);\n\t\tc(\"rawNumber: \", n);\n\t\tlet r = this.clamp(n);\n\t\tc(\"number: \", r), r !== this.state.value && (c(\"trigger update...\"), this.setState({ value: r.toString() }, () => {\n\t\t\tthis.props.onChange(e, r);\n\t\t}));\n\t};\n\tonChange(e) {\n\t\tlet t = e.target.value;\n\t\tthis.setState({ value: t });\n\t}\n\terrorMessage = () => {\n\t\tlet { min: e, max: t } = this.props;\n\t\tif (e && t) return `The value must be between ${e} and ${t}`;\n\t\tif (e) return `The value must be greater than ${e}`;\n\t\tif (t) return `The value must be less than ${t}`;\n\t};\n\tgetError = () => {\n\t\tlet { value: e } = this.state, t = parseFloat(e);\n\t\tif (this.clamp(t) !== t) return this.errorMessage();\n\t};\n\trender() {\n\t\tlet { className: e, label: t, disabled: n, suffix: i, min: a, max: o, inputClassName: c, disableUnderline: u, showErrorWhenOutsideRange: d, variant: f } = this.props, p = d && this.getError();\n\t\treturn /* @__PURE__ */ r(l, {\n\t\t\tvariant: u ? \"filled\" : f || \"standard\",\n\t\t\tinputRef: (e) => {\n\t\t\t\tthis.inputRef = e;\n\t\t\t},\n\t\t\tdisabled: n,\n\t\t\tlabel: t,\n\t\t\tInputLabelProps: { shrink: !0 },\n\t\t\tvalue: this.state.value,\n\t\t\terror: !!p,\n\t\t\thelperText: p,\n\t\t\tonChange: this.onChange,\n\t\t\tonBlur: this.onBlur,\n\t\t\tonKeyDown: (e) => {\n\t\t\t\te.key === \"Enter\" && this.inputRef && this.inputRef.blur();\n\t\t\t},\n\t\t\ttype: \"number\",\n\t\t\tclassName: e,\n\t\t\tslotProps: { input: {\n\t\t\t\tendAdornment: i && /* @__PURE__ */ r(s, {\n\t\t\t\t\tposition: \"end\",\n\t\t\t\t\tchildren: i\n\t\t\t\t}),\n\t\t\t\tclassName: c,\n\t\t\t\tinputProps: {\n\t\t\t\t\tmin: a,\n\t\t\t\t\tmax: o\n\t\t\t\t}\n\t\t\t} },\n\t\t\tmargin: \"normal\"\n\t\t});\n\t}\n};\n//#endregion\nexport { d as NumberTextField, d as default };\n","//#region src/fraction-to-number.ts\nvar e = (e) => typeof e == \"object\" && !!e && typeof e.n == \"number\" && typeof e.d == \"number\", t = (t) => {\n\tif (typeof t == \"number\") return t;\n\tif (e(t)) return (t.s ?? 1) * t.n / t.d;\n\tlet n = String(t).trim(), r = n.match(/^([+-]?\\d+)\\s*\\/\\s*([+-]?\\d+)$/);\n\treturn r ? Number.parseInt(r[1] ?? \"0\", 10) / Number.parseInt(r[2] ?? \"1\", 10) : Number(n);\n};\n//#endregion\nexport { t as fractionToNumber };\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"\n}), 'Add');","import { fractionToNumber as e } from \"./fraction-to-number.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport { isFinite as a } from \"@pie-element/shared-lodash\";\nimport o from \"@mui/material/IconButton\";\nimport s from \"@mui/material/TextField\";\nimport c from \"@mui/material/InputAdornment\";\nimport l from \"@mui/icons-material/Remove\";\nimport u from \"@mui/icons-material/Add\";\n//#region src/number-text-field-custom.tsx\nvar d = r(s)(() => ({\n\t\"& input[type=number]\": { MozAppearance: \"textfield\" },\n\t\"& input[type=number]::-webkit-outer-spin-button\": {\n\t\tWebkitAppearance: \"none\",\n\t\tmargin: 0\n\t},\n\t\"& input[type=number]::-webkit-inner-spin-button\": {\n\t\tWebkitAppearance: \"none\",\n\t\tmargin: 0\n\t}\n})), f = r(o)(() => ({ padding: \"2px\" })), p = (e, t) => {\n\tif (!a(e) && !a(t)) return 0;\n\tif (!a(e) && a(t)) return t;\n\tif (a(e)) return e;\n}, m = class extends t.Component {\n\tstatic propTypes = {\n\t\tclassName: n.string,\n\t\tcustomValues: n.array,\n\t\tdisabled: n.bool,\n\t\terror: n.bool,\n\t\tinputClassName: n.string,\n\t\thelperText: n.string,\n\t\tonChange: n.func.isRequired,\n\t\tonlyIntegersAllowed: n.bool,\n\t\tvalue: n.any,\n\t\tmin: n.number,\n\t\tmax: n.number,\n\t\tstep: n.number,\n\t\tlabel: n.string,\n\t\tdisableUnderline: n.bool,\n\t\ttextAlign: n.string,\n\t\tvariant: n.string,\n\t\ttype: n.string\n\t};\n\tstatic defaultProps = {\n\t\tstep: 1,\n\t\tcustomValues: [],\n\t\ttextAlign: \"center\",\n\t\tvariant: \"standard\",\n\t\tonlyIntegersAllowed: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e);\n\t\tlet { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value);\n\t\tthis.state = {\n\t\t\tvalue: t,\n\t\t\tcurrentIndex: n\n\t\t}, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tlet { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value, e.min, e.max);\n\t\tthis.setState({\n\t\t\tvalue: t,\n\t\t\tcurrentIndex: n\n\t\t});\n\t}\n\tclamp(e, t = this.props.min, n = this.props.max) {\n\t\tlet { customValues: r } = this.props;\n\t\treturn (r || []).length > 0 ? e : a(e) ? (a(n) && (e = Math.min(e, n)), a(t) && (e = Math.max(e, t)), e) : p(t, n);\n\t}\n\tnormalizeValueAndIndex = (e, t, n, r) => {\n\t\tlet { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);\n\t\tif ((e || []).length > 0 && o === -1) {\n\t\t\tlet t = i === \"text\" ? this.getClosestFractionValue(e, a) : this.getClosestValue(e, a);\n\t\t\treturn {\n\t\t\t\tvalue: t.value,\n\t\t\t\tcurrentIndex: t.index\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tvalue: a,\n\t\t\tcurrentIndex: o\n\t\t};\n\t};\n\tgetClosestValue = (e, t) => e.reduce((e, n, r) => Math.abs(n - t) < Math.abs(e.value - t) ? {\n\t\tvalue: n,\n\t\tindex: r\n\t} : e, {\n\t\tvalue: e[0],\n\t\tindex: 0\n\t});\n\tgetClosestFractionValue = (t, n) => t.reduce((t, r, i) => Math.abs(e(r) - e(n)) < Math.abs(e(t.value) - e(n)) ? {\n\t\tvalue: r,\n\t\tindex: i\n\t} : t, {\n\t\tvalue: t[0],\n\t\tindex: 0\n\t});\n\tgetValidFraction = (e) => {\n\t\tif (this.isPositiveInteger(e.trim())) return e.trim();\n\t\tif (e.trim() === \"\" || e.trim().split(\"/\").length !== 2) return !1;\n\t\tlet [t, n] = e.trim().split(\"/\");\n\t\treturn isNaN(t) || isNaN(n) || (t = parseFloat(t), n = parseFloat(n), !Number.isInteger(t) || !Number.isInteger(n)) || t < 0 || n < 1 ? !1 : t + \"/\" + n;\n\t};\n\tisPositiveInteger = (e) => e >>> 0 === parseFloat(e);\n\tonBlur = (e) => {\n\t\tlet { customValues: t, onlyIntegersAllowed: n, type: r } = this.props, { value: i } = e.target;\n\t\tr === \"text\" && (i = this.getValidFraction(i) || this.props.value);\n\t\tlet a = n ? Math.round(parseFloat(i)) : parseFloat(i);\n\t\tr === \"text\" && (a = i.trim());\n\t\tlet { value: o, currentIndex: s } = this.normalizeValueAndIndex(t, a);\n\t\tthis.setState({\n\t\t\tvalue: o.toString(),\n\t\t\tcurrentIndex: s\n\t\t}, () => this.props.onChange(e, o));\n\t};\n\tonChange(e) {\n\t\tlet { type: t } = this.props, { value: n } = e.target;\n\t\tt !== \"text\" && typeof n == \"string\" && n.trim() === \"\" || this.setState({ value: n });\n\t}\n\tchangeValue(e, t = 1, n = !1) {\n\t\te.preventDefault();\n\t\tlet { customValues: r, step: i, onlyIntegersAllowed: a, onChange: o } = this.props, { currentIndex: s, value: c } = this.state, l = s + t * 1, u;\n\t\tif (r.length > 0) {\n\t\t\tif (l < 0 || l >= r.length) return;\n\t\t\tu = r[l];\n\t\t} else {\n\t\t\tlet e = ((a ? parseInt(c) : parseFloat(c)) * 1e4 + i * t * 1e4) / 1e4;\n\t\t\tu = this.clamp(e);\n\t\t}\n\t\tthis.setState({\n\t\t\tvalue: u.toString(),\n\t\t\tcurrentIndex: l\n\t\t}, () => {\n\t\t\tn && o(e, u);\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: e, label: t, disabled: n, error: r, min: o, max: s, customValues: p, inputClassName: m, disableUnderline: h, helperText: g, variant: _, textAlign: v, type: y = \"number\" } = this.props, { value: b } = this.state, x = e, S = !1, C = !1;\n\t\treturn p.length > 0 ? (S = b === p[0], C = b === p[p.length - 1]) : a(o) && a(s) && (S = b === o, C = b === s), /* @__PURE__ */ i(d, {\n\t\t\tvariant: _,\n\t\t\tinputRef: (e) => this.inputRef = e,\n\t\t\tdisabled: n,\n\t\t\tlabel: t,\n\t\t\tvalue: b,\n\t\t\terror: r,\n\t\t\thelperText: g,\n\t\t\tonChange: this.onChange,\n\t\t\tonBlur: this.onBlur,\n\t\t\tonKeyPress: (e) => {\n\t\t\t\te.key === \"Enter\" && this.inputRef && this.inputRef.blur();\n\t\t\t},\n\t\t\tonKeyDown: (e) => {\n\t\t\t\te.key === \"ArrowUp\" && this.changeValue(e), e.key === \"ArrowDown\" && this.changeValue(e, -1);\n\t\t\t},\n\t\t\ttitle: \"\",\n\t\t\ttype: y,\n\t\t\tclassName: x,\n\t\t\tInputProps: {\n\t\t\t\tclassName: m,\n\t\t\t\tdisableUnderline: h,\n\t\t\t\tstartAdornment: /* @__PURE__ */ i(c, {\n\t\t\t\t\tposition: \"start\",\n\t\t\t\t\tchildren: /* @__PURE__ */ i(f, {\n\t\t\t\t\t\tdisabled: n || S,\n\t\t\t\t\t\tonClick: (e) => this.changeValue(e, -1, !0),\n\t\t\t\t\t\tsize: \"large\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ i(l, { fontSize: \"small\" })\n\t\t\t\t\t})\n\t\t\t\t}),\n\t\t\t\tendAdornment: /* @__PURE__ */ i(c, {\n\t\t\t\t\tposition: \"end\",\n\t\t\t\t\tchildren: /* @__PURE__ */ i(f, {\n\t\t\t\t\t\tdisabled: n || C,\n\t\t\t\t\t\tonClick: (e) => this.changeValue(e, 1, !0),\n\t\t\t\t\t\tsize: \"large\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ i(u, { fontSize: \"small\" })\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\tinputProps: {\n\t\t\t\tstyle: { textAlign: v },\n\t\t\t\tmin: o,\n\t\t\t\tmax: s\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\nexport { m as NumberTextFieldCustom, m as default };\n","import e from \"./radio-with-label.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { InputContainer as o } from \"@pie-lib/render-ui\";\n//#region src/two-choice.tsx\nfunction s(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction c(e, t) {\n\treturn !e || s(e) ? e : s(e.default) ? e.default : t && s(e[t]) ? e[t] : t && s(e[t]?.default) ? e[t].default : e;\n}\nvar l = c(o, \"InputContainer\") || c(f.InputContainer, \"InputContainer\"), u = a, d = u.default, f = d && typeof d == \"object\" ? d : u, p = r(\"div\")(({ theme: e, direction: t }) => ({\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\tpaddingLeft: 0,\n\tmarginTop: e.spacing(1),\n\t...t === \"vertical\" && { flexDirection: \"column\" }\n})), m = class extends t.Component {\n\tstatic propTypes = {\n\t\theader: n.string.isRequired,\n\t\tclassName: n.string,\n\t\tcustomLabel: n.func,\n\t\topts: n.array.isRequired,\n\t\tvalue: n.string,\n\t\tonChange: n.func.isRequired,\n\t\tdirection: n.oneOf([\"horizontal\", \"vertical\"])\n\t};\n\thandleChange = (e) => {\n\t\tthis.props.onChange(e.currentTarget.value);\n\t};\n\trender() {\n\t\tlet { header: t, className: n, customLabel: r, opts: a, value: o, direction: s } = this.props, c = a.map((e) => typeof e == \"string\" ? {\n\t\t\tlabel: e,\n\t\t\tvalue: e\n\t\t} : e), u = r || e;\n\t\treturn /* @__PURE__ */ i(l, {\n\t\t\tlabel: t,\n\t\t\tclassName: n,\n\t\t\tchildren: /* @__PURE__ */ i(p, {\n\t\t\t\tdirection: s,\n\t\t\t\tchildren: c.map((e, t) => /* @__PURE__ */ i(u, {\n\t\t\t\t\tvalue: e.value,\n\t\t\t\t\tchecked: e.value === o,\n\t\t\t\t\tonChange: this.handleChange,\n\t\t\t\t\tlabel: e.label\n\t\t\t\t}, t))\n\t\t\t})\n\t\t});\n\t}\n}, h = n.shape({\n\tlabel: n.string,\n\tvalue: n.string\n}), g = class extends t.Component {\n\tstatic propTypes = {\n\t\theader: n.string.isRequired,\n\t\tvalue: n.string.isRequired,\n\t\tonChange: n.func.isRequired,\n\t\tone: n.oneOfType([h, n.string]),\n\t\ttwo: n.oneOfType([h, n.string]),\n\t\tclassName: n.string,\n\t\tcustomLabel: n.func\n\t};\n\trender() {\n\t\tlet { one: e, two: t, header: n, className: r, customLabel: a, value: o, onChange: s } = this.props;\n\t\treturn /* @__PURE__ */ i(m, {\n\t\t\tcustomLabel: a,\n\t\t\theader: n,\n\t\t\tclassName: r,\n\t\t\topts: [e, t],\n\t\t\tvalue: o,\n\t\t\tonChange: s\n\t\t});\n\t}\n};\n//#endregion\nexport { m as NChoice, g as default };\n","//#region \\0rolldown/runtime.js\nvar e = Object.defineProperty, t = (t, n) => {\n\tlet r = {};\n\tfor (var i in t) e(r, i, {\n\t\tget: t[i],\n\t\tenumerable: !0\n\t});\n\treturn n || e(r, Symbol.toStringTag, { value: \"Module\" }), r;\n};\n//#endregion\nexport { t as __exportAll };\n","import { Tabs as e } from \"../tabs/index.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { jsx as i, jsxs as a } from \"react/jsx-runtime\";\n//#region src/layout/layout-contents.tsx\nvar o = r(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tposition: \"relative\"\n})), s = r(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\"\n})), c = r(\"div\")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), l = r(\"div\")(() => ({ flex: \"1\" })), u = r(\"div\")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), d = class extends t.Component {\n\tstatic propTypes = {\n\t\tmode: n.oneOf([\"tabbed\", \"inline\"]),\n\t\tsecondary: n.oneOfType([n.arrayOf(n.node), n.node]),\n\t\tchildren: n.oneOfType([n.arrayOf(n.node), n.node]),\n\t\tdimensions: n.object\n\t};\n\tgetConfiguration = () => {\n\t\tlet { secondary: e } = this.props;\n\t\treturn e?.props?.configuration || e?.props?.children?.props?.configuration || void 0;\n\t};\n\trender() {\n\t\tlet { mode: t, secondary: n, children: r, dimensions: d } = this.props, { minHeight: f, minWidth: p, maxHeight: m, maxWidth: h } = d || {}, g = this.getConfiguration(), _ = Object.entries(g || {}).some(([, e]) => !!e?.settings);\n\t\tif (!_) try {\n\t\t\t_ = JSON.stringify(g)?.match(/settings\":true/)?.length;\n\t\t} catch (e) {\n\t\t\tconsole.log(e.toString());\n\t\t}\n\t\treturn /* @__PURE__ */ a(o, {\n\t\t\tstyle: {\n\t\t\t\tminHeight: f,\n\t\t\t\tminWidth: p,\n\t\t\t\tmaxHeight: m,\n\t\t\t\tmaxWidth: h\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tt === \"inline\" && /* @__PURE__ */ a(s, { children: [/* @__PURE__ */ i(l, {\n\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\tchildren: r\n\t\t\t\t}), _ && /* @__PURE__ */ i(u, {\n\t\t\t\t\tclassName: \"settings-container\",\n\t\t\t\t\tchildren: n\n\t\t\t\t})] }),\n\t\t\t\tt === \"tabbed\" && _ && /* @__PURE__ */ a(e, {\n\t\t\t\t\tonChange: this.onTabsChange,\n\t\t\t\t\tcontentClassName: \"content-container\",\n\t\t\t\t\tindicatorColor: \"primary\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ i(c, {\n\t\t\t\t\t\ttitle: \"Design\",\n\t\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\t\tchildren: r\n\t\t\t\t\t}), /* @__PURE__ */ i(c, {\n\t\t\t\t\t\ttitle: \"Settings\",\n\t\t\t\t\t\tclassName: \"settings-container\",\n\t\t\t\t\t\tchildren: n\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\tt === \"tabbed\" && !_ && /* @__PURE__ */ i(c, {\n\t\t\t\t\tclassName: \"design-container\",\n\t\t\t\t\tchildren: r\n\t\t\t\t})\n\t\t\t]\n\t\t});\n\t}\n};\n//#endregion\nexport { d as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js\nfunction e() {\n\treturn e = Object.assign ? Object.assign.bind() : function(e) {\n\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\tvar n = arguments[t];\n\t\t\tfor (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);\n\t\t}\n\t\treturn e;\n\t}, e.apply(null, arguments);\n}\n//#endregion\nexport { e as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\nfunction e(e, t) {\n\tif (e == null) return {};\n\tvar n = {};\n\tfor (var r in e) if ({}.hasOwnProperty.call(e, r)) {\n\t\tif (t.indexOf(r) !== -1) continue;\n\t\tn[r] = e[r];\n\t}\n\treturn n;\n}\n//#endregion\nexport { e as default };\n","//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction e(t, n) {\n\treturn e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {\n\t\treturn e.__proto__ = t, e;\n\t}, e(t, n);\n}\n//#endregion\nexport { e as default };\n","import e from \"./setPrototypeOf.js\";\n//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\nfunction t(t, n) {\n\tt.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);\n}\n//#endregion\nexport { t as default };\n","//#region ../../../node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js\nvar e = (function() {\n\tif (typeof Map < \"u\") return Map;\n\tfunction e(e, t) {\n\t\tvar n = -1;\n\t\treturn e.some(function(e, r) {\n\t\t\treturn e[0] === t ? (n = r, !0) : !1;\n\t\t}), n;\n\t}\n\treturn function() {\n\t\tfunction t() {\n\t\t\tthis.__entries__ = [];\n\t\t}\n\t\treturn Object.defineProperty(t.prototype, \"size\", {\n\t\t\tget: function() {\n\t\t\t\treturn this.__entries__.length;\n\t\t\t},\n\t\t\tenumerable: !0,\n\t\t\tconfigurable: !0\n\t\t}), t.prototype.get = function(t) {\n\t\t\tvar n = e(this.__entries__, t), r = this.__entries__[n];\n\t\t\treturn r && r[1];\n\t\t}, t.prototype.set = function(t, n) {\n\t\t\tvar r = e(this.__entries__, t);\n\t\t\t~r ? this.__entries__[r][1] = n : this.__entries__.push([t, n]);\n\t\t}, t.prototype.delete = function(t) {\n\t\t\tvar n = this.__entries__, r = e(n, t);\n\t\t\t~r && n.splice(r, 1);\n\t\t}, t.prototype.has = function(t) {\n\t\t\treturn !!~e(this.__entries__, t);\n\t\t}, t.prototype.clear = function() {\n\t\t\tthis.__entries__.splice(0);\n\t\t}, t.prototype.forEach = function(e, t) {\n\t\t\tt === void 0 && (t = null);\n\t\t\tfor (var n = 0, r = this.__entries__; n < r.length; n++) {\n\t\t\t\tvar i = r[n];\n\t\t\t\te.call(t, i[1], i[0]);\n\t\t\t}\n\t\t}, t;\n\t}();\n})(), t = typeof window < \"u\" && typeof document < \"u\" && window.document === document, n = (function() {\n\treturn typeof global < \"u\" && global.Math === Math ? global : typeof self < \"u\" && self.Math === Math ? self : typeof window < \"u\" && window.Math === Math ? window : Function(\"return this\")();\n})(), r = (function() {\n\treturn typeof requestAnimationFrame == \"function\" ? requestAnimationFrame.bind(n) : function(e) {\n\t\treturn setTimeout(function() {\n\t\t\treturn e(Date.now());\n\t\t}, 1e3 / 60);\n\t};\n})(), i = 2;\nfunction a(e, t) {\n\tvar n = !1, a = !1, o = 0;\n\tfunction s() {\n\t\tn && (n = !1, e()), a && l();\n\t}\n\tfunction c() {\n\t\tr(s);\n\t}\n\tfunction l() {\n\t\tvar e = Date.now();\n\t\tif (n) {\n\t\t\tif (e - o < i) return;\n\t\t\ta = !0;\n\t\t} else n = !0, a = !1, setTimeout(c, t);\n\t\to = e;\n\t}\n\treturn l;\n}\nvar o = 20, s = [\n\t\"top\",\n\t\"right\",\n\t\"bottom\",\n\t\"left\",\n\t\"width\",\n\t\"height\",\n\t\"size\",\n\t\"weight\"\n], c = typeof MutationObserver < \"u\", l = function() {\n\tfunction e() {\n\t\tthis.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = a(this.refresh.bind(this), o);\n\t}\n\treturn e.prototype.addObserver = function(e) {\n\t\t~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();\n\t}, e.prototype.removeObserver = function(e) {\n\t\tvar t = this.observers_, n = t.indexOf(e);\n\t\t~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();\n\t}, e.prototype.refresh = function() {\n\t\tthis.updateObservers_() && this.refresh();\n\t}, e.prototype.updateObservers_ = function() {\n\t\tvar e = this.observers_.filter(function(e) {\n\t\t\treturn e.gatherActive(), e.hasActive();\n\t\t});\n\t\treturn e.forEach(function(e) {\n\t\t\treturn e.broadcastActive();\n\t\t}), e.length > 0;\n\t}, e.prototype.connect_ = function() {\n\t\t!t || this.connected_ || (document.addEventListener(\"transitionend\", this.onTransitionEnd_), window.addEventListener(\"resize\", this.refresh), c ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {\n\t\t\tattributes: !0,\n\t\t\tchildList: !0,\n\t\t\tcharacterData: !0,\n\t\t\tsubtree: !0\n\t\t})) : (document.addEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);\n\t}, e.prototype.disconnect_ = function() {\n\t\t!t || !this.connected_ || (document.removeEventListener(\"transitionend\", this.onTransitionEnd_), window.removeEventListener(\"resize\", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);\n\t}, e.prototype.onTransitionEnd_ = function(e) {\n\t\tvar t = e.propertyName, n = t === void 0 ? \"\" : t;\n\t\ts.some(function(e) {\n\t\t\treturn !!~n.indexOf(e);\n\t\t}) && this.refresh();\n\t}, e.getInstance = function() {\n\t\treturn this.instance_ ||= new e(), this.instance_;\n\t}, e.instance_ = null, e;\n}(), u = (function(e, t) {\n\tfor (var n = 0, r = Object.keys(t); n < r.length; n++) {\n\t\tvar i = r[n];\n\t\tObject.defineProperty(e, i, {\n\t\t\tvalue: t[i],\n\t\t\tenumerable: !1,\n\t\t\twritable: !1,\n\t\t\tconfigurable: !0\n\t\t});\n\t}\n\treturn e;\n}), d = (function(e) {\n\treturn e && e.ownerDocument && e.ownerDocument.defaultView || n;\n}), f = S(0, 0, 0, 0);\nfunction p(e) {\n\treturn parseFloat(e) || 0;\n}\nfunction m(e) {\n\treturn [...arguments].slice(1).reduce(function(t, n) {\n\t\tvar r = e[\"border-\" + n + \"-width\"];\n\t\treturn t + p(r);\n\t}, 0);\n}\nfunction h(e) {\n\tfor (var t = [\n\t\t\"top\",\n\t\t\"right\",\n\t\t\"bottom\",\n\t\t\"left\"\n\t], n = {}, r = 0, i = t; r < i.length; r++) {\n\t\tvar a = i[r], o = e[\"padding-\" + a];\n\t\tn[a] = p(o);\n\t}\n\treturn n;\n}\nfunction g(e) {\n\tvar t = e.getBBox();\n\treturn S(0, 0, t.width, t.height);\n}\nfunction _(e) {\n\tvar t = e.clientWidth, n = e.clientHeight;\n\tif (!t && !n) return f;\n\tvar r = d(e).getComputedStyle(e), i = h(r), a = i.left + i.right, o = i.top + i.bottom, s = p(r.width), c = p(r.height);\n\tif (r.boxSizing === \"border-box\" && (Math.round(s + a) !== t && (s -= m(r, \"left\", \"right\") + a), Math.round(c + o) !== n && (c -= m(r, \"top\", \"bottom\") + o)), !y(e)) {\n\t\tvar l = Math.round(s + a) - t, u = Math.round(c + o) - n;\n\t\tMath.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);\n\t}\n\treturn S(i.left, i.top, s, c);\n}\nvar v = (function() {\n\treturn typeof SVGGraphicsElement < \"u\" ? function(e) {\n\t\treturn e instanceof d(e).SVGGraphicsElement;\n\t} : function(e) {\n\t\treturn e instanceof d(e).SVGElement && typeof e.getBBox == \"function\";\n\t};\n})();\nfunction y(e) {\n\treturn e === d(e).document.documentElement;\n}\nfunction b(e) {\n\treturn t ? v(e) ? g(e) : _(e) : f;\n}\nfunction x(e) {\n\tvar t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < \"u\" ? DOMRectReadOnly : Object).prototype);\n\treturn u(a, {\n\t\tx: t,\n\t\ty: n,\n\t\twidth: r,\n\t\theight: i,\n\t\ttop: n,\n\t\tright: t + r,\n\t\tbottom: i + n,\n\t\tleft: t\n\t}), a;\n}\nfunction S(e, t, n, r) {\n\treturn {\n\t\tx: e,\n\t\ty: t,\n\t\twidth: n,\n\t\theight: r\n\t};\n}\nvar C = function() {\n\tfunction e(e) {\n\t\tthis.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = S(0, 0, 0, 0), this.target = e;\n\t}\n\treturn e.prototype.isActive = function() {\n\t\tvar e = b(this.target);\n\t\treturn this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;\n\t}, e.prototype.broadcastRect = function() {\n\t\tvar e = this.contentRect_;\n\t\treturn this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;\n\t}, e;\n}(), w = function() {\n\tfunction e(e, t) {\n\t\tvar n = x(t);\n\t\tu(this, {\n\t\t\ttarget: e,\n\t\t\tcontentRect: n\n\t\t});\n\t}\n\treturn e;\n}(), T = function() {\n\tfunction t(t, n, r) {\n\t\tif (this.activeObservations_ = [], this.observations_ = new e(), typeof t != \"function\") throw TypeError(\"The callback provided as parameter 1 is not a function.\");\n\t\tthis.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;\n\t}\n\treturn t.prototype.observe = function(e) {\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tif (!(typeof Element > \"u\" || !(Element instanceof Object))) {\n\t\t\tif (!(e instanceof d(e).Element)) throw TypeError(\"parameter 1 is not of type \\\"Element\\\".\");\n\t\t\tvar t = this.observations_;\n\t\t\tt.has(e) || (t.set(e, new C(e)), this.controller_.addObserver(this), this.controller_.refresh());\n\t\t}\n\t}, t.prototype.unobserve = function(e) {\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tif (!(typeof Element > \"u\" || !(Element instanceof Object))) {\n\t\t\tif (!(e instanceof d(e).Element)) throw TypeError(\"parameter 1 is not of type \\\"Element\\\".\");\n\t\t\tvar t = this.observations_;\n\t\t\tt.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));\n\t\t}\n\t}, t.prototype.disconnect = function() {\n\t\tthis.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);\n\t}, t.prototype.gatherActive = function() {\n\t\tvar e = this;\n\t\tthis.clearActive(), this.observations_.forEach(function(t) {\n\t\t\tt.isActive() && e.activeObservations_.push(t);\n\t\t});\n\t}, t.prototype.broadcastActive = function() {\n\t\tif (this.hasActive()) {\n\t\t\tvar e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {\n\t\t\t\treturn new w(e.target, e.broadcastRect());\n\t\t\t});\n\t\t\tthis.callback_.call(e, t, e), this.clearActive();\n\t\t}\n\t}, t.prototype.clearActive = function() {\n\t\tthis.activeObservations_.splice(0);\n\t}, t.prototype.hasActive = function() {\n\t\treturn this.activeObservations_.length > 0;\n\t}, t;\n}(), E = typeof WeakMap < \"u\" ? /* @__PURE__ */ new WeakMap() : new e(), D = function() {\n\tfunction e(t) {\n\t\tif (!(this instanceof e)) throw TypeError(\"Cannot call a class as a function.\");\n\t\tif (!arguments.length) throw TypeError(\"1 argument required, but only 0 present.\");\n\t\tvar n = new T(t, l.getInstance(), this);\n\t\tE.set(this, n);\n\t}\n\treturn e;\n}();\n[\n\t\"observe\",\n\t\"unobserve\",\n\t\"disconnect\"\n].forEach(function(e) {\n\tD.prototype[e] = function() {\n\t\tvar t;\n\t\treturn (t = E.get(this))[e].apply(t, arguments);\n\t};\n});\nvar O = (function() {\n\treturn n.ResizeObserver === void 0 ? D : n.ResizeObserver;\n})();\n//#endregion\nexport { O as default };\n","import e from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js\";\nimport t from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\";\nimport n from \"../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\";\nimport r from \"../../../../resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js\";\nimport { Component as i, createElement as a } from \"react\";\nimport o from \"prop-types\";\n//#region ../../../node_modules/.bun/react-measure@2.5.2+6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js\nvar s = [\n\t\"client\",\n\t\"offset\",\n\t\"scroll\",\n\t\"bounds\",\n\t\"margin\"\n];\nfunction c(e) {\n\tvar t = [];\n\treturn s.forEach(function(n) {\n\t\te[n] && t.push(n);\n\t}), t;\n}\nfunction l(e, t) {\n\tvar n = {};\n\tif (t.indexOf(\"client\") > -1 && (n.client = {\n\t\ttop: e.clientTop,\n\t\tleft: e.clientLeft,\n\t\twidth: e.clientWidth,\n\t\theight: e.clientHeight\n\t}), t.indexOf(\"offset\") > -1 && (n.offset = {\n\t\ttop: e.offsetTop,\n\t\tleft: e.offsetLeft,\n\t\twidth: e.offsetWidth,\n\t\theight: e.offsetHeight\n\t}), t.indexOf(\"scroll\") > -1 && (n.scroll = {\n\t\ttop: e.scrollTop,\n\t\tleft: e.scrollLeft,\n\t\twidth: e.scrollWidth,\n\t\theight: e.scrollHeight\n\t}), t.indexOf(\"bounds\") > -1) {\n\t\tvar r = e.getBoundingClientRect();\n\t\tn.bounds = {\n\t\t\ttop: r.top,\n\t\t\tright: r.right,\n\t\t\tbottom: r.bottom,\n\t\t\tleft: r.left,\n\t\t\twidth: r.width,\n\t\t\theight: r.height\n\t\t};\n\t}\n\tif (t.indexOf(\"margin\") > -1) {\n\t\tvar i = getComputedStyle(e);\n\t\tn.margin = {\n\t\t\ttop: i ? parseInt(i.marginTop) : 0,\n\t\t\tright: i ? parseInt(i.marginRight) : 0,\n\t\t\tbottom: i ? parseInt(i.marginBottom) : 0,\n\t\t\tleft: i ? parseInt(i.marginLeft) : 0\n\t\t};\n\t}\n\treturn n;\n}\nfunction u(e) {\n\treturn e && e.ownerDocument && e.ownerDocument.defaultView || window;\n}\nfunction d(s) {\n\treturn function(d) {\n\t\tvar f, p;\n\t\treturn p = f = /*#__PURE__*/ function(i) {\n\t\t\tn(o, i);\n\t\t\tfunction o() {\n\t\t\t\tvar e, t = [...arguments];\n\t\t\t\treturn e = i.call.apply(i, [this].concat(t)) || this, e.state = { contentRect: {\n\t\t\t\t\tentry: {},\n\t\t\t\t\tclient: {},\n\t\t\t\t\toffset: {},\n\t\t\t\t\tscroll: {},\n\t\t\t\t\tbounds: {},\n\t\t\t\t\tmargin: {}\n\t\t\t\t} }, e._animationFrameID = null, e._resizeObserver = null, e._node = null, e._window = null, e.measure = function(t) {\n\t\t\t\t\tvar n = l(e._node, s || c(e.props));\n\t\t\t\t\tt && (n.entry = t[0].contentRect), e._animationFrameID = e._window.requestAnimationFrame(function() {\n\t\t\t\t\t\te._resizeObserver !== null && (e.setState({ contentRect: n }), typeof e.props.onResize == \"function\" && e.props.onResize(n));\n\t\t\t\t\t});\n\t\t\t\t}, e._handleRef = function(t) {\n\t\t\t\t\te._resizeObserver !== null && e._node !== null && e._resizeObserver.unobserve(e._node), e._node = t, e._window = u(e._node);\n\t\t\t\t\tvar n = e.props.innerRef;\n\t\t\t\t\tn && (typeof n == \"function\" ? n(e._node) : n.current = e._node), e._resizeObserver !== null && e._node !== null && e._resizeObserver.observe(e._node);\n\t\t\t\t}, e;\n\t\t\t}\n\t\t\tvar f = o.prototype;\n\t\t\treturn f.componentDidMount = function() {\n\t\t\t\tthis._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new r(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == \"function\" && this.props.onResize(l(this._node, s || c(this.props))));\n\t\t\t}, f.componentWillUnmount = function() {\n\t\t\t\tthis._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);\n\t\t\t}, f.render = function() {\n\t\t\t\tvar n = this.props;\n\t\t\t\treturn n.innerRef, n.onResize, a(d, e({}, t(n, [\"innerRef\", \"onResize\"]), {\n\t\t\t\t\tmeasureRef: this._handleRef,\n\t\t\t\t\tmeasure: this.measure,\n\t\t\t\t\tcontentRect: this.state.contentRect\n\t\t\t\t}));\n\t\t\t}, o;\n\t\t}(i), f.propTypes = {\n\t\t\tclient: o.bool,\n\t\t\toffset: o.bool,\n\t\t\tscroll: o.bool,\n\t\t\tbounds: o.bool,\n\t\t\tmargin: o.bool,\n\t\t\tinnerRef: o.oneOfType([o.object, o.func]),\n\t\t\tonResize: o.func\n\t\t}, p;\n\t};\n}\nvar f = d()(function(e) {\n\tvar t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;\n\treturn i({\n\t\tmeasure: t,\n\t\tmeasureRef: n,\n\t\tcontentRect: r\n\t});\n});\nf.displayName = \"Measure\", f.propTypes.children = o.func;\n//#endregion\nexport { f as default, d as withContentRect };\n","import e from \"react\";\nimport t from \"prop-types\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\n//#region src/layout/settings-box.tsx\nvar a = n(\"div\")(() => ({\n\tbackgroundColor: i.white(),\n\tborder: `2px solid ${i.border()}`,\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tjustifyContent: \"flex-start\",\n\tminWidth: \"275px\",\n\tmaxWidth: \"300px\",\n\tpadding: \"20px 4px 4px 20px\",\n\tzIndex: 99\n})), o = class extends e.Component {\n\tstatic propTypes = {\n\t\tclassName: t.string,\n\t\tchildren: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired\n\t};\n\tstatic defaultProps = {};\n\trender() {\n\t\tlet { className: e, children: t } = this.props;\n\t\treturn /* @__PURE__ */ r(a, {\n\t\t\tclassName: e,\n\t\t\tchildren: t\n\t\t});\n\t}\n};\n//#endregion\nexport { o as SettingsBox, o as default };\n","import e, { withContentRect as t } from \"../node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js\";\nimport n from \"./layout-contents.js\";\nimport { SettingsBox as r } from \"./settings-box.js\";\nimport i from \"react\";\nimport a from \"prop-types\";\nimport { StyledEngineProvider as o, ThemeProvider as s, createTheme as c } from \"@mui/material/styles\";\nimport { jsx as l, jsxs as u } from \"react/jsx-runtime\";\n//#region src/layout/config-layout.tsx\nvar d = c({\n\ttypography: { fontFamily: \"inherit\" },\n\tcomponents: { MuiButton: { styleOverrides: { contained: {\n\t\tbackgroundColor: \"#e0e0e0\",\n\t\tcolor: \"#000000\",\n\t\t\"&:hover\": { backgroundColor: \"#bdbdbd\" }\n\t} } } }\n}), f = class extends i.Component {\n\tstatic propTypes = {\n\t\tchildren: a.oneOfType([\n\t\t\ta.string,\n\t\t\ta.arrayOf(a.element),\n\t\t\ta.element\n\t\t]),\n\t\tclassName: a.string,\n\t\tdimensions: a.object,\n\t\tsettings: a.element,\n\t\tsidePanelMinWidth: a.number,\n\t\thideSettings: a.bool,\n\t\textraCSSRules: a.shape({\n\t\t\tnames: a.arrayOf(a.string),\n\t\t\trules: a.string\n\t\t})\n\t};\n\tstatic defaultProps = {\n\t\tsidePanelMinWidth: 1135,\n\t\thideSettings: !1,\n\t\tdimensions: {}\n\t};\n\tconstructor(...e) {\n\t\tsuper(...e), this.state = { layoutMode: void 0 };\n\t}\n\tonResize = (e) => {\n\t\tlet { bounds: t } = e, { sidePanelMinWidth: n, dimensions: r } = this.props, { maxWidth: i } = r || {}, a = t.width > n && (!i || i > n) ? \"inline\" : \"tabbed\";\n\t\ta !== this.state.layoutMode && this.setState({ layoutMode: a });\n\t};\n\trender() {\n\t\treturn /* @__PURE__ */ l(o, {\n\t\t\tinjectFirst: !0,\n\t\t\tchildren: /* @__PURE__ */ l(s, {\n\t\t\t\ttheme: d,\n\t\t\t\tchildren: /* @__PURE__ */ l(e, {\n\t\t\t\t\tbounds: !0,\n\t\t\t\t\tonResize: this.onResize,\n\t\t\t\t\tchildren: ({ measureRef: e }) => {\n\t\t\t\t\t\tlet { children: t, settings: i, hideSettings: a, dimensions: o, extraCSSRules: s } = this.props, { layoutMode: c } = this.state, d = a ? null : c === \"inline\" ? /* @__PURE__ */ l(r, {\n\t\t\t\t\t\t\tclassName: \"settings-box\",\n\t\t\t\t\t\t\tchildren: i\n\t\t\t\t\t\t}) : i;\n\t\t\t\t\t\treturn /* @__PURE__ */ u(\"div\", {\n\t\t\t\t\t\t\tref: e,\n\t\t\t\t\t\t\tclassName: \"main-container extraCSSRules\",\n\t\t\t\t\t\t\tchildren: [s?.rules ? /* @__PURE__ */ l(\"style\", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${s.rules} }` } }) : null, /* @__PURE__ */ l(n, {\n\t\t\t\t\t\t\t\tmode: c,\n\t\t\t\t\t\t\t\tsecondary: d,\n\t\t\t\t\t\t\t\tdimensions: o,\n\t\t\t\t\t\t\t\tchildren: t\n\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n}, p = t(\"bounds\")(f);\n//#endregion\nexport { p as default };\n","import { __exportAll as e } from \"../_virtual/_rolldown/runtime.js\";\nimport t from \"./layout-contents.js\";\nimport n from \"./config-layout.js\";\n//#region src/layout/index.ts\nvar r = /* @__PURE__ */ e({\n\tConfigLayout: () => n,\n\tLayoutContents: () => t\n});\n//#endregion\nexport { n as ConfigLayout, t as LayoutContents, r as layout_exports };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n, jsxs as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\nimport a from \"@mui/material/Switch\";\nimport o from \"@mui/material/InputLabel\";\n//#region src/settings/toggle.tsx\nvar s = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\twidth: \"100%\",\n\tjustifyContent: \"space-between\"\n})), c = t(o)(({ theme: e }) => ({\n\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\tfontSize: e.typography.fontSize,\n\tpaddingTop: e.spacing(2)\n})), l = t(a)(({ checked: e }) => ({\n\t\"&.Mui-checked .MuiSwitch-thumb\": { color: `${i.tertiary()} !important` },\n\t\"&.Mui-checked .MuiSwitch-track\": { backgroundColor: `${i.tertiaryLight()} !important` },\n\t\"& .MuiSwitch-track\": { backgroundColor: e ? `${i.tertiaryLight()} !important` : void 0 }\n})), u = ({ checked: e, disabled: t, label: i, toggle: a }) => /* @__PURE__ */ r(s, { children: [/* @__PURE__ */ n(c, { children: i }), /* @__PURE__ */ n(l, {\n\tchecked: e,\n\tdisabled: t,\n\tonChange: (e) => a(e.target.checked)\n})] });\nu.propTypes = {\n\tchecked: e.bool,\n\tdisabled: e.bool,\n\tlabel: e.string.isRequired,\n\ttoggle: e.func.isRequired\n};\n//#endregion\nexport { u as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"@mui/material/FormControlLabel\";\nimport a from \"@mui/material/Radio\";\n//#region src/settings/settings-radio-label.tsx\nvar o = t(i)(({ theme: e }) => ({ \"& .MuiFormControlLabel-label\": {\n\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\tfontSize: e.typography.fontSize - 2,\n\tleft: \"-5px\",\n\tposition: \"relative\"\n} })), s = t(a)(() => ({ color: `${r.tertiary()} !important` })), c = ({ label: e, value: t, checked: r, onChange: i }) => /* @__PURE__ */ n(o, {\n\tvalue: t,\n\tcontrol: /* @__PURE__ */ n(s, {\n\t\tchecked: r,\n\t\tonChange: i\n\t}),\n\tlabel: e\n});\nc.propTypes = {\n\tlabel: e.string,\n\tvalue: e.string,\n\tchecked: e.bool,\n\tonChange: e.func\n};\n//#endregion\nexport { c as default };\n","import e from \"../checkbox.js\";\nimport { NumberTextField as t } from \"../number-text-field.js\";\nimport { NChoice as n } from \"../two-choice.js\";\nimport r from \"./toggle.js\";\nimport i from \"./settings-radio-label.js\";\nimport a from \"react\";\nimport o from \"prop-types\";\nimport { styled as s } from \"@mui/material/styles\";\nimport { jsx as c, jsxs as l } from \"react/jsx-runtime\";\nimport { get as u, set as d } from \"@pie-element/shared-lodash\";\nimport f from \"@mui/material/Typography\";\nimport p from \"@mui/material/Input\";\nimport m from \"@mui/material/Select\";\nimport h from \"@mui/material/MenuItem\";\nimport g from \"debug\";\n//#region src/settings/panel.tsx\nvar _ = g(\"pie-lib:config-ui:settings:panel\"), v = {\n\tlabel: o.string,\n\tvalue: o.string\n}, y = {\n\tlabel: o.string,\n\tvalue: o.string,\n\tonChange: o.func\n}, b = ({ label: t, value: n, onChange: r }) => /* @__PURE__ */ c(e, {\n\tchecked: n,\n\tlabel: t,\n\tonChange: (e) => {\n\t\tr(e.target.checked);\n\t}\n});\nb.propTypes = {\n\tlabel: o.string,\n\tvalue: o.bool,\n\tonChange: o.func\n};\nvar x = s(n)(({ theme: e }) => ({\n\tmarginTop: e.spacing(.5),\n\tpaddingBottom: e.spacing(.5),\n\twidth: \"100%\",\n\t\"& > label\": {\n\t\tcolor: \"rgba(0, 0, 0, 0.89)\",\n\t\ttransform: \"translate(0, 10px) scale(1)\",\n\t\tfontSize: \"18px\",\n\t\tmarginTop: e.spacing(2.5)\n\t},\n\t\"& > div\": { marginTop: e.spacing(2.5) }\n})), S = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ c(x, {\n\tdirection: \"horizontal\",\n\tcustomLabel: i,\n\tvalue: t,\n\theader: e,\n\topts: r,\n\tonChange: n\n});\nS.propTypes = {\n\t...y,\n\tchoices: o.arrayOf(o.shape(v))\n};\nvar C = S, w = s(\"p\")(({ theme: e }) => ({\n\tmargin: 0,\n\tfontSize: e.typography.fontSize\n})), T = s(m)(({ theme: e }) => ({\n\tmarginTop: e.spacing(.5),\n\tborder: \"2px solid lightgrey\",\n\tpadding: `0 ${e.spacing(1)}`,\n\tborderRadius: \"4px\"\n})), E = ({ label: e, value: t, onChange: n, choices: r = [] }) => {\n\tlet i = (e) => typeof e == \"string\" ? e : e.label, a = (e) => typeof e == \"string\" ? e : e.value;\n\treturn /* @__PURE__ */ l(\"div\", { children: [e && /* @__PURE__ */ c(w, { children: e }), /* @__PURE__ */ c(T, {\n\t\tvalue: t || r && r[0],\n\t\tonChange: ({ target: e }) => n(e.value),\n\t\tinput: /* @__PURE__ */ c(p, { id: `dropdown-${e}` }),\n\t\tdisableUnderline: !0,\n\t\tMenuProps: { transitionDuration: {\n\t\t\tenter: 225,\n\t\t\texit: 195\n\t\t} },\n\t\tchildren: r.map((e, t) => /* @__PURE__ */ c(h, {\n\t\t\tvalue: a(e),\n\t\t\tchildren: i(e)\n\t\t}, t))\n\t})] });\n};\nE.propTypes = {\n\t...y,\n\tchoices: o.arrayOf(o.string)\n};\nvar D = s(f)(({ theme: e }) => ({\n\tmarginRight: e.spacing(3),\n\tmarginTop: e.spacing(1)\n})), O = ({ label: e }) => /* @__PURE__ */ c(D, { children: e }), k = s(t)(({ theme: e }) => ({\n\twidth: \"35%\",\n\tmarginRight: e.spacing(3),\n\tmarginTop: e.spacing(1),\n\t\"& .MuiInputBase-root\": {\n\t\tmarginTop: e.spacing(.5),\n\t\tborder: \"2px solid lightgrey\",\n\t\tborderRadius: \"4px\",\n\t\tpadding: `0 ${e.spacing(1)}`,\n\t\tbackgroundColor: \"transparent\"\n\t}\n})), A = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ c(k, {\n\tvariant: \"standard\",\n\tlabel: e || \"Label\",\n\tvalue: t,\n\tmax: a,\n\tmin: i,\n\tonChange: (e, t) => n(t),\n\tsuffix: r,\n\tshowErrorWhenOutsideRange: !0,\n\tdisableUnderline: !0\n});\nA.propTypes = {\n\t...y,\n\tsuffix: o.string,\n\tmin: o.number,\n\tmax: o.number,\n\tvalue: o.number\n}, O.propTypes = { ...y };\nvar j = ({ disabled: e, label: t, value: n, onChange: i }) => /* @__PURE__ */ c(r, {\n\tlabel: t,\n\tchecked: !!n,\n\tdisabled: !!e,\n\ttoggle: i\n});\nj.propTypes = {\n\t...y,\n\tvalue: o.bool\n};\nvar M = {\n\ttoggle: j,\n\tradio: C,\n\tdropdown: E,\n\tnumberField: A,\n\tcheckbox: b,\n\ttextField: O\n}, N = s(\"div\")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), P = s(\"div\")(({ theme: e }) => ({\n\tcolor: \"#495B8F\",\n\tfontSize: e.typography.fontSize + 2,\n\tfontWeight: 600,\n\tmarginBottom: e.spacing(1)\n})), F = s(\"p\")(({ theme: e }) => ({\n\tfontSize: e.typography.fontSize,\n\tmarginBottom: 0\n})), I = (e) => {\n\tlet { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {\n\t\tlet { isConfigProperty: o, ...s } = u(e, r || n), l = u(o ? i : t, n), d = {\n\t\t\t...s,\n\t\t\tkey: n,\n\t\t\tvalue: l\n\t\t}, f = M[d.type];\n\t\treturn /* @__PURE__ */ c(f, {\n\t\t\t...d,\n\t\t\tonChange: (e) => a(n, e, o)\n\t\t}, n);\n\t}, s = (e, t) => {\n\t\tlet n = e[t];\n\t\tif (!n) return null;\n\t\tlet { type: r, label: i, fields: a, choices: s } = n;\n\t\treturn r === \"numberFields\" ? /* @__PURE__ */ l(\"div\", { children: [/* @__PURE__ */ c(F, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === \"checkboxes\" ? /* @__PURE__ */ l(\"div\", { children: [/* @__PURE__ */ c(\"p\", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);\n\t};\n\treturn /* @__PURE__ */ l(N, { children: [/* @__PURE__ */ c(P, { children: n }), Object.keys(r).map((e) => s(r, e))] });\n};\nI.propTypes = {\n\tmodel: o.object,\n\tlabel: o.string,\n\tgroup: o.object,\n\tconfiguration: o.object,\n\tonChange: o.func\n};\nvar L = class extends a.Component {\n\tstatic propTypes = {\n\t\tmodel: o.object,\n\t\tconfiguration: o.object,\n\t\tgroups: o.object,\n\t\tonChangeModel: o.func,\n\t\tonChangeConfiguration: o.func,\n\t\tmodal: o.object\n\t};\n\tstatic defaultProps = {\n\t\tonChangeModel: () => {},\n\t\tonChangeConfiguration: () => {}\n\t};\n\tchange = (e, t, n = !1) => {\n\t\t_(\"[changeModel]\", e, t);\n\t\tlet { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };\n\t\tn ? (d(o, e, t), i(o, e)) : (d(a, e, t), r(a, e));\n\t};\n\trender() {\n\t\tlet { groups: e, model: t, configuration: n, modal: r } = this.props;\n\t\treturn _(\"render:\", t), /* @__PURE__ */ l(\"div\", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ c(I, {\n\t\t\tlabel: r,\n\t\t\tmodel: t,\n\t\t\tconfiguration: n,\n\t\t\tgroup: e[r],\n\t\t\tonChange: this.change\n\t\t}, r) : null), r] });\n\t}\n};\n//#endregion\nexport { L as Panel, L as default };\n","import { __exportAll as e } from \"../_virtual/_rolldown/runtime.js\";\nimport { Panel as t } from \"./panel.js\";\n//#region src/settings/index.ts\nvar n = /* @__PURE__ */ e({\n\tPanel: () => t,\n\tcheckbox: () => u,\n\tcheckboxes: () => d,\n\tdropdown: () => s,\n\tnumberField: () => c,\n\tnumberFields: () => l,\n\tradio: () => o,\n\ttextField: () => r,\n\ttoggle: () => i\n}), r = (e, t = !0) => ({\n\tlabel: e,\n\ttype: \"textField\",\n\tisConfigProperty: t\n}), i = (e, t = !1, n = !1) => ({\n\ttype: \"toggle\",\n\tlabel: e,\n\tisConfigProperty: t,\n\tdisabled: n\n}), a = (e) => typeof e == \"string\" ? {\n\tlabel: e,\n\tvalue: e\n} : e, o = function() {\n\tlet [e, t, n = !1] = Array.prototype.slice.call(arguments);\n\treturn {\n\t\ttype: \"radio\",\n\t\tlabel: e,\n\t\tchoices: t && t.map((e) => a(e)),\n\t\tisConfigProperty: n\n\t};\n}, s = (e, t, n = !1) => ({\n\ttype: \"dropdown\",\n\tlabel: e,\n\tchoices: t,\n\tisConfigProperty: n\n}), c = (e, t, n = !1) => ({\n\t...t,\n\tlabel: e,\n\ttype: \"numberField\",\n\tisConfigProperty: n\n}), l = (e, t, n = !1) => (Object.keys(t).map((e) => {\n\tt[e] = c(t[e].label, t[e], n);\n}), {\n\ttype: \"numberFields\",\n\tlabel: e,\n\tfields: t\n}), u = (e, t, n = !1) => ({\n\t...t,\n\tlabel: e,\n\ttype: \"checkbox\",\n\tisConfigProperty: n\n}), d = (e, t, n = !1) => (Object.keys(t).map((e) => {\n\tt[e] = u(t[e].label, t[e], n);\n}), {\n\ttype: \"checkboxes\",\n\tlabel: e,\n\tchoices: t\n});\n//#endregion\nexport { t as Panel, u as checkbox, d as checkboxes, s as dropdown, c as numberField, l as numberFields, o as radio, n as settings_exports, r as textField, i as toggle };\n","import e from \"./alert-dialog.js\";\nimport { FeedbackSelector as t } from \"./feedback-config/feedback-selector.js\";\nimport { FeedbackConfig as n, buildDefaults as r } from \"./feedback-config/index.js\";\nimport { InputCheckbox as i, InputRadio as a, InputSwitch as o } from \"./inputs.js\";\nimport { Langs as s, LanguageControls as c } from \"./langs.js\";\nimport { Tabs as l } from \"./tabs/index.js\";\nimport u from \"./checkbox.js\";\nimport d from \"./form-section.js\";\nimport f from \"./help.js\";\nimport p from \"./input.js\";\nimport { NumberTextField as m } from \"./number-text-field.js\";\nimport { NumberTextFieldCustom as h } from \"./number-text-field-custom.js\";\nimport g, { NChoice as _ } from \"./two-choice.js\";\nimport v from \"./mui-box/index.js\";\nimport { TagsInput as y } from \"./tags-input/index.js\";\nimport { ChoiceConfiguration as b } from \"./choice-configuration/index.js\";\nimport { layout_exports as x } from \"./layout/index.js\";\nimport { choice_utils_exports as S } from \"./choice-utils.js\";\nimport C from \"./with-stateful-model.js\";\nimport w from \"./settings/toggle.js\";\nimport T from \"./settings/display-size.js\";\nimport { settings_exports as E } from \"./settings/index.js\";\nimport * as D from \"@pie-lib/render-ui\";\nimport { InputContainer as O } from \"@pie-lib/render-ui\";\n//#region src/index.ts\nfunction k(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction A(e, t) {\n\treturn !e || k(e) ? e : k(e.default) ? e.default : t && k(e[t]) ? e[t] : t && k(e[t]?.default) ? e[t].default : e;\n}\nvar j = A(O, \"InputContainer\") || A(P.InputContainer, \"InputContainer\"), M = D, N = M.default, P = N && typeof N == \"object\" ? N : M;\n//#endregion\nexport { e as AlertDialog, u as Checkbox, b as ChoiceConfiguration, T as DisplaySize, n as FeedbackConfig, t as FeedbackSelector, d as FormSection, f as Help, p as Input, i as InputCheckbox, j as InputContainer, a as InputRadio, o as InputSwitch, s as Langs, c as LanguageControls, v as MuiBox, _ as NChoice, m as NumberTextField, h as NumberTextFieldCustom, l as Tabs, y as TagsInput, w as Toggle, g as TwoChoice, S as choiceUtils, r as feedbackConfigDefaults, x as layout, E as settings, C as withStatefulModel };\n","import \"react\";\nimport e from \"prop-types\";\nimport { Fragment as t, jsx as n, jsxs as r } from \"react/jsx-runtime\";\nimport { styled as i } from \"@mui/material/styles\";\nimport * as a from \"@pie-lib/render-ui\";\nimport { InputContainer as o, color as s } from \"@pie-lib/render-ui\";\nimport c from \"@pie-lib/editable-html-tip-tap\";\nimport { Accordion as l, AccordionDetails as u, AccordionSummary as d, Typography as f } from \"@mui/material\";\nimport p from \"@mui/icons-material/ExpandMore\";\nimport { NumberTextFieldCustom as m, Toggle as h } from \"@pie-lib/config-ui\";\n//#region src/grid-setup.tsx\nfunction g(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction _(e, t) {\n\treturn !e || g(e) ? e : g(e.default) ? e.default : t && g(e[t]) ? e[t] : t && g(e[t]?.default) ? e[t].default : e;\n}\nvar v = _(o, \"InputContainer\") || _(x.InputContainer, \"InputContainer\"), y = a, b = y.default, x = b && typeof b == \"object\" ? b : y, S = i(\"div\")(() => ({ width: \"450px\" })), C = i(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\twidth: \"100%\"\n})), w = i(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"center\"\n})), T = i(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-around\",\n\talignItems: \"center\"\n})), E = i(\"div\")(({ theme: e }) => ({\n\twidth: \"130px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`\n})), D = i(\"div\")(({ theme: e }) => ({\n\twidth: \"160px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`,\n\t\"& .MuiFormControl-root\": { width: \"100%\" }\n})), O = i(\"div\")(({ theme: e }) => ({\n\twidth: \"230px\",\n\tmargin: `${e.spacing(1)} ${e.spacing(.5)}`,\n\t\"& .MuiFormControl-root\": { width: \"100%\" }\n})), k = i(f)(({ theme: e }) => ({\n\tfontStyle: \"italic\",\n\tmargin: `${e.spacing(1)} 0`\n})), A = i(\"div\")(() => ({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\",\n\talignItems: \"center\"\n})), j = i(f)(() => ({ color: s.disabled() })), M = i(\"div\")(({ theme: e }) => ({ paddingTop: e.spacing(2) })), N = (e) => {\n\tlet { disabled: t, displayedFields: i, labelValue: a, labelValues: o, gridValue: s, gridValues: c, onChange: l } = e, { labelStep: u = {}, step: d = {} } = i;\n\treturn /* @__PURE__ */ r(w, { children: [d && d.enabled && /* @__PURE__ */ n(D, { children: /* @__PURE__ */ n(m, {\n\t\tlabel: d.label || \"\",\n\t\tvalue: s,\n\t\tcustomValues: c,\n\t\tvariant: \"outlined\",\n\t\tdisabled: t,\n\t\tonChange: (e, t) => l(\"step\", t)\n\t}) }), u && u.enabled && /* @__PURE__ */ n(D, { children: /* @__PURE__ */ n(m, {\n\t\tlabel: u.label || \"\",\n\t\tvalue: a,\n\t\tcustomValues: o,\n\t\tvariant: \"outlined\",\n\t\tdisabled: t,\n\t\tonChange: (e, t) => l(\"labelStep\", t)\n\t}) })] });\n};\nN.propTypes = {\n\tdisabled: e.bool,\n\tdisplayedFields: e.object,\n\tlabelValue: e.number,\n\tlabelValues: e.array,\n\tgridValue: e.number,\n\tgridValues: e.array,\n\tonChange: e.func\n};\nvar P = (e) => {\n\tlet { disabled: t, displayedFields: i, displayHeader: a, label: o, maxValue: s, minValue: l, onChange: u, type: d } = e, { axisLabel: p = {}, min: h = {}, max: g = {} } = i;\n\treturn /* @__PURE__ */ r(w, { children: [\n\t\ta && /* @__PURE__ */ r(f, {\n\t\t\tvariant: \"subtitle2\",\n\t\t\tchildren: [/* @__PURE__ */ n(\"i\", { children: d === \"domain\" ? \"x\" : \"y\" }), \"-axis\"]\n\t\t}),\n\t\th && h.enabled && /* @__PURE__ */ n(D, { children: /* @__PURE__ */ n(m, {\n\t\t\tlabel: h.label || \"\",\n\t\t\tvalue: l,\n\t\t\tmin: -1e4,\n\t\t\tmax: s - .05,\n\t\t\tvariant: \"outlined\",\n\t\t\tdisabled: t,\n\t\t\tonChange: (e, t) => u(\"min\", t)\n\t\t}) }),\n\t\tg && g.enabled && /* @__PURE__ */ n(D, { children: /* @__PURE__ */ n(m, {\n\t\t\tlabel: g.label || \"\",\n\t\t\tvalue: s,\n\t\t\tmin: l + .05,\n\t\t\tmax: 1e4,\n\t\t\tvariant: \"outlined\",\n\t\t\tdisabled: t,\n\t\t\tonChange: (e, t) => u(\"max\", t)\n\t\t}) }),\n\t\tp && p.enabled && /* @__PURE__ */ n(D, { children: /* @__PURE__ */ n(v, {\n\t\t\tlabel: p.label || \"\",\n\t\t\tchildren: /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n(c, {\n\t\t\t\tonChange: (e) => u(\"axisLabel\", e),\n\t\t\t\tmarkup: o || \"\",\n\t\t\t\tcharactersLimit: 5,\n\t\t\t\tonKeyDown: (e) => e.key === \"Enter\",\n\t\t\t\tactivePlugins: [\n\t\t\t\t\t\"bold\",\n\t\t\t\t\t\"italic\",\n\t\t\t\t\t\"underline\",\n\t\t\t\t\t\"strikethrough\"\n\t\t\t\t]\n\t\t\t}) })\n\t\t}) })\n\t] });\n};\nP.propTypes = {\n\tdisabled: e.bool,\n\tdisplayedFields: e.object,\n\tdisplayHeader: e.bool,\n\tlabel: e.string,\n\tmaxValue: e.number,\n\tminValue: e.number,\n\ttype: e.string,\n\tonChange: e.func\n};\nvar F = (e) => {\n\tlet { domain: i, displayedFields: a = {}, gridValues: o = {}, includeAxes: s, labelValues: c = {}, onChange: g, onChangeView: _, range: v, size: y, sizeConstraints: b, standardGrid: x } = e, D = {\n\t\tmin: 2,\n\t\tmax: 41\n\t}, { axisLabel: M = {}, dimensionsEnabled: F, includeAxesEnabled: I, labelStep: L = {}, min: R = {}, max: z = {}, standardGridEnabled: B, step: V = {} } = a || {}, H = R.enabled || z.enabled || M.enabled || V.enabled || L.enabled, U = {\n\t\tstep: V,\n\t\tlabelStep: L\n\t}, W = {\n\t\tmin: R,\n\t\tmax: z,\n\t\taxisLabel: M\n\t}, G = (e) => {\n\t\tlet t = (e) => {\n\t\t\tlet t = e === \"domain\" ? i : v;\n\t\t\treturn {\n\t\t\t\tmin: 1,\n\t\t\t\tmax: t.max < D.min || t.max > D.max ? 16 : t.max,\n\t\t\t\tstep: 1,\n\t\t\t\tlabelStep: 0\n\t\t\t};\n\t\t}, n = {\n\t\t\t...v,\n\t\t\t...e ? { labelStep: 1 } : t(\"range\")\n\t\t}, r = {\n\t\t\t...i,\n\t\t\t...e ? { labelStep: 1 } : t(\"domain\")\n\t\t};\n\t\tg({\n\t\t\tincludeAxes: e,\n\t\t\trange: n,\n\t\t\tdomain: r\n\t\t});\n\t}, K = (e) => {\n\t\tg({\n\t\t\tstandardGrid: e,\n\t\t\trange: {\n\t\t\t\t...i,\n\t\t\t\taxisLabel: v.axisLabel\n\t\t\t},\n\t\t\tgraph: {\n\t\t\t\t...y,\n\t\t\t\theight: y.width\n\t\t\t}\n\t\t});\n\t}, q = (e, t) => {\n\t\tlet n = {\n\t\t\t...y,\n\t\t\t[e]: t\n\t\t};\n\t\tx && (n.height = t), g({ graph: n });\n\t}, J = (e, t) => {\n\t\ti[e] = t, x && e !== \"axisLabel\" && (v[e] = t), g({\n\t\t\tdomain: i,\n\t\t\trange: v\n\t\t});\n\t}, Y = (e, t) => {\n\t\tv[e] = t, g({ range: v });\n\t}, X = /* @__PURE__ */ r(t, { children: [\n\t\t/* @__PURE__ */ r(T, { children: [/* @__PURE__ */ n(P, {\n\t\t\tdisplayedFields: W,\n\t\t\tdisplayHeader: H,\n\t\t\ttype: \"domain\",\n\t\t\tminValue: i.min,\n\t\t\tmaxValue: i.max,\n\t\t\tlabel: i.axisLabel,\n\t\t\tincludeAxes: s,\n\t\t\tonChange: J\n\t\t}), /* @__PURE__ */ n(P, {\n\t\t\tdisplayedFields: W,\n\t\t\tdisplayHeader: H,\n\t\t\ttype: \"range\",\n\t\t\tminValue: v.min,\n\t\t\tmaxValue: v.max,\n\t\t\tlabel: v.axisLabel,\n\t\t\tdisabled: x,\n\t\t\tincludeAxes: s,\n\t\t\tonChange: Y\n\t\t})] }),\n\t\t(R.enabled || z.enabled) && /* @__PURE__ */ n(k, { children: \"If you want the axis to be visible, use a zero or negative Min Value, and a positive Max Value\" }),\n\t\t(V.enabled || L.enabled) && /* @__PURE__ */ r(T, { children: [/* @__PURE__ */ n(N, {\n\t\t\tdisplayedFields: U,\n\t\t\tgridValue: i.step,\n\t\t\tlabelValue: i.labelStep,\n\t\t\tgridValues: o.domain || [],\n\t\t\tlabelValues: c.domain || [],\n\t\t\tonChange: J\n\t\t}), /* @__PURE__ */ n(N, {\n\t\t\tdisabled: x,\n\t\t\tdisplayedFields: U,\n\t\t\tgridValue: v.step,\n\t\t\tlabelValue: v.labelStep,\n\t\t\tgridValues: o.range || [],\n\t\t\tlabelValues: c.range || [],\n\t\t\tonChange: Y\n\t\t})] }),\n\t\tL.enabled && /* @__PURE__ */ n(k, { children: \"For unnumbered gridlines, enter a label interval of 0\" })\n\t] }), Z = z.enabled ? /* @__PURE__ */ r(w, { children: [/* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(m, {\n\t\tlabel: \"Number of Vertical Gridlines\",\n\t\tvalue: i.max,\n\t\tmin: !s && D.min,\n\t\tmax: !s && D.max,\n\t\tvariant: \"outlined\",\n\t\tonChange: (e, t) => J(\"max\", t)\n\t}) }), /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(m, {\n\t\tlabel: \"Number of Horizontal Gridlines\",\n\t\tvalue: v.max,\n\t\tmin: !s && D.min,\n\t\tmax: !s && D.max,\n\t\tvariant: \"outlined\",\n\t\tdisabled: x,\n\t\tonChange: (e, t) => Y(\"max\", t)\n\t}) })] }) : null;\n\treturn /* @__PURE__ */ n(S, { children: /* @__PURE__ */ r(l, {\n\t\tonChange: _,\n\t\tTransitionProps: { timeout: {\n\t\t\tenter: 225,\n\t\t\texit: 195\n\t\t} },\n\t\tchildren: [/* @__PURE__ */ n(d, {\n\t\t\texpandIcon: /* @__PURE__ */ n(p, {}),\n\t\t\tchildren: /* @__PURE__ */ n(f, {\n\t\t\t\tvariant: \"subtitle1\",\n\t\t\t\tchildren: \"Customize Grid Setup\"\n\t\t\t})\n\t\t}), /* @__PURE__ */ n(u, { children: /* @__PURE__ */ r(C, { children: [\n\t\t\tI && /* @__PURE__ */ n(h, {\n\t\t\t\tlabel: \"Include axes and labels?\",\n\t\t\t\ttoggle: G,\n\t\t\t\tchecked: s\n\t\t\t}),\n\t\t\tB && /* @__PURE__ */ n(h, {\n\t\t\t\tlabel: \"Constrain to standard coordinate grid?\",\n\t\t\t\ttoggle: K,\n\t\t\t\tchecked: x\n\t\t\t}),\n\t\t\ts ? X : Z,\n\t\t\tF && /* @__PURE__ */ r(A, { children: [\n\t\t\t\t/* @__PURE__ */ r(\"div\", { children: [/* @__PURE__ */ n(f, { children: \"Dimensions(px)\" }), /* @__PURE__ */ r(j, { children: [\n\t\t\t\t\t\"Min \",\n\t\t\t\t\tb.min,\n\t\t\t\t\t\", Max \",\n\t\t\t\t\tb.max\n\t\t\t\t] })] }),\n\t\t\t\t/* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(m, {\n\t\t\t\t\tlabel: \"Width\",\n\t\t\t\t\tvalue: y.width,\n\t\t\t\t\tmin: b.min,\n\t\t\t\t\tmax: b.max,\n\t\t\t\t\tstep: b.step,\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tonChange: (e, t) => q(\"width\", t)\n\t\t\t\t}) }),\n\t\t\t\t/* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(m, {\n\t\t\t\t\tlabel: \"Height\",\n\t\t\t\t\tvalue: y.height,\n\t\t\t\t\tmin: b.min,\n\t\t\t\t\tmax: b.max,\n\t\t\t\t\tstep: b.step,\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tdisabled: x,\n\t\t\t\t\tonChange: (e, t) => q(\"height\", t)\n\t\t\t\t}) })\n\t\t\t] })\n\t\t] }) })]\n\t}) });\n};\nF.propTypes = {\n\tdomain: e.object,\n\tdisplayedFields: e.object,\n\tgridValues: e.object,\n\tincludeAxes: e.bool,\n\tlabelValues: e.object,\n\tonChange: e.func,\n\tonChangeView: e.func,\n\trange: e.object,\n\tsize: e.object,\n\tsizeConstraints: e.object,\n\tstandardGrid: e.bool\n};\n//#endregion\nexport { F as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/utils.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport { isEqual } from '@pie-element/shared-lodash';\n\n/*Valid grid values*/\nconst VALID_GRID_VALUES = [\n 0.01, 0.02, 0.04, 0.05, 0.0625, 0.1, 0.125, 0.2, 0.25, 0.5, 1, 2, 3, 4, 5, 8, 10, 12, 15, 20, 40, 50, 64, 100, 500,\n 1000,\n];\n\n// same as VALID_GRID_VALUES but next values are excluded: 0.04, 0.0625, 0.125, 3, 4, 8, 12, 15, 40, 64\nconst PREFERRED_VALID_GRID_VALUES = [0.01, 0.02, 0.05, 0.1, 0.2, 0.25, 0.5, 1, 2, 5, 10, 20, 50, 100, 500, 1000];\n\n/*Valid label values*/\nexport const VALID_LABEL_VALUES = {\n 0.01: [0, 0.01, 0.02, 0.04, 0.05, 0.1],\n 0.02: [0, 0.02, 0.04, 0.1],\n 0.04: [0, 0.04, 0.08, 0.16, 0.2],\n 0.05: [0, 0.05, 0.1, 0.2, 0.25],\n 0.0625: [0, 0.0625, 0.125, 0.25, 0.5],\n 0.1: [0, 0.1, 0.2, 0.4, 0.5, 1],\n 0.125: [0, 0.125, 0.25, 0.5, 1],\n 0.2: [0, 0.2, 0.5, 0.1],\n 0.25: [0, 0.25, 0.5, 1, 2],\n 0.5: [0, 0.5, 1, 2],\n 1: [0, 1, 2, 4, 5, 10],\n 2: [0, 2, 4, 8, 10],\n 3: [0, 3, 6, 12, 15],\n 4: [0, 4, 8, 16, 20],\n 5: [0, 5, 10, 20, 25],\n 8: [0, 8, 16, 32, 40, 64],\n 10: [0, 10, 20, 40, 50, 100],\n 12: [0, 12, 24],\n 15: [0, 15, 30, 60],\n 20: [0, 20, 40, 80, 100],\n 40: [0, 40, 80, 160, 200],\n 50: [0, 50, 100, 200, 250],\n 64: [0, 64, 128],\n 100: [0, 100, 200, 400, 500],\n 500: [0, 500, 1000, 2500],\n 1000: [0, 1000, 2000, 4000, 5000],\n};\n\n/*\n * Function to get grid values\n * @param {Object} axis - axis object\n * @param {Number} size - size of the axis\n * @param {Boolean} prefferedValues - flag to get preffered values\n * */\nexport const getGridValues = (axis, size, prefferedValues = false) => {\n const minValue = (10 * (axis.max - axis.min)) / size;\n const maxValue = minValue * 10;\n const values = prefferedValues ? PREFERRED_VALID_GRID_VALUES : VALID_GRID_VALUES;\n return values.filter((value) => value >= minValue && value <= maxValue);\n};\n\n/*\n * Function to get label values\n * @param {Number} value - value of the axis step\n * */\nexport const getLabelValues = (value) => VALID_LABEL_VALUES[value] || [];\n\n/*\n * Function to apply constraints\n * @param {Object} axis - axis object\n * @param {Number} size - size of the axis\n * @param {Array} oldGridValues - old grid values\n * @param {Array} oldLabelValues - old label values\n * */\nexport const applyConstraints = (axis, size, oldGridValues, oldLabelValues) => {\n const gridValues = getGridValues(axis, size);\n let labelValues = getLabelValues(axis.step);\n if (!isEqual(oldGridValues, gridValues) && !gridValues.includes(axis.step)) {\n const preferredValues = getGridValues(axis, size, true);\n const lowestValue = preferredValues[0] || 1;\n axis.step = lowestValue;\n labelValues = getLabelValues(lowestValue);\n if (!labelValues.includes(axis.labelStep)) {\n axis.labelStep = lowestValue;\n }\n return { gridValues, labelValues };\n }\n if (!isEqual(oldLabelValues, labelValues) && !labelValues.includes(axis.labelStep)) {\n axis.labelStep = axis.step;\n }\n return { gridValues, labelValues };\n};\n\n// also used in pie-lib/graphing/utils as 'getTickValues'\n/*\n * Function to get plotable points\n * @param {Object} prop - axis object\n * */\nconst getPlotablePoints = (prop) => {\n const tickValues = [];\n let tickVal = 0;\n while (tickVal >= prop.min && tickValues.indexOf(tickVal) < 0) {\n tickValues.push(tickVal);\n tickVal = Math.round((tickVal - prop.step) * 10000) / 10000;\n }\n tickVal = Math.round(prop.step * 10000) / 10000;\n while (tickVal <= prop.max && tickValues.indexOf(tickVal) < 0) {\n tickValues.push(tickVal);\n tickVal = Math.round((tickVal + prop.step) * 10000) / 10000;\n }\n // return only ticks that are inside the min-max interval\n if (tickValues) {\n return tickValues.filter((tV) => tV >= prop.min && tV <= prop.max);\n }\n return [];\n};\n\n/*\n * Function to get plotable marks\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * @param {Object} answers - answers object\n * */\nexport const filterPlotableMarks = (domain, range, answers) => {\n const domainValues = getPlotablePoints(domain);\n const rangeValues = getPlotablePoints(range);\n const isPointPlotable = (x, y) => domainValues.includes(x) && rangeValues.includes(y);\n return Object.entries(answers || {}).reduce((newAnswers, [key, answer]) => {\n newAnswers[key] = {\n ...answer,\n marks: (answer.marks || []).filter((mark) => {\n if (mark.type === 'point') {\n return isPointPlotable(mark.x, mark.y);\n }\n if (mark.type === 'polygon') {\n return !mark.points.find((point) => !isPointPlotable(point.x, point.y));\n }\n const from = mark.from || mark.root;\n const to = mark.to || mark.edge;\n return mark.building\n ? isPointPlotable(from.x, from.y)\n : isPointPlotable(from.x, from.y) && isPointPlotable(to.x, to.y);\n }),\n };\n return newAnswers;\n }, {});\n};\n\n//////////////////////////////////////////////////////////////////////////////////\n// BELOW FUNCTIONS ARE USED IN src/utils as well\n//////////////////////////////////////////////////////////////////////////////////\n\n/*\n * Function to calculate the distance between two points\n * @param {Object} a - point a\n * @param {Object} b - point b\n * */\nconst distance = (a, b) => {\n return Number(Math.sqrt((a.x - b.x) ** 2 + (a.y - b.y) ** 2).toFixed(3));\n};\n\n/*\n * Function to check if a point lies on edges of a polygon\n * @param {Object} point - point object\n * @param {Array} polygon - polygon points array\n * */\nconst pointInPolygon = (point, polygon) => {\n let c = point;\n let inside = false;\n let clonePolygon = [...polygon];\n clonePolygon.push(polygon[0]);\n for (let i = 0; i < clonePolygon.length - 1; i++) {\n let a = clonePolygon[i];\n let b = clonePolygon[i + 1];\n // check if point is on the edge\n if (distance(a, c) + distance(c, b) === distance(a, b)) {\n inside = true;\n break;\n }\n }\n return inside;\n};\n\n/*\n * Function to get the intersection point of two lines\n * @param {Number} x1 - x coordinate of point 1 of line 1\n * @param {Number} y1 - y coordinate of point 1 of line 1\n * @param {Number} x2 - x coordinate of point 2 of line 1\n * @param {Number} y2 - y coordinate of point 2 of line 1\n * @param {Number} x3 - x coordinate of point 1 of line 2\n * @param {Number} y3 - y coordinate of point 1 of line 2\n * @param {Number} x4 - x coordinate of point 2 of line 2\n * @param {Number} y4 - y coordinate of point 2 of line 2\n * */\nconst lineIntersect = (x1, y1, x2, y2, x3, y3, x4, y4) => {\n let ua,\n denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);\n if (denominator === 0) {\n return null;\n }\n ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denominator;\n return {\n x: Number((x1 + ua * (x2 - x1)).toFixed(3)),\n y: Number((y1 + ua * (y2 - y1)).toFixed(3)),\n };\n};\n\n/*\n * Check if a point is inside the graph\n * @param {Object} point - point object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst isPointInsideGraph = (point, domain, range) => {\n return point.x > domain.min && point.x < domain.max && point.y > range.min && point.y < range.max;\n};\n\n/*\n * Check if a point is on or inside the graph\n * @param {Object} point - point object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst isPointOnOrInsideGraph = (point, domain, range) => {\n return point.x >= domain.min && point.x <= domain.max && point.y >= range.min && point.y <= range.max;\n};\n\n/*\n * Find the intersection point of a mark with the graph\n * @param {Object} mark - mark object\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findIntersectionPointForMark = (mark, domain, range) => {\n let intersectionPoint = [];\n let tempData = [\n [domain.max, range.max, domain.max, range.min],\n [domain.min, range.max, domain.min, range.min],\n [domain.min, range.max, domain.max, range.max],\n [domain.min, range.min, domain.max, range.min],\n ];\n for (let i = 0; i < tempData.length; i++) {\n let intersection = lineIntersect(\n mark.from.x,\n mark.from.y,\n mark.to.x,\n mark.to.y,\n tempData[i][0],\n tempData[i][1],\n tempData[i][2],\n tempData[i][3],\n );\n if (intersection && isPointOnOrInsideGraph(intersection, domain, range)) {\n intersectionPoint.push(intersection);\n }\n }\n return intersectionPoint;\n};\n\n/*\n * Sort points in clockwise direction for a polygon\n * @param {Array} points - points array\n * */\nconst sortPointsClockWise = (points) => {\n // Find min max to get center and Sort from top to bottom\n points.sort((a, b) => a.y - b.y);\n // Get center y\n const cy = (points[0].y + points[points.length - 1].y) / 2;\n // Sort from right to left\n points.sort((a, b) => b.x - a.x);\n // Get center x\n const cx = (points[0].x + points[points.length - 1].x) / 2;\n // Center point\n const center = { x: cx, y: cy };\n // As the points are sorted from right to left the first point is the rightmost Starting angle used to reference other angles\n let startAng;\n points.forEach((point) => {\n let ang = Math.atan2(point.y - center.y, point.x - center.x);\n if (!startAng) {\n startAng = ang;\n } else {\n if (ang < startAng) {\n // ensure that all points are clockwise of the start point\n ang += Math.PI * 2;\n }\n }\n point.angle = ang; // add the angle to the point\n });\n // first sort clockwise\n points.sort((a, b) => a.angle - b.angle);\n // then reverse the order\n const ccwPoints = points.reverse();\n // move the last point back to the start\n ccwPoints.unshift(ccwPoints.pop());\n return ccwPoints.map(({ angle, ...attr }) => attr);\n};\n\n/*\n * Function to calculate the dot product of two vectors\n * @param {Object} v1 - point 1\n * @param {Object} v2 - point 2\n * */\nconst dotProduct = (v1, v2) => {\n return v1.x * v2.x + v1.y * v2.y;\n};\n\n/*\n * Function to calculate the magnitude of a vector\n * @param {Object} v - point object\n * */\nconst magnitude = (v) => {\n return Math.sqrt(v.x * v.x + v.y * v.y);\n};\n\n/*\n * Function to calculate the angle between two vectors in radians\n * @param {Object} v1 - point 1\n * @param {Object} v2 - point 2\n * */\nconst angleBetweenVectors = (v1, v2) => {\n const dot = dotProduct(v1, v2);\n const magV1 = magnitude(v1);\n const magV2 = magnitude(v2);\n // Ensure the dot product is within the domain of the acos function\n return Math.acos(dot / (magV1 * magV2));\n};\n\n/*\n * Function to check if a point lies between the angle formed by two lines\n * @param {Object} commonPoint - common point of the two lines\n * @param {Object} point1 - point 1 of cone\n * @param {Object} point2 - point 2 of cone\n * @param {Object} testPoint - point to be tested\n * */\nconst pointInAngle = (commonPoint, point1, point2, testPoint) => {\n const vector1 = { x: point1.x - commonPoint.x, y: point1.y - commonPoint.y };\n const vector2 = { x: point2.x - commonPoint.x, y: point2.y - commonPoint.y };\n const testVector = { x: testPoint.x - commonPoint.x, y: testPoint.y - commonPoint.y };\n const angle1 = angleBetweenVectors(vector1, testVector);\n const angle2 = angleBetweenVectors(vector2, testVector);\n const angleSum = angle1 + angle2;\n // Check if the sum of angles is approximately equal to the angle between the two lines\n // You may need to adjust the tolerance (e.g., 0.0001) based on your specific requirements\n const tolerance = 0.0001;\n return Math.abs(angleSum - angleBetweenVectors(vector1, vector2)) < tolerance;\n};\n\n/*\n * Function to remove duplicate points from an array\n * @param {Array} array - array of points\n * */\nconst removeDuplicatesFromArray = (array) => {\n return array.filter((obj, index) => {\n return index === array.findIndex((o) => obj.x === o.x && obj.y === o.y);\n });\n};\n\n/*\n * Function to remove duplicate points and filter sections\n * @param {Array} sections - array of sections\n * */\nconst removeDuplicateAndFilterSections = (sections) => {\n //removing duplicate points.\n for (let i = 0; i < sections.length; i++) {\n sections[i] = sections[i].filter((obj, index) => {\n return index === sections[i].findIndex((o) => obj.x === o.x && obj.y === o.y);\n });\n }\n //removing arrays with two points\n sections = sections.filter((section) => section.length > 2);\n //sorting the points in clockwise direction\n for (let i = 0; i < sections.length; i++) {\n sections[i] = sortPointsClockWise(sections[i]);\n }\n return sections;\n};\n\n/*\n * Function to find sections in solution set for one line\n * @param {Array} intersectionPoint - intersection point\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findSectionsInSolutionSetForOneLine = (intersectionPoint, domain, range) => {\n let sections = [];\n sections.push([].concat(intersectionPoint));\n sections.push([].concat(intersectionPoint));\n if (\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[1].x === domain.max && intersectionPoint[0].y === range.max)\n ) {\n sections[0].push({ x: domain.max, y: range.max });\n sections[1].push({ x: domain.min, y: range.max }, { x: domain.min, y: range.min }, { x: domain.max, y: range.min });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[1].x === domain.min && intersectionPoint[0].y === range.max)\n ) {\n sections[0].push({ x: domain.min, y: range.max });\n sections[1].push({ x: domain.max, y: range.max }, { x: domain.max, y: range.min }, { x: domain.min, y: range.min });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].y === range.min) ||\n (intersectionPoint[1].x === domain.min && intersectionPoint[0].y === range.min)\n ) {\n sections[0].push({ x: domain.min, y: range.min });\n sections[1].push({ x: domain.max, y: range.min }, { x: domain.max, y: range.max }, { x: domain.min, y: range.max });\n } else if (\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].y === range.min) ||\n (intersectionPoint[1].x === domain.max && intersectionPoint[0].y === range.min)\n ) {\n sections[0].push({ x: domain.max, y: range.min });\n sections[1].push({ x: domain.min, y: range.min }, { x: domain.min, y: range.max }, { x: domain.max, y: range.max });\n } else if (\n (intersectionPoint[0].x === domain.min && intersectionPoint[1].x === domain.max) ||\n (intersectionPoint[0].x === domain.max && intersectionPoint[1].x === domain.min)\n ) {\n sections[0].push({ x: domain.min, y: range.max }, { x: domain.max, y: range.max });\n sections[1].push({ x: domain.min, y: range.min }, { x: domain.max, y: range.min });\n } else if (\n (intersectionPoint[0].y === range.min && intersectionPoint[1].y === range.max) ||\n (intersectionPoint[0].y === range.max && intersectionPoint[1].y === range.min)\n ) {\n sections[0].push({ x: domain.min, y: range.min }, { x: domain.min, y: range.max });\n sections[1].push({ x: domain.max, y: range.min }, { x: domain.max, y: range.max });\n }\n return removeDuplicateAndFilterSections(sections);\n};\n\n/*\n * Function to find sections in solution set for two lines\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answers - answers array\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nconst findSectionsInSolutionSetForTwoLines = (gssLineData, answers, domain, range) => {\n let mark1 = answers[0];\n let mark2 = answers[1];\n let cornerPoints = [\n { x: domain.min, y: range.min },\n { x: domain.min, y: range.max },\n { x: domain.max, y: range.min },\n { x: domain.max, y: range.max },\n ];\n let intersectPoint = lineIntersect(\n mark1.from.x,\n mark1.from.y,\n mark1.to.x,\n mark1.to.y,\n mark2.from.x,\n mark2.from.y,\n mark2.to.x,\n mark2.to.y,\n );\n let sections = [];\n let intersectionPoint1 = findIntersectionPointForMark(mark1, domain, range);\n intersectionPoint1 = removeDuplicatesFromArray(intersectionPoint1);\n let intersectionPoint2 = findIntersectionPointForMark(mark2, domain, range);\n intersectionPoint2 = removeDuplicatesFromArray(intersectionPoint2);\n if (intersectPoint && isPointInsideGraph(intersectPoint, domain, range)) {\n for (let i = 0; i < intersectionPoint1.length; i++) {\n for (let j = 0; j < intersectionPoint2.length; j++) {\n let bucket = [];\n let newCornerPoints = [];\n bucket.push(intersectPoint);\n bucket.push(intersectionPoint1[i]);\n bucket.push(intersectionPoint2[j]);\n for (let k = 0; k < cornerPoints.length; k++) {\n if (pointInAngle(intersectPoint, intersectionPoint1[i], intersectionPoint2[j], cornerPoints[k])) {\n bucket.push(cornerPoints[k]);\n } else {\n newCornerPoints.push(cornerPoints[k]);\n }\n }\n cornerPoints = newCornerPoints;\n sections.push(bucket);\n }\n }\n } else {\n let sections1 = findSectionsInSolutionSetForOneLine(intersectionPoint1, domain, range);\n let sections2 = findSectionsInSolutionSetForOneLine(intersectionPoint2, domain, range);\n for (let i = 0; i < sections1.length; i++) {\n if (\n !(pointInPolygon(intersectionPoint2[0], sections1[i]) && pointInPolygon(intersectionPoint2[1], sections1[i]))\n ) {\n sections.push(sections1[i]);\n }\n }\n for (let i = 0; i < sections2.length; i++) {\n if (\n !(pointInPolygon(intersectionPoint1[0], sections2[i]) && pointInPolygon(intersectionPoint1[1], sections2[i]))\n ) {\n sections.push(sections2[i]);\n }\n }\n for (let i = 0; i < sections.length; i++) {\n cornerPoints = cornerPoints.filter(function (o1) {\n return !sections[i].some(function (o2) {\n return o1.x === o2.x && o1.y === o2.y;\n });\n });\n }\n let sections3 = cornerPoints.concat(intersectionPoint1, intersectionPoint2);\n sections.push(sections3);\n }\n return removeDuplicateAndFilterSections(sections);\n};\n\n/*\n * Function to find sections in solution set\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answers - answers array\n * @param {Object} domain - domain object\n * @param {Object} range - range object\n * */\nexport const findSectionsInSolutionSet = (gssLineData, answers, domain, range) => {\n if (gssLineData.numberOfLines === 1) {\n const intersectionPoint = findIntersectionPointForMark(answers[0], domain, range);\n gssLineData.sections = findSectionsInSolutionSetForOneLine(intersectionPoint, domain, range);\n } else {\n gssLineData.sections = findSectionsInSolutionSetForTwoLines(gssLineData, answers, domain, range);\n }\n return gssLineData;\n};\n\n/*\n * Function to check if a point is inside a polygon\n * @param {Object} point - point to be checked\n * @param {Array} polygon - polygon points array\n * */\nexport const pointInsidePolygon = (point, polygon) => {\n const num_vertices = polygon.length;\n const x = point.x;\n const y = point.y;\n let inside = false;\n let p1 = polygon[0];\n let p2;\n for (let i = 1; i <= num_vertices; i++) {\n p2 = polygon[i % num_vertices];\n if (y > Math.min(p1.y, p2.y)) {\n if (y <= Math.max(p1.y, p2.y)) {\n if (x <= Math.max(p1.x, p2.x)) {\n const x_intersection = ((y - p1.y) * (p2.x - p1.x)) / (p2.y - p1.y) + p1.x;\n if (p1.x === p2.x || x <= x_intersection) {\n inside = !inside;\n }\n }\n }\n }\n p1 = p2;\n }\n return inside;\n};\n\n/*\n * Function to check if lines are added in the graph\n * @param {Object} gssLineData - graphing solution set line data\n * @param {Array} answer - answer array\n * */\nexport const checkIfLinesAreAdded = (gssLineData, answer) => {\n if (answer.length === 0) {\n return false;\n }\n if (gssLineData.numberOfLines === 1) {\n if (answer.length === 1) {\n return !answer[0].building;\n }\n } else {\n if (answer.length !== 2) {\n return false;\n } else {\n return !answer[1].building;\n }\n }\n};\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/graphing-config.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GraphContainer, GridSetup } from '@pie-lib/graphing-solution-set';\nimport { AlertDialog } from '@pie-lib/config-ui';\nimport { MenuItem, Select, Typography, OutlinedInput } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { applyConstraints, filterPlotableMarks, getGridValues, getLabelValues } from './utils.js';\nimport { isEqual, cloneDeep } from '@pie-element/shared-lodash';\n\nconst Container: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexWrap: 'wrap',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GridConfigWrapper: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing(3),\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GraphConfig: any = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst SubtitleText: any = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1.5),\n marginBottom: theme.spacing(1),\n}));\n\nconst GridConfig: any = styled('div')(({ theme }) => ({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n width: '100%',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst GridConfigLabel: any = styled(Typography)(({ theme }) => ({\n padding: `0 ${theme.spacing(1)}`,\n}));\n\nconst GridConfigSelect: any = styled(Select)({\n flex: '1',\n});\n\nexport class GraphingConfig extends React.Component {\n static propTypes = {\n availableTools: PropTypes.array,\n authoring: PropTypes.object,\n dimensionsEnabled: PropTypes.bool,\n graphDimensions: PropTypes.object,\n gridConfigurations: PropTypes.array,\n labelsPlaceholders: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n showLabels: PropTypes.bool,\n showTitle: PropTypes.bool,\n titlePlaceholder: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n const { domain, range, graph } = props.model || {};\n const gridValues = {\n domain: getGridValues(domain, graph.width, true),\n range: getGridValues(range, graph.height, true),\n };\n const labelValues = {\n domain: getLabelValues(domain.step),\n range: getLabelValues(range.step),\n };\n this.state = {\n gridValues,\n labelValues,\n showPixelGuides: false,\n dialog: { isOpened: false },\n domain: { ...domain },\n range: { ...range },\n };\n }\n\n /*\n * Function to change labels\n * @param {object} labels - labels object\n * */\n changeLabels: any = (labels) => {\n const { model, onChange } = this.props;\n onChange({ ...model, labels });\n };\n\n /*\n * Function to change title\n * @param {string} title - title string\n * */\n changeTitle: any = (title) => {\n const { model, onChange } = this.props;\n onChange({ ...model, title });\n };\n\n /*\n * Function to change grid configuration\n * @param {object} config - grid configuration object\n * @param {number} newSelectedGrid - new selected grid\n * */\n onConfigChange: any = (config, newSelectedGrid) => {\n const { model, onChange } = this.props;\n const { defaultGridConfiguration: oldSelectedGrid = 0 } = model;\n const { gridValues: oldGridValues, labelValues: oldLabelValues, domain: oldDomain, range: oldRange } = this.state;\n const updatedModel = { ...model, ...config };\n const { answers, domain, includeAxes = true, graph, range, standardGrid } = updatedModel;\n const gridValues = { domain: [], range: [] };\n const labelValues = { domain: [], range: [] };\n const selectedGrid = newSelectedGrid >= 0 ? newSelectedGrid : oldSelectedGrid;\n if (includeAxes) {\n const domainConstraints = applyConstraints(domain, graph.width, oldGridValues.domain, oldLabelValues.domain);\n gridValues.domain = domainConstraints.gridValues || [];\n labelValues.domain = domainConstraints.labelValues || [];\n }\n if (standardGrid) {\n gridValues.range = gridValues.domain;\n labelValues.range = labelValues.domain;\n range.step = domain.step;\n range.labelStep = domain.labelStep;\n } else {\n if (includeAxes) {\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n gridValues.range = rangeConstraints.gridValues || [];\n labelValues.range = rangeConstraints.labelValues || [];\n }\n }\n const filteredAnswers = cloneDeep(answers);\n filteredAnswers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n const plotableAnswers = filterPlotableMarks(domain, range, filteredAnswers);\n if (!isEqual(filteredAnswers, plotableAnswers)) {\n this.setState({\n dialog: {\n isOpened: true,\n onClose: () =>\n this.setState({ dialog: { isOpened: false } }, onChange({ ...model, domain: oldDomain, range: oldRange })),\n onConfirm: () => {\n updatedModel.gssLineData.sections = [];\n updatedModel.gssLineData.selectedTool = 'lineA';\n this.setState(\n {\n gridValues,\n labelValues,\n dialog: { isOpened: false },\n domain: { ...domain },\n range: { ...range },\n },\n onChange({ ...updatedModel, answers: plotableAnswers, defaultGridConfiguration: selectedGrid }),\n );\n },\n },\n });\n return;\n }\n this.setState({ gridValues, labelValues, domain: { ...domain }, range: { ...range } });\n onChange({ ...updatedModel, defaultGridConfiguration: selectedGrid });\n };\n\n /*\n * Function to change view\n * @param {object} event - event object\n * @param {boolean} expanded - expanded boolean\n * */\n onChangeView: any = (event, expanded) => {\n const { graphDimensions: { enabled } = {} } = this.props;\n if (enabled) {\n this.setState({ showPixelGuides: expanded });\n }\n };\n\n /*\n * Function to change grid configuration\n * @param {object} event - event object\n * */\n changeGridConfiguration: any = (event) => {\n const { gridConfigurations } = this.props;\n const { value } = event.target;\n this.onConfigChange(gridConfigurations?.[value] || {}, value);\n };\n\n /*\n * Render the component\n * */\n render() {\n const {\n authoring = {},\n gridConfigurations = [],\n graphDimensions = {},\n labelsPlaceholders,\n model,\n showLabels,\n dimensionsEnabled,\n showTitle,\n titlePlaceholder,\n mathMlOptions = {},\n } = this.props;\n const { arrows, coordinatesOnHover, defaultGridConfiguration, domain, labels, range, standardGrid, title } =\n model || {};\n const graph = (model || {}).graph || {};\n const { min, max, step } = graphDimensions || {};\n const { dialog = {}, gridValues, labelValues, showPixelGuides } = this.state;\n const sizeConstraints = {\n min: Math.max(150, min),\n max: Math.min(800, max),\n step: step >= 1 ? Math.min(200, step) : 20,\n };\n const displayedFields = {\n axisLabel: authoring.axisLabel,\n dimensionsEnabled,\n includeAxesEnabled: false, //Setting false by default as per requirement\n labelStep: authoring.labelStep,\n min: authoring.min,\n max: authoring.max,\n standardGridEnabled: authoring.standardGridEnabled,\n step: authoring.step,\n };\n const displayGridSetup =\n authoring.enabled &&\n Object.values(displayedFields).some((field) => (typeof field === 'object' ? field.enabled : field));\n return (\n <Container>\n <GridConfigWrapper>\n {gridConfigurations && gridConfigurations.length ? (\n <GridConfig>\n <GridConfigLabel component=\"div\" variant=\"h6\">\n Grid Configuration\n </GridConfigLabel>\n <GridConfigSelect\n input={<OutlinedInput labelWidth={10} />}\n displayEmpty\n onChange={this.changeGridConfiguration}\n value={defaultGridConfiguration}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n {(gridConfigurations || []).map((config, index) => (\n <MenuItem key={index} value={index}>\n {config.label}\n </MenuItem>\n ))}\n </GridConfigSelect>\n </GridConfig>\n ) : null}\n {displayGridSetup && (\n <GridSetup\n displayedFields={displayedFields}\n domain={domain}\n gridValues={gridValues}\n includeAxes={true} //Setting true by default as per requirement\n labelValues={labelValues}\n range={range}\n size={graph}\n sizeConstraints={sizeConstraints}\n standardGrid={standardGrid}\n onChange={this.onConfigChange}\n onChangeView={this.onChangeView}\n />\n )}\n </GridConfigWrapper>\n <GraphConfig key=\"graph\">\n <Typography component=\"div\" variant=\"h6\">\n Define Graph Attributes\n </Typography>\n <SubtitleText component=\"div\" variant=\"body1\">\n Use this interface to add/edit a title and/or labels\n </SubtitleText>\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n collapsibleToolbar={true}\n collapsibleToolbarTitle={'Add Background Shapes to Graph'}\n domain={domain}\n key=\"graphing-config\"\n labels={labels}\n labelsPlaceholders={labelsPlaceholders}\n marks={[]}\n onChangeLabels={this.changeLabels}\n onChangeTitle={this.changeTitle}\n range={range}\n showLabels={showLabels}\n showPixelGuides={showPixelGuides}\n showTitle={showTitle}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n titlePlaceholder={titlePlaceholder}\n disableToolbar={true}\n mathMlOptions={mathMlOptions}\n />\n </GraphConfig>\n <AlertDialog\n open={dialog.isOpened}\n title=\"Warning\"\n text=\"This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.\"\n onClose={dialog.onClose}\n onConfirm={dialog.onConfirm}\n />\n </Container>\n );\n }\n}\n\nexport default GraphingConfig;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/correct-response.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { GraphContainer as Graph } from '@pie-lib/graphing-solution-set';\nimport { AlertDialog } from '@pie-lib/config-ui';\nimport { set } from '@pie-element/shared-lodash';\nimport { RadioGroup, Typography } from '@mui/material';\nimport Radio from '@mui/material/Radio';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport { findSectionsInSolutionSet, pointInsidePolygon, checkIfLinesAreAdded } from './utils.js';\n\nconst SubtitleText: any = styled(Typography)(({ theme }) => ({\n marginTop: theme.spacing(1.5),\n marginBottom: theme.spacing(1),\n}));\n\nconst RadioButtonClass: any = styled(FormControlLabel)({\n height: '20px',\n width: 'fit-content',\n padding: '.5rem 0',\n});\n\nconst StyledRadio: any = styled(Radio)({\n color: '#000000 !important',\n});\n\nconst ErrorMessage: any = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nexport class CorrectResponse extends React.Component {\n static propTypes = {\n errors: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n state = {\n dialog: {\n open: false,\n },\n };\n\n /*\n * Function to handle the alert dialog open and close\n * @param {boolean} open - open or close the dialog\n * @param {function} callback - callback function to be called after setting the state\n * */\n handleAlertDialog = (open, callback) =>\n this.setState(\n {\n dialog: { open },\n },\n callback,\n );\n\n /*\n * Function to change the marks on the graph\n * @param {array} marks - marks to be added on the graph\n * */\n changeMarks: any = (marks) => {\n const { model, onChange } = this.props;\n const { gssLineData } = model;\n if (gssLineData.selectedTool === 'lineA' && marks.length > 0) {\n marks[0].fill = gssLineData['lineA'].lineType;\n }\n if (gssLineData.selectedTool === 'lineB' && marks.length > 1) {\n marks[1].fill = gssLineData['lineB'].lineType;\n }\n if (marks.length === 0) {\n gssLineData.selectedTool = 'lineA';\n set(model, 'gssLineData', gssLineData);\n }\n set(model, 'answers.correctAnswer.marks', marks);\n onChange(model);\n };\n\n /*\n * Reset the graph to original state and remove all the elements added on the graph\n * */\n onResetClick: any = () => {\n const { model, onChange } = this.props;\n const { gssLineData, answers } = model;\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'This will remove all the elements added on the graph and reset graph to original state. Are you sure you want to continue?',\n onConfirm: () => {\n // Reset the graph to original state\n answers.correctAnswer.marks = [];\n gssLineData.selectedTool = 'lineA';\n gssLineData.lineA.lineType = 'Solid';\n if (gssLineData.lineB) gssLineData.lineB.lineType = 'Solid';\n set(model, 'answers', answers);\n set(model, 'gssLineData', gssLineData);\n onChange(model);\n this.handleAlertDialog(false);\n },\n onClose: () => this.handleAlertDialog(false),\n },\n });\n };\n\n /*\n * Function to change the number of lines on the graph\n * @param {object} e - event object\n * @param {number} value - number of lines to be added on the graph\n * */\n changeNumberOfLines: any = (e, value) => {\n const { model } = this.props;\n let gssLineData = model.gssLineData;\n if (gssLineData.selectedTool === 'solutionSet') {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Changing number of lines after adding solution set will remove added solution set. Are you sure you want to continue?',\n onConfirm: () => {\n this.changeLine(e, value);\n this.handleAlertDialog(false);\n },\n onClose: () => this.handleAlertDialog(false),\n },\n });\n } else {\n this.changeLine(e, value);\n }\n };\n\n /*\n * Function to change the number of line on the graph\n * @param {object} e - event object\n * @param {number} value - number of lines to be added on the graph\n * */\n changeLine: any = (e, value) => {\n const { model, onChange } = this.props;\n const { answers } = model;\n let gssLineData = model.gssLineData;\n //remove polygon from correct answer\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n if (Number.parseInt(value) === 1) {\n //remove lineB from gssLineData and correct answer\n delete gssLineData.lineB;\n if (answers.correctAnswer.marks.length > 1) answers.correctAnswer.marks.pop();\n gssLineData.numberOfLines = 1;\n gssLineData.selectedTool = 'lineA';\n } else {\n gssLineData.numberOfLines = 2;\n if (answers.correctAnswer.marks.length > 0) gssLineData.selectedTool = 'lineB';\n gssLineData.lineB = {\n lineType: 'Solid',\n };\n }\n //reset solution set\n set(model, 'answers', answers);\n set(model, 'gssLineData', gssLineData);\n onChange(model);\n };\n\n /*\n * Function to handle the changes to solution set on the graph\n * @param {object} point - point selected on the graph\n * */\n onSolutionSetSelected: any = (point) => {\n const { model, onChange } = this.props;\n const { answers, gssLineData } = model;\n for (const section of gssLineData.sections) {\n //check if the point is inside the polygon\n if (pointInsidePolygon(point, section)) {\n let polygon = {\n points: section,\n building: false,\n type: 'polygon',\n closed: true,\n isSolution: true,\n };\n //remove old answer section from correct answer\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n //add new answer section to correct answer\n answers.correctAnswer.marks.push(polygon);\n break;\n }\n }\n set(model, 'answers', answers);\n onChange(model);\n };\n\n /*\n * Function to handle the changes to line data on the graph\n * @param {object} gssLineData - line data on the graph\n * @param {string} oldSelectedTool - old selected tool\n * */\n onChangeGssLineData: any = (gssLineData, oldSelectedTool) => {\n const { model } = this.props;\n const { answers, domain, range } = model;\n //handle solution set changes\n if (gssLineData.selectedTool === 'solutionSet') {\n let lines = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n if (!checkIfLinesAreAdded(gssLineData, lines)) {\n gssLineData.selectedTool = oldSelectedTool;\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please define the line(s) and then select a solution set for the item.',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n } else {\n let lines = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n gssLineData = findSectionsInSolutionSet(gssLineData, lines, domain, range);\n }\n this.handleGssLineDataChange(gssLineData, answers);\n } else {\n let polygons = answers.correctAnswer.marks.filter((mark) => mark.type === 'polygon');\n if (oldSelectedTool === 'solutionSet' && polygons.length > 0) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Changing a line after adding a solution set will clear your selected solution set. Click \\'Clear Solution Set\\' to change the line. Otherwise, click \\'Cancel\\'.',\n onConfirm: () => {\n answers.correctAnswer.marks = answers.correctAnswer.marks.filter((mark) => mark.type !== 'polygon');\n this.handleGssLineDataChange(gssLineData, answers);\n this.handleAlertDialog(false);\n },\n onConfirmText: 'CLEAR SOLUTION SET',\n onClose: () => {\n gssLineData.selectedTool = oldSelectedTool;\n this.handleGssLineDataChange(gssLineData, answers);\n this.handleAlertDialog(false);\n },\n },\n });\n } else {\n this.handleGssLineDataChange(gssLineData, answers);\n }\n }\n };\n\n /*\n * Function to handle the changes to line data on the graph\n * @param {object} gssLineData - line data on the graph\n * @param {object} answers - correct answer\n * */\n handleGssLineDataChange: any = (gssLineData, answers) => {\n const { model, onChange } = this.props;\n //handle line type changes from solid to dashed and vice versa\n if (answers.correctAnswer.marks.length > 0 && answers.correctAnswer.marks[0] && gssLineData.lineA) {\n answers.correctAnswer.marks[0].fill = gssLineData.lineA.lineType;\n }\n if (answers.correctAnswer.marks.length > 1 && answers.correctAnswer.marks[1] && gssLineData.lineB) {\n answers.correctAnswer.marks[1].fill = gssLineData.lineB.lineType;\n }\n //check if line is added to the graph before switching to lineB\n if (\n (gssLineData.selectedTool === 'lineB' && answers.correctAnswer.marks.length === 0) ||\n (gssLineData.selectedTool === 'lineB' && answers.correctAnswer.marks[0].building)\n ) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please add Line A to the graph before adding Line B',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n gssLineData.selectedTool = 'lineA';\n }\n //check if lineB is added to the graph before switching to lineA\n if (\n gssLineData.selectedTool === 'lineA' &&\n answers.correctAnswer.marks.length > 1 &&\n answers.correctAnswer.marks[1].building\n ) {\n this.setState({\n dialog: {\n open: true,\n title: 'Warning',\n text: 'Please add Line B to the graph before switching to Line A',\n onConfirm: () => this.handleAlertDialog(false),\n },\n });\n gssLineData.selectedTool = 'lineB';\n }\n set(model, 'gssLineData', gssLineData);\n set(model, 'answers', answers);\n onChange(model);\n };\n\n /*\n * Function to update the model\n * @param {object} props - updated props\n * */\n updateModel: any = (props) => {\n const { model, onChange } = this.props;\n onChange({\n ...model,\n ...props,\n });\n };\n\n /*\n * Render the component\n * */\n render() {\n const { errors, model, mathMlOptions = {} } = this.props;\n const { dialog } = this.state;\n //get the default values to GssLineData\n const {\n gssLineData = {\n numberOfLines: 1,\n selectedTool: 'lineA',\n lineA: {\n lineType: 'Solid',\n },\n },\n arrows,\n coordinatesOnHover,\n domain,\n graph = {},\n labels,\n labelsEnabled,\n range,\n title,\n titleEnabled,\n answers,\n } = model || {};\n const { correctAnswerErrors = '' } = errors || {};\n return (\n <div>\n <Typography component=\"div\" variant=\"h6\">\n Define Line Type(s) and Correct Response\n </Typography>\n <SubtitleText component=\"div\" variant=\"body1\">\n Use this interface to choose how many lines students will be able to draw, and to define the correct answer.\n </SubtitleText>\n <SubtitleText component=\"div\" variant=\"body1\">\n Choose Number of Lines\n </SubtitleText>\n <RadioGroup name=\"numberOfLines\" value={gssLineData.numberOfLines} onChange={this.changeNumberOfLines}>\n <RadioButtonClass\n value=\"1\"\n control={<StyledRadio checked={gssLineData.numberOfLines === 1} />}\n label=\"One\"\n />\n <RadioButtonClass\n value=\"2\"\n control={<StyledRadio checked={gssLineData.numberOfLines === 2} />}\n label=\"Two\"\n />\n </RadioGroup>\n <React.Fragment>\n <Graph\n style={correctAnswerErrors['correctAnswer'] && { border: '2px solid red' }}\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n disabledLabels={true}\n disabledTitle={true}\n domain={domain}\n draggableTools={true}\n labels={labels}\n marks={answers && answers.correctAnswer && answers.correctAnswer.marks ? answers.correctAnswer.marks : []}\n onChangeMarks={(newMarks) => this.changeMarks(newMarks)}\n onCustomReset={this.onResetClick}\n range={range}\n showLabels={labelsEnabled}\n showTitle={titleEnabled}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n gssLineData={gssLineData}\n onChangeGssLineData={this.onChangeGssLineData}\n onSolutionSetSelected={this.onSolutionSetSelected}\n toolbarTools={['line', 'polygon']}\n mathMlOptions={mathMlOptions}\n />\n {correctAnswerErrors['correctAnswer'] && (\n <ErrorMessage>{correctAnswerErrors['correctAnswer']}</ErrorMessage>\n )}\n </React.Fragment>\n <AlertDialog\n open={dialog.open}\n title={dialog.title}\n text={dialog.text}\n onClose={dialog.onClose}\n onConfirm={dialog.onConfirm}\n onConfirmText={dialog.onConfirmText ? dialog.onConfirmText : 'OK'}\n />\n </div>\n );\n }\n}\n\nexport default CorrectResponse;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/configure.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\n\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@mui/material/Typography';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport GraphingConfig from './graphing-config.js';\nimport CorrectResponse from './correct-response.js';\n\nconst { Panel, toggle, radio, checkboxes, textField, dropdown } = settings;\nconst log = debug('@pie-element:graphing-solution-set:configure');\n\nconst StyledInputContainer: any = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n marginTop: theme.spacing(2),\n}));\n\nconst Description: any = styled(Typography)(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n}));\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n };\n\n /*\n * Triggered when configure component is mounted\n * */\n componentDidMount() {\n const { configuration, onModelChanged, model } = this.props;\n const { title, graphDimensions } = configuration || {};\n let { arrows, titleEnabled: showTitle, dimensionsEnabled: showDimensions } = model || {};\n // This is used for offering support for old models which have the property arrows: boolean\n // Same thing is set in the controller: packages/graphing/controller/src/index.js - model\n if (typeof arrows === 'boolean') {\n if (arrows) {\n arrows = { left: true, right: true, up: true, down: true };\n } else {\n arrows = { left: false, right: false, up: false, down: false };\n }\n }\n const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;\n const dimensionsEnabled =\n showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;\n onModelChanged && onModelChanged({ ...model, arrows, titleEnabled, dimensionsEnabled });\n }\n\n /*\n * Triggered when the rationale is changed\n * @param {string} rationale - The new rationale\n * */\n onRationaleChange: any = (rationale) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, rationale });\n };\n\n /*\n * Triggered when the prompt is changed\n * @param {string} prompt - The new prompt\n * */\n onPromptChange: any = (prompt) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, prompt });\n };\n\n /*\n * Triggered when the teacher instructions are changed\n * @param {string} teacherInstructions - The new teacher instructions\n * */\n onTeacherInstructionsChange: any = (teacherInstructions) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, teacherInstructions });\n };\n\n /*\n * Render the component\n * */\n render() {\n const { model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n arrows = {},\n authoring = {},\n coordinatesOnHover = {},\n contentDimensions = {},\n gridConfigurations = [],\n graphDimensions = {},\n instruction = {},\n labels = {},\n padding = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n title = {},\n maxImageWidth = {},\n maxImageHeight = {},\n withRubric = {},\n language = {},\n languageChoices = {},\n mathMlOptions = {},\n } = configuration || {};\n const {\n errors = {},\n extraCSSRules,\n labelsEnabled,\n dimensionsEnabled,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n titleEnabled,\n } = model || {};\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const labelsPlaceholders = {\n top: labels.top,\n right: labels.right,\n bottom: labels.bottom,\n left: labels.left,\n };\n const panelItemType = {\n arrows:\n arrows.settings &&\n checkboxes(arrows.label, {\n left: arrows.left,\n right: arrows.right,\n up: arrows.up,\n down: arrows.down,\n }),\n titleEnabled: title.settings && toggle(title.label),\n padding: padding.settings && toggle(padding.label),\n labelsEnabled: labels.settings && toggle(labels.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),\n coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),\n };\n const panelProperties = {\n 'authoring.enabled': authoring.settings && toggle(authoring.label, true),\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n instruction: instruction.settings && textField(instruction.label),\n };\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <Description component=\"div\" variant=\"body1\">\n {instruction?.label || ''}\n </Description>\n {teacherInstructionsEnabled && (\n <StyledInputContainer label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n {promptEnabled && (\n <StyledInputContainer label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n <GraphingConfig\n authoring={authoring}\n gridConfigurations={gridConfigurations}\n graphDimensions={graphDimensions}\n labelsPlaceholders={labelsPlaceholders}\n model={model}\n showLabels={labelsEnabled}\n dimensionsEnabled={dimensionsEnabled}\n showTitle={titleEnabled}\n titlePlaceholder={title.placeholder}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n <CorrectResponse\n errors={errors}\n model={model}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n {rationaleEnabled && (\n <StyledInputContainer label={rationale.label || 'Rationale'}>\n <EditableHtml\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default Configure;\n","//#region src/index.ts\nvar e = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model.updated\";\n\t}\n\tconstructor(t, n = !1) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tupdate: t,\n\t\t\t\treset: n\n\t\t\t}\n\t\t}), this.update = t, this.reset = n;\n\t}\n}, t = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.image\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, n = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.image\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n}, r = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.sound\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, i = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.sound\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n};\n//#endregion\nexport { t as DeleteImageEvent, r as DeleteSoundEvent, n as InsertImageEvent, i as InsertSoundEvent, e as ModelUpdatedEvent };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/defaults.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\n/*\n * This file contains the default configuration for the Graphing Solution Set Item Type.\n * Model is similar to the one used in graphing item type except for the gssLineData object which handles\n * the configuration for the lines and the solution set.\n *\n * Same model is used in controller default.js\n * */\nexport default {\n model: {\n answers: {\n correctAnswer: {\n name: 'Correct Answer',\n marks: [],\n },\n },\n arrows: {\n left: true,\n right: true,\n up: true,\n down: true,\n },\n marks: [],\n defaultGridConfiguration: 0,\n domain: {\n min: -5,\n max: 5,\n step: 1,\n labelStep: 1,\n axisLabel: 'x',\n },\n graph: {\n width: 500,\n height: 500,\n },\n gssLineData: {\n numberOfLines: 1,\n selectedTool: 'lineA',\n sections: [],\n lineA: {\n lineType: 'Solid',\n },\n },\n includeAxes: true,\n labels: {},\n labelsEnabled: true,\n padding: true,\n prompt: '',\n range: {\n min: -5,\n max: 5,\n step: 1,\n labelStep: 1,\n axisLabel: 'y',\n },\n rationale: '',\n standardGrid: false,\n title: '',\n coordinatesOnHover: false,\n promptEnabled: true,\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n },\n configuration: {\n authoring: {\n settings: false,\n label: 'Customize Grid Setup',\n enabled: true,\n includeAxesEnabled: false,\n standardGridEnabled: true,\n min: {\n label: 'Min Value',\n enabled: true,\n },\n max: {\n label: 'Max Value',\n enabled: true,\n },\n axisLabel: {\n label: 'Label',\n enabled: true,\n },\n step: {\n label: 'Grid Interval',\n enabled: true,\n },\n labelStep: {\n label: 'Label Interval',\n enabled: true,\n },\n },\n arrows: {\n settings: true,\n label: 'Include Arrows',\n left: {\n label: 'left',\n },\n right: {\n label: 'right',\n },\n up: {\n label: 'up',\n },\n down: {\n label: 'down',\n },\n },\n gridConfigurations: [\n {\n label: '4-quadrant coordinate grid, -10 to 10',\n arrows: {\n left: true,\n right: true,\n up: true,\n down: true,\n },\n domain: {\n min: -10,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: -10,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: '0 to 10 on both axes',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: 0,\n max: 10,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: '0 to 20 on both axes',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 20,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>x</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: '',\n left: '',\n },\n padding: true,\n range: {\n min: 0,\n max: 20,\n step: 1,\n padding: 0,\n labelStep: 1,\n axisLabel: '<i>y</i>',\n },\n standardGrid: true,\n title: '',\n },\n {\n label: 'Sample Data Graph',\n arrows: {\n left: false,\n right: true,\n up: true,\n down: false,\n },\n domain: {\n min: 0,\n max: 30,\n step: 1,\n padding: 0,\n labelStep: 2,\n axisLabel: '<i>t</i>',\n },\n graph: {\n width: 480,\n height: 480,\n },\n includeAxes: true,\n labels: {\n top: '',\n right: '',\n bottom: 'Time (seconds)',\n left: 'Distance (meters)',\n },\n padding: true,\n range: {\n min: 0,\n max: 80,\n step: 5,\n padding: 0,\n labelStep: 10,\n axisLabel: '<i>d</i>',\n },\n standardGrid: false,\n title: 'Distance as a function of time',\n },\n ],\n graphDimensions: {\n settings: false,\n label: 'Graph Dimensions',\n enabled: true,\n min: 150,\n max: 800,\n step: 20,\n },\n padding: {\n settings: false,\n label: 'Padding',\n },\n labels: {\n settings: true,\n label: 'Graph Labels',\n enabled: true,\n top: 'Click here to add a top label',\n right: 'Click here to add a right label',\n bottom: 'Click here to add a bottom label',\n left: 'Click here to add a left label',\n },\n prompt: {\n settings: true,\n label: 'Item Stem',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n scoringType: {\n settings: false,\n label: 'Scoring Type',\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n title: {\n settings: true,\n label: 'Graph Title',\n enabled: true,\n placeholder: 'Click here to add a title for this graph',\n },\n instruction: {\n settings: false,\n label:\n 'Graphing Solution Set items involve plotting one or two lines on a graph and then selecting the correct area that represents the solution set. To create one, first configure the grid, then select if one or two lines will be offered and if the lines should be solid or dashed. After defining the line(s), define the correct answer by clicking the area that represents the solution set.',\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n coordinatesOnHover: {\n settings: true,\n label: 'Coordinates on Hover',\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n },\n};\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/graphing-solution-set/configure/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Configure from './configure.js';\nimport {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-element/shared-configure-events';\nimport debug from 'debug';\nimport defaultValues from './defaults.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nconst log = debug('pie-elements:graphing-solution-set:configure');\n\n// this function is implemented in controller as well\nconst sortedAnswers = (answers) =>\n Object.keys(answers || {})\n .sort()\n .reduce((result, key) => {\n if (key !== 'correctAnswer') {\n result[key] = answers[key];\n }\n\n return result;\n }, {});\n\nexport default class GraphLinesConfigure extends HTMLElement {\n static createDefaultModel = (model = {}) => {\n const normalizedModel = { ...defaultValues.model, ...model };\n const { answers = {}, domain = {}, graph = {}, range = {}, standardGrid } = normalizedModel;\n return {\n ...normalizedModel,\n answers:\n (answers &&\n answers.correctAnswer && {\n correctAnswer: answers.correctAnswer,\n ...sortedAnswers(answers),\n }) ||\n answers,\n range:\n (standardGrid && {\n ...range,\n min: domain.min,\n max: domain.max,\n step: domain.step,\n labelStep: domain.labelStep,\n }) ||\n range,\n graph: (standardGrid && { ...graph, height: graph.width }) || graph,\n };\n };\n\n constructor() {\n super();\n this._root = null;\n this._model = GraphLinesConfigure.createDefaultModel();\n this._configuration = defaultValues.configuration;\n }\n\n /*\n * Function to set the model\n * */\n set model(m) {\n this._model = GraphLinesConfigure.createDefaultModel(m);\n this._render();\n }\n\n /*\n * Function to set the configuration\n * */\n set configuration(c) {\n this._configuration = c;\n // if language:enabled is true, then the corresponding default item model should include a language value;\n // if it is false, then the language field should be omitted from the item model.\n // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,\n // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).\n //TODO: add logic in controller and add tests\n if (c.language?.enabled) {\n if (c.languageChoices?.options?.length) {\n this._model.language = c.languageChoices.options[0].value;\n }\n } else {\n if (c.language.settings) {\n if (this._model.language) {\n this._configuration.language.enabled = true;\n }\n } else {\n delete this._model.language;\n }\n }\n this._render();\n }\n\n /*\n * Triggered when the model is changed\n * @param {object} model - the new model\n * */\n onModelChanged: any = (model) => {\n this._model = model;\n this._render();\n log('[onModelChanged]: ', this._model);\n this.dispatchEvent(new ModelUpdatedEvent(this._model));\n };\n\n /*\n * Triggered when the configuration is changed\n * @param {object} config - the new configuration\n * */\n onConfigurationChanged: any = (config) => {\n this._configuration = config;\n this._render();\n };\n\n insertImage: any = (handler) => {\n this.dispatchEvent(new InsertImageEvent(handler));\n };\n\n onDeleteImage: any = (src, done) => {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n };\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n /*\n * Render the component\n * */\n _render() {\n if (this._model) {\n const el = React.createElement(Configure, {\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n model: this._model,\n configuration: this._configuration,\n imageSupport: {\n add: this.insertImage,\n delete: this.onDeleteImage,\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n queueMicrotask(() => {\n renderMath(this);\n });\n }\n }\n\n connectedCallback() {\n this._render();\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,21,26,27,28,29,30,31],"mappings":";;;;;;;AAQA,IAAA,KAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,6FACL,CAAC,GAAG,sBAAsB,GCF1B,KAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,sIACL,CAAC,GAAG,UAAU,GCFd,KAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,gGACL,CAAC,GAAG,uBAAuB;;;ACR3B,SAAgB,GAAwB,GAAM;CAC5C,OAAO,EAAqB,eAAe,CAAI;AACjD;AACA,IAAM,KAAkB,EAAuB,eAAe;CAAC;CAAQ;CAAW;CAAY;CAAiB;CAAgB;CAAkB;CAAa;AAAY,CAAC,GCerKA,MAAoB,MAAc;CACtC,IAAM,EACJ,YACA,kBACA,UACA,YACE,GAIE,IAAkB,EAAe,EAFrC,MAAM;EAAC;EAAQ,KAAiB;EAAiB,QAAQC,EAAW,CAAK;EAAK,OAAOA,EAAW,CAAI;CAAG,EAE9D,GAAG,IAAyB,CAAO;CAC9E,OAAO;EACL,GAAG;EAEH,GAAG;CACL;AACF,GACM,KAAe,EAAO,I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B;EACpB,eAAe;EACf,kBAAkB;EAClB,4BAA4B;EAC5B,4BAA4B;CAC9B;CACA,eAAe;EACb,WAAW;GACT,UAAU;GACV,OAAO;GACP,SAAS;GACT,oBAAoB;GACpB,qBAAqB;GACrB,KAAK;IACH,OAAO;IACP,SAAS;GACX;GACA,KAAK;IACH,OAAO;IACP,SAAS;GACX;GACA,WAAW;IACT,OAAO;IACP,SAAS;GACX;GACA,MAAM;IACJ,OAAO;IACP,SAAS;GACX;GACA,WAAW;IACT,OAAO;IACP,SAAS;GACX;EACF;EACA,QAAQ;GACN,UAAU;GACV,OAAO;GACP,MAAM,EACJ,OAAO,OACT;GACA,OAAO,EACL,OAAO,QACT;GACA,IAAI,EACF,OAAO,KACT;GACA,MAAM,EACJ,OAAO,OACT;EACF;EACA,oBAAoB;GAClB;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;GACA;IACE,OAAO;IACP,QAAQ;KACN,MAAM;KACN,OAAO;KACP,IAAI;KACJ,MAAM;IACR;IACA,QAAQ;KACN,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;IACA,aAAa;IACb,QAAQ;KACN,KAAK;KACL,OAAO;KACP,QAAQ;KACR,MAAM;IACR;IACA,SAAS;IACT,OAAO;KACL,KAAK;KACL,KAAK;KACL,MAAM;KACN,SAAS;KACT,WAAW;KACX,WAAW;IACb;IACA,cAAc;IACd,OAAO;GACT;EACF;EACA,iBAAiB;GACf,UAAU;GACV,OAAO;GACP,SAAS;GACT,KAAK;GACL,KAAK;GACL,MAAM;EACR;EACA,SAAS;GACP,UAAU;GACV,OAAO;EACT;EACA,QAAQ;GACN,UAAU;GACV,OAAO;GACP,SAAS;GACT,KAAK;GACL,OAAO;GACP,QAAQ;GACR,MAAM;EACR;EACA,QAAQ;GACN,UAAU;GACV,OAAO;EACT;EACA,WAAW;GACT,UAAU;GACV,OAAO;EACT;EACA,aAAa;GACX,UAAU;GACV,OAAO;EACT;EACA,qBAAqB;GACnB,UAAU;GACV,OAAO;EACT;EACA,qBAAqB;GACnB,UAAU;GACV,OAAO;EACT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