// (C) 2026 GoodData Corporation
import { areObjRefsEqual, } from "@gooddata/sdk-model";
export function resolveFilterViewParameterValues(parameters, workspaceParameters) {
    return parameters.map((parameter) => {
        if (parameter.value !== undefined) {
            return { ref: parameter.ref, value: parameter.value };
        }
        const workspaceParameter = workspaceParameters.find((item) => areObjRefsEqual(item.ref, parameter.ref));
        return { ref: parameter.ref, value: workspaceParameter?.definition.defaultValue };
    });
}
