/*!
 * KoliBri - The accessible HTML-Standard
 */
import { __rest } from "tslib";
import { h } from "@stencil/core";
import KolSelectFc from "../../functional-components/inputs/NativeSelect";
import { getRenderStates } from "../_helpers/getRenderStates";
function getSelectProps(state) {
    const { ariaDescribedBy } = getRenderStates(state);
    const props = {
        id: state._id,
        hideLabel: state._hideLabel,
        label: state._label,
        value: state._value,
        options: state._options,
        accessKey: state._accessKey,
        disabled: state._disabled,
        name: state._name,
        ariaDescribedBy: ariaDescribedBy,
        size: state._rows,
        multiple: state._multiple,
        required: state._required,
        touched: state._touched,
        msg: state._msg,
    };
    if ('_shortKey' in state)
        props['aria-keyshortcuts'] = state._shortKey;
    return props;
}
const SelectStateWrapper = (_a) => {
    var { state } = _a, other = __rest(_a, ["state"]);
    return h(KolSelectFc, Object.assign({}, getSelectProps(state), other));
};
export default SelectStateWrapper;
//# sourceMappingURL=SelectStateWrapper.js.map
