package com.bytedance.android.livesdk.livesetting.hybrid;

import X.C4880HaT;
import com.bytedance.android.live.annotation.Group;
import com.bytedance.android.live.annotation.SettingsKey;
import com.bytedance.android.live_settings.SettingsManager;
import com.bytedance.covode.number.Covode;

@SettingsKey("lynx_card_widget_new_config")
public final class LynxCardConfig {
    @Group(isDefault = true, value = "default")
    public static final C4880HaT DEFAULT = new C4880HaT();
    public static final LynxCardConfig INSTANCE = new LynxCardConfig();

    public final C4880HaT getDEFAULT() {
        return DEFAULT;
    }

    public final int getItemHeight() {
        return getConfig().LJI;
    }

    public final int getItemSpacing() {
        return getConfig().LJII;
    }

    public final int getItemWidth() {
        return getConfig().LJFF;
    }

    public final int getPreviewHeight() {
        return getConfig().LJIIIZ;
    }

    public final int getPreviewStartMargin() {
        return getConfig().LJIIJJI;
    }

    public final int getPreviewTopMargin() {
        return getConfig().LJIIJ;
    }

    public final int getPreviewWidth() {
        return getConfig().LJIIIIZZ;
    }

    public final int getWidgetEndMargin() {
        return getConfig().LJ;
    }

    public final int getWidgetHeight() {
        return getConfig().LIZIZ;
    }

    public final int getWidgetStartMargin() {
        return getConfig().LIZLLL;
    }

    public final int getWidgetTopMargin() {
        return getConfig().LIZJ;
    }

    public final int getWidgetWidth() {
        return getConfig().LIZ;
    }

    private final C4880HaT getConfig() {
        C4880HaT haT = (C4880HaT) SettingsManager.INSTANCE.getValueSafely(LynxCardConfig.class);
        if (haT == null) {
            return DEFAULT;
        }
        return haT;
    }

    static {
        Covode.recordClassIndex(17896);
    }
}
