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

import X.0HH;
import X.2Pr;
import X.2k0;
import X.2uR;
import X.3cA;
import X.3cC;
import X.3cI;
import X.C3251BDb;
import X.C4434BjS;
import X.C4517Bkn;
import X.C4585Blt;
import X.C4591Blz;
import X.C4620BmS;
import X.C4621BmT;
import X.LsC;
import X.M12;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.bytedance.assem.arch.core.Assembler;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.ecommerce.common.view.CommerceBottomSheetDialogFragment;
import java.util.HashMap;
import java.util.LinkedHashMap;
import kotlin.h.b.n;

public final class CCDCAddCardHalfFragment extends CommerceBottomSheetDialogFragment {
    public static final C4621BmT LIZJ = new C4621BmT((byte) 0);
    public C4591Blz LIZ;
    public C4517Bkn LIZIZ;
    public SparseArray LIZLLL;

    static {
        Covode.recordClassIndex(68785);
    }

    public final View LIZ(int i) {
        if (this.LIZLLL == null) {
            this.LIZLLL = new SparseArray();
        }
        View view = (View) this.LIZLLL.get(i);
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LIZLLL.put(i, findViewById);
        return findViewById;
    }

    public final void LIZJ() {
        SparseArray sparseArray = this.LIZLLL;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public CCDCAddCardHalfFragment() {
        super((byte) 0);
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [com.ss.android.ugc.aweme.ecommerce.common.view.CommerceBottomSheetDialogFragment, com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc.CCDCAddCardHalfFragment, com.ss.android.ugc.aweme.ecommerce.common.view.ECBaseBottomSheetDialogFragment] */
    public final void onDestroyView() {
        CCDCAddCardHalfFragment.super.onDestroyView();
        long LIZIZ2 = C4585Blt.LIZJ.LIZIZ("stay_duration");
        2k0 r3 = 2k0.LIZ;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.putAll(C4585Blt.LIZ);
        linkedHashMap.put("stay_time", String.valueOf(LIZIZ2));
        r3.LIZ("tiktokec_stay_page", linkedHashMap);
        C4585Blt.LIZ.clear();
        C4585Blt.LIZIZ.clear();
        LIZJ();
    }

    /* JADX WARNING: type inference failed for: r7v0, types: [com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.ccdc.CCDCAddCardHalfFragment, com.ss.android.ugc.aweme.ecommerce.common.view.ECBaseBottomSheetDialogFragment, androidx.fragment.app.Fragment] */
    public final void onViewCreated(View view, Bundle bundle) {
        HashMap<String, Object> hashMap;
        M12.LIZ(view);
        CCDCAddCardHalfFragment.super.onViewCreated(view, bundle);
        C4517Bkn bkn = this.LIZIZ;
        if (bkn != null) {
            hashMap = bkn.LJII;
        } else {
            hashMap = null;
        }
        LinkedHashMap<String, Object> linkedHashMap = C4585Blt.LIZ;
        if (hashMap != null) {
            linkedHashMap.putAll(hashMap);
        }
        linkedHashMap.put("EVENT_ORIGIN_FEATURE", "TEMAI");
        linkedHashMap.put("previous_page", "order_submit");
        linkedHashMap.put("page_name", "ccdc_card_info");
        2k0 r2 = 2k0.LIZ;
        LinkedHashMap linkedHashMap2 = new LinkedHashMap();
        linkedHashMap2.putAll(C4585Blt.LIZ);
        r2.LIZ("tiktokec_enter_page", linkedHashMap2);
        C4585Blt.LIZJ.LIZ("stay_duration");
        C3251BDb.LIZ((Fragment) this, (LsC<? super Assembler, 2Pr>) new C4434BjS(this));
        2uR r5 = new 2uR();
        3cA r1 = new 3cA();
        r1.LIZ(2131755740);
        r1.LIZIZ = true;
        r1.LIZ(new C4620BmS(this));
        r5.LIZIZ(new 3cI[]{r1});
        3cC r22 = new 3cC();
        String string = getResources().getString(2131824238);
        n.LIZIZ(string, "");
        r22.LIZ(string);
        r5.LIZ(r22);
        r5.LIZLLL = true;
        LIZ(2131367894).setNavActions(r5);
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        return 0HH.LIZ(layoutInflater, 2131559077, viewGroup, false);
    }
}
