import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx, jsxs } from 'react/jsx-runtime';
import MuiBox from '@mui/material/Box';
import { styled } from '@mui/material/styles';
import { validatorOptions } from './utils/formControlStories.js';
import ThumbnailInfoBar from '../components/ThumbnailInfoBar.js';
import SelectAutocompleteDropdown from '../components/SelectAutocompleteDropdown.js';
import './utils/adornmentStories.js';
import './utils/iconStories.js';
import '../theme/colors.js';
import '../components/Icon.js';
import '../icons/ArrowLeft.js';
import '../icons/ArrowRight.js';
import '../icons/CloseCircle.js';
import '../icons/InfoCircle.js';
import '../icons/ErrorCircle.js';
import '../icons/Attention.js';
import '../icons/HelpCircle.js';
import '../icons/Document.js';
import '../icons/DocumentText.js';
import '../icons/Lock.js';
import '../icons/Delete.js';
import '../icons/Users.js';
import '../icons/Stakefish.js';
import '../icons/Sound.js';
import '../icons/Beacon.js';
import '../icons/TriangleRight.js';
import '../icons/TriangleLeft.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/Sent.js';
import '../icons/Download.js';
import '../icons/Faster.js';
import '../icons/Slower.js';
import '../icons/Usb.js';
import '../icons/Key.js';
import '../icons/Edit.js';
import '../icons/Expand.js';
import '../icons/Collapse.js';
import '../icons/Success.js';
import '../icons/SuccessCircle.js';
import '../icons/Fail.js';
import '../icons/Desktop.js';
import '../icons/Mobile.js';
import '../icons/Loading.js';
import '../icons/Upload.js';
import '../icons/Check.js';
import '../icons/ChevronLeft.js';
import '../icons/ChevronRight.js';
import '../icons/Plus.js';
import '../icons/Minus.js';
import '../icons/Globe.js';
import '../icons/Link.js';
import '../icons/Copy.js';
import '../icons/Medium.js';
import '../icons/Twitter.js';
import '../icons/Telegram.js';
import '../icons/Eth.js';
import '../icons/Sort.js';
import '../icons/Close.js';
import '../icons/DollarSign.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../icons/Instagram.js';
import '../icons/LinkedIn.js';
import '../icons/Reddit.js';
import '../icons/YouTube.js';
import '../icons/Chrome.js';
import '../icons/CloudConnect.js';
import '../icons/Update.js';
import '../icons/Menu.js';
import '../icons/Settings.js';
import 'react';
import '../theme/boxShadow.js';
import '../components/Typography.js';
import '@mui/material/Typography';
import '../theme/typography.js';
import '../components/IconButton.js';
import '@mui/material/IconButton';
import '@mui/material/Fade';
import '@mui/material/Popper';
import '@mui/material/ClickAwayListener';
import '@mui/material/FormControl';
import '../components/Button.js';
import '../clsx.m-6243b874.js';
import '@mui/material/Button';
import '../components/AutocompleteDropdown.js';
import '@mui/material/Autocomplete';
import '../components/TextField.js';
import '@mui/material/TextField';
import '../components/EndAdornment.js';
import '@mui/material/InputAdornment';
import '../components/Input.js';
import '@mui/material/Input';
import '../theme/borders.js';

var argTypes = {
    fullWidth: {
        name: "fullWidth",
        defaultValue: false,
        control: { type: "boolean" }
    },
    autocompleteDropdownProps: { table: { disable: true } },
    buttonProps: { table: { disable: true } },
    formControlProps: { table: { disable: true } },
    inputFieldColor: { table: { disable: true } },
    popperProps: { table: { disable: true } },
    ref: { table: { disable: true } },
    id: { table: { disable: true } },
    label: { table: { disable: true } }
};
var StyledBox = styled(MuiBox)(function () { return ({
    "&": {
        width: "100%",
        display: "flex",
        justifyContent: "center"
    }
}); });
var StyledOptionLabelBox = styled(MuiBox)(function (_a) {
    var theme = _a.theme;
    return ({
        "&": {
            width: "100%",
            "& span:first-of-type": {
                color: theme.palette.text.primary
            },
            "& span:last-of-type": {
                color: theme.palette.text.secondary
            }
        }
    });
});
var Template = function (args) {
    var renderOption = function (props, option) {
        return (jsx("li", __assign({}, props, { children: jsx(ThumbnailInfoBar, __assign({}, option), option.subtitle) }), void 0));
    };
    return (jsx(StyledBox, { children: jsx(SelectAutocompleteDropdown, { id: "story-autocomplete", label: args.label, fullWidth: args.fullWidth, 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)); }
            }, autocompleteDropdownProps: {
                options: validatorOptions,
                getOptionLabel: function (option) { return option.title; },
                renderOption: renderOption
            } }, 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 };
