package com.bytedance.android.live.rank.impl.list.fragment.list;

import X.AnonymousClass0HH;
import X.AnonymousClass13X;
import X.AnonymousClass13Y;
import X.C263813k;
import X.C37491eF;
import X.C37501eG;
import X.C37511eH;
import X.C37641eU;
import X.C37701ea;
import X.C37721ec;
import X.FkL;
import X.GSF;
import X.GpC;
import X.M12;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.bytedance.android.live.rank.impl.list.controller.child.list.WeeklyRankController;
import com.bytedance.android.live.rank.impl.list.vm.list.WeeklyRankViewModel;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import java.util.HashMap;
import kotlin.h.b.n;

public final class WeeklyRankFragment extends RankBaseFragment<WeeklyRankViewModel, WeeklyRankController> {
    public static final AnonymousClass13X LIZ = new AnonymousClass13X((byte) 0);
    public HashMap LJIIL;

    static {
        Covode.recordClassIndex(10341);
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.bytedance.android.live.rank.impl.list.fragment.list.WeeklyRankFragment, androidx.fragment.app.Fragment] */
    public final View LIZIZ(int i) {
        if (this.LJIIL == null) {
            this.LJIIL = new HashMap();
        }
        View view = (View) this.LJIIL.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJIIL.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    public final void LIZJ() {
        HashMap hashMap = this.LJIIL;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

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

    public WeeklyRankFragment() {
    }

    public final GpC LIZIZ() {
        return GpC.WEEKLY_RANK;
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [androidx.fragment.app.Fragment] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final /* synthetic */ com.bytedance.android.live.rank.impl.list.controller.child.list.BaseRankListController LIZ() {
        /*
            r3 = this;
            com.bytedance.android.live.rank.impl.list.controller.child.list.WeeklyRankController r2 = new com.bytedance.android.live.rank.impl.list.controller.child.list.WeeklyRankController
            r1 = r3
            com.bytedance.android.live.rank.impl.list.controller.child.RankRegionController r0 = r3.LIZLLL()
            r2.<init>(r1, r0)
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.android.live.rank.impl.list.fragment.list.WeeklyRankFragment.LIZ():com.bytedance.android.live.rank.impl.list.controller.child.list.BaseRankListController");
    }

    public /* synthetic */ WeeklyRankFragment(byte b) {
        this();
    }

    public final void LIZ(int i) {
        ((RelativeLayout) LIZIZ(2131370080)).setOnClickListener(new AnonymousClass13Y(this, i));
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.bytedance.android.live.rank.impl.list.fragment.list.WeeklyRankFragment, com.bytedance.android.live.rank.impl.list.fragment.list.RankBaseFragment, androidx.fragment.app.Fragment] */
    public final void LIZ(FkL fkL) {
        M12.LIZ(fkL);
        Class<C37511eH> cls = C37511eH.class;
        DataChannel LIZ2 = GSF.LIZ(this);
        if (LIZ2 == null) {
            n.LIZIZ();
        }
        fkL.LIZ(cls, new C37721ec(LIZ2, this.LJIIJ));
        fkL.LIZ(C37501eG.class, new C37701ea());
        Class<C37491eF> cls2 = C37491eF.class;
        DataChannel LIZ3 = GSF.LIZ(this);
        if (LIZ3 == null) {
            n.LIZIZ();
        }
        fkL.LIZ(cls2, new C37641eU(LIZ3, this.LJIIJ));
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [X.0CH] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onViewCreated(android.view.View r4, android.os.Bundle r5) {
        /*
            r3 = this;
            X.M12.LIZ(r4)
            super.onViewCreated(r4, r5)
            com.bytedance.android.live.rank.impl.list.controller.child.list.BaseRankListController r0 = r3.LJFF()
            com.bytedance.android.live.rank.impl.list.vm.list.BaseRankListViewModel r0 = r0.LJ()
            com.bytedance.android.live.rank.impl.list.vm.list.WeeklyRankViewModel r0 = (com.bytedance.android.live.rank.impl.list.vm.list.WeeklyRankViewModel) r0
            X.1Bn<com.bytedance.android.livesdk.rank.list.model.WeeklyRankRegionInfo> r2 = r0.LJII
            r1 = r3
            X.1em r0 = new X.1em
            r0.<init>(r3)
            r2.observe(r1, r0)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.android.live.rank.impl.list.fragment.list.WeeklyRankFragment.onViewCreated(android.view.View, android.os.Bundle):void");
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        C263813k.LIZIZ.put(GpC.WEEKLY_RANK.getType(), false);
        if (this.LJ != null) {
            return this.LJ;
        }
        View LIZ2 = AnonymousClass0HH.LIZ(layoutInflater, 2131561904, viewGroup, false);
        this.LJ = LIZ2;
        return LIZ2;
    }
}
