package com.ss.android.ugc.aweme.ecommerce.common;

import X.CVJ;
import X.CW4;
import X.CWJ;
import X.CWK;
import X.CYQ;
import X.CYU;
import X.CYW;
import X.CZ8;
import X.M12;
import android.content.Context;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.SparseArray;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.arch.JediBaseFragment;
import java.util.List;
import java.util.Map;
import kotlin.h.b.n;

public class ECBaseJediFragment extends JediBaseFragment implements CVJ {
    public long LIZIZ = SystemClock.elapsedRealtime();
    public SparseArray LIZJ;

    static {
        Covode.recordClassIndex(69759);
    }

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

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

    public final String ce_() {
        return "page_name";
    }

    public /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        cb_();
    }

    public final Map<String, String> cd_() {
        return CYQ.LIZIZ;
    }

    public List<String> getRegisteredLane() {
        return CYQ.LIZ;
    }

    public final CZ8 cf_() {
        return CYU.LIZIZ((Object) this);
    }

    public String ck_() {
        String simpleName = getClass().getSimpleName();
        n.LIZIZ(simpleName, "");
        return simpleName;
    }

    public void onStart() {
        this.LIZIZ = SystemClock.elapsedRealtime();
        ECBaseJediFragment.super.onStart();
    }

    public final CZ8 cc_() {
        CZ8 LIZ = CYU.LIZ((Object) this);
        if (LIZ != null) {
            return LIZ;
        }
        Context context = getContext();
        if (!(context instanceof CWJ)) {
            context = null;
        }
        return (CWJ) context;
    }

    public void LIZ(CYW cyw) {
        M12.LIZ(cyw);
        CWK.LIZ(cyw);
    }

    public void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        CW4.LIZ(view, this);
    }
}
