package com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc;

import X.4HR;
import X.C4394Bio;
import X.C4423BjH;
import X.C4440BjY;
import X.C4448Bjg;
import X.C4591Blz;
import X.C4651Bmx;
import X.Lel;
import X.M12;
import com.bytedance.assem.arch.viewModel.AssemViewModel;
import com.bytedance.covode.number.Covode;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.h.b.n;

public final class CCDCAddCardViewModel extends AssemViewModel<C4440BjY> {
    public final Map<String, List<C4651Bmx>> LIZ = new LinkedHashMap();
    public String[] LIZIZ;

    static {
        Covode.recordClassIndex(68791);
    }

    public final /* synthetic */ 4HR defaultState() {
        return new C4440BjY();
    }

    public CCDCAddCardViewModel() {
        String[] strArr = new String[4];
        int i = 0;
        do {
            strArr[i] = null;
            i++;
        } while (i < 4);
        this.LIZIZ = strArr;
    }

    public final List<C4651Bmx> LIZ(String str) {
        M12.LIZ(str);
        List<C4651Bmx> list = this.LIZ.get(str);
        if (list == null) {
            return Lel.INSTANCE;
        }
        return list;
    }

    public final void LIZ(String str, List<C4651Bmx> list) {
        M12.LIZ(str, list);
        this.LIZ.put(str, list);
    }

    public final String LIZ(C4394Bio bio, C4591Blz blz, List<C4651Bmx> list) {
        String LIZ2 = C4448Bjg.LIZ.LIZ(bio.LIZJ, blz, list);
        if (!n.LIZ(LIZ2, "system_error")) {
            return LIZ2;
        }
        setState(C4423BjH.LIZ);
        return "";
    }
}
