import { pick } from "remeda";
import { replaceNullToUndefined } from "../../../../utils/index.js";
const dualAxisConfig = (advancedVSeed, context)=>{
    const { vseed } = context;
    const { chartType } = vseed;
    const result = {
        ...advancedVSeed
    };
    const pickedConfig = pick(vseed, [
        'backgroundColor',
        'color',
        'label',
        'legend',
        'tooltip',
        'xAxis',
        'alignTicks',
        'primaryYAxis',
        'secondaryYAxis',
        'crosshairLine',
        'crosshairRect',
        'barGapInGroup',
        'barMaxWidth',
        'stackCornerRadius',
        'dimensionLinkage'
    ]);
    const config = replaceNullToUndefined(pickedConfig);
    result.config = {
        ...result.config,
        [chartType]: {
            ...config
        }
    };
    return result;
};
export { dualAxisConfig };

//# sourceMappingURL=dualAxis.js.map