'use strict';

var resolveTransition = require('./resolve-transition.js');

function getValueTransition(transition, key) {
    const valueTransition = transition?.[key] ??
        transition?.["default"] ??
        transition;
    if (valueTransition !== transition) {
        return resolveTransition.resolveTransition(valueTransition, transition);
    }
    return valueTransition;
}

exports.getValueTransition = getValueTransition;
