import * as __WEBPACK_EXTERNAL_MODULE__selectData_mjs__ from "./selectData.mjs";
const filterOptions = (candidate, input)=>{
    if (input) return candidate.value === customOptions[0].value;
    return true;
};
const customOptions = [
    {
        value: 'custom',
        label: 'Using a custom filter to always display this option on search'
    },
    ...__WEBPACK_EXTERNAL_MODULE__selectData_mjs__.colourOptions
];
const EMOJIS = [
    '👍',
    '🤙',
    '👏',
    '👌',
    '🙌',
    '✌️',
    '🖖',
    '👐'
];
const filterColors = (inputValue)=>__WEBPACK_EXTERNAL_MODULE__selectData_mjs__.colourOptions.filter((i)=>i.label.toLowerCase().includes(inputValue.toLowerCase()));
const promiseOptions = (inputValue)=>new Promise((resolve)=>{
        setTimeout(()=>{
            resolve(filterColors(inputValue));
        }, 1000);
    });
function getLength(options) {
    return options.reduce((acc, curr)=>{
        if ('options' in curr) return acc + getLength(curr.options);
        return acc + 1;
    }, 0);
}
export { EMOJIS, customOptions, filterColors, filterOptions, getLength, promiseOptions };
