'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const popperOptions = {
    placement: 'bottom',
    modifiers: [
        {
            name: 'offset',
            options: {
                offset: [0, 0],
            },
        },
    ],
};
const getSlicedValue = (opt, value) => {
    if (value) {
        const valueStartIndex = opt.label
            .toLowerCase()
            .indexOf(value.toLowerCase());
        const valueEndIndex = valueStartIndex + value.length;
        if (valueStartIndex >= 0) {
            return {
                bolded: opt.label.slice(0, valueEndIndex),
                end: opt.label.slice(valueEndIndex, opt.label.length),
            };
        }
    }
    return null;
};

exports.getSlicedValue = getSlicedValue;
exports.popperOptions = popperOptions;
