import { _ as __assign } from '../tslib.es6-20a2a300.js';
import { jsx, jsxs } from 'react/jsx-runtime';
import { validatorOptions } from './utils/formControlStories.js';
import ThumbnailInfoBar from '../components/ThumbnailInfoBar.js';
import SelectAutocompleteDropdown from '../components/SelectAutocompleteDropdown.js';
import { a as withStyles } from '../withStyles-99aeb25b.js';
import { B as Box } from '../Box-581dc061.js';
import './utils/adornmentStories.js';
import './utils/iconStories.js';
import '../theme/colors.js';
import '../components/Icon.js';
import '../icons/ArrowRight.js';
import '../icons/ArrowRightCircle.js';
import '../icons/Check.js';
import '../icons/CheckCircle.js';
import '../icons/ChevronRight.js';
import '../icons/CrossCircle.js';
import '../icons/DollarSign.js';
import '../icons/InfoCircle.js';
import '../icons/Link.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/TriangleLeft.js';
import '../icons/Copy.js';
import '../icons/SortUp.js';
import '../icons/Cross.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../makeStyles-c9a99c7a.js';
import '../defaultTheme-49a26576.js';
import 'react';
import '../styled-components.esm-a98d7870.js';
import '../hoist-non-react-statics.cjs-b718ab87.js';
import '../theme/fontFamily.js';
import '../theme/fontSize.js';
import '../components/Typography.js';
import '../_commonjsHelpers-57e89916.js';
import '../theme/fontWeight.js';
import '../theme/lineHeight.js';
import '../Typography-649a8eff.js';
import '../clsx.m-6243b874.js';
import '../capitalize-5d3e9aac.js';
import '../components/IconButton.js';
import '../IconButton-7563dc0d.js';
import '../ButtonBase-11d3cdb5.js';
import 'react-dom';
import '../useForkRef-4ff8cc89.js';
import '../useEventCallback-8817ed1c.js';
import '../deprecatedPropType-0232df1e.js';
import '../useIsFocusVisible-c048447c.js';
import '../TransitionGroupContext-2ba64e99.js';
import '../refType-5cc24a92.js';
import '../elementTypeAcceptingRef-7677eeee.js';
import '../styled-339d0187.js';
import '../components/Button.js';
import '../createStyles-16423e9e.js';
import '../components/InputLabel.js';
import '../formControlState-da4d15f8.js';
import '../useFormControl-dc7cf5d6.js';
import '../FormControlContext-64eed5c2.js';
import '../AutocompleteDropdown-d9450bc7.js';
import '../components/TextField.js';
import '../components/Input.js';
import '../Input-d5c36a50.js';
import '../components/FormHelperText.js';
import '../FormControl-1f6cf8f3.js';
import '../Close-9f6801e0.js';
import '../createSvgIcon-6fb7d1b7.js';
import '../useControlled-ca779f8e.js';
import '../Paper-cfd8f963.js';
import '../Portal-ea11d671.js';
import '../HTMLElementType-a5d51d34.js';
import '../Fade-e167cb2c.js';
import '../useTheme-27496d89.js';
import '../utils-2b600105.js';
import '../ownerDocument-e276d08d.js';
import '../elementAcceptingRef-29f38505.js';

var argTypes = {
    centerPopper: {
        name: "centerPopper",
        defaultValue: false,
        control: { type: "boolean" }
    },
    label: {
        name: "label",
        defaultValue: "",
        control: { type: "text" }
    },
    placeholder: {
        name: "placeholder",
        defaultValue: "Select option",
        control: { type: "text" }
    },
    buttonProps: { table: { disable: true } },
    formControlProps: { table: { disable: true } },
    inputFieldColor: { table: { disable: true } },
    popperProps: { table: { disable: true } },
    ref: { table: { disable: true } }
};
var StyledBox = withStyles(function (theme) { return ({
    root: {
        width: "100%",
        display: "flex",
        justifyContent: "center"
    }
}); })(Box);
var StyledOptionLabelBox = withStyles(function (theme) { return ({
    root: {
        width: "100%",
        "& span:first-of-type": {
            color: theme.palette.text.primary
        },
        "& span:last-of-type": {
            color: theme.palette.text.secondary
        }
    }
}); })(Box);
var Template = function (args) {
    return (jsx(StyledBox, { children: jsx(SelectAutocompleteDropdown, { id: "story-autocomplete", label: args.label, options: validatorOptions, getOptionLabel: function (option) { return option.title; }, renderOption: function (params) { return jsx(ThumbnailInfoBar, __assign({}, params), void 0); }, placeholder: args.placeholder, centerPopper: args.centerPopper, buttonProps: {
                getPlaceholderEl: function () { return jsx("span", { children: "Select" }, void 0); },
                getOptionLabelEl: function (value) { return (jsxs(StyledOptionLabelBox, { children: [jsx("span", { children: value.title }, void 0), " ", jsx("span", { children: value.subtitle.slice(0, 4) + "..." + value.subtitle.slice(value.subtitle.length - 4) }, void 0)] }, void 0)); }
            } }, void 0) }, void 0));
};
var Default = Template.bind({});
var SelectAutocompleteDropdown_stories = {
    title: "Form Controls/SelectAutocompleteDropdown",
    component: SelectAutocompleteDropdown,
    argTypes: argTypes
};

export { Default, SelectAutocompleteDropdown_stories as default };
