package com.ss.android.ugc.aweme.im.sdk.group.feature.selector.ui.fragment;

import X.0HH;
import X.A7H;
import X.AnonymousClass2HN;
import X.AoK;
import X.BDb;
import X.C67304te;
import X.C67434tr;
import X.C67694uH;
import X.C67704uI;
import X.C67714uJ;
import X.C67724uK;
import X.Csa;
import X.Css;
import X.Csw;
import X.Csy;
import X.D1G;
import X.IxD;
import X.KEM;
import X.M12;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.fragment.AmeBaseFragment;
import com.ss.android.ugc.aweme.im.sdk.group.feature.selector.viewmodel.ContactListViewModel;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import kotlin.h.b.n;

public final class GroupMemberSelectFragment extends AmeBaseFragment {
    public static final C67724uK LIZIZ = new C67724uK((byte) 0);
    public C67434tr LIZ;
    public final Csa LIZJ;
    public HashMap LIZLLL;

    static {
        Covode.recordClassIndex(86461);
    }

    public final /* synthetic */ void onDestroyView() {
        GroupMemberSelectFragment.super.onDestroyView();
        HashMap hashMap = this.LIZLLL;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    public GroupMemberSelectFragment() {
        Csa csa;
        Csy csy = Csy.LIZ;
        D1G LIZ2 = KEM.LIZ.LIZ(ContactListViewModel.class);
        C67704uI r4 = new C67704uI(LIZ2);
        C67714uJ r9 = C67714uJ.INSTANCE;
        if (n.LIZ(csy, Csw.LIZ)) {
            csa = new Csa(LIZ2, r4, Css.LIZ, AoK.LIZ(this, true), AoK.LIZ(this, true), A7H.LIZ, r9, AoK.LIZ(this, true), AoK.LIZIZ(this, true));
        } else if (csy != null && !n.LIZ(csy, Csy.LIZ)) {
            throw new IllegalArgumentException("Do not support this scope here.");
        } else {
            csa = new Csa(LIZ2, r4, Css.LIZ, AoK.LIZ(this, false), AoK.LIZ(this, false), A7H.LIZ, r9, AoK.LIZ(this, false), AoK.LIZIZ(this, false));
        }
        this.LIZJ = csa;
    }

    public final void onCreate(Bundle bundle) {
        Serializable serializable;
        GroupMemberSelectFragment.super.onCreate(bundle);
        Bundle arguments = getArguments();
        if (arguments != null) {
            serializable = arguments.getSerializable("init_config");
        } else {
            serializable = null;
        }
        C67434tr r0 = (C67434tr) serializable;
        if (r0 == null) {
            r0 = new C67434tr((Collection) null, (Collection) null, (C67694uH) null, (String) null, 15, (AnonymousClass2HN) null);
        }
        this.LIZ = r0;
    }

    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        GroupMemberSelectFragment.super.onViewCreated(view, bundle);
        ((ContactListViewModel) this.LIZJ.getValue()).LIZJ().LJI();
        C67434tr r0 = this.LIZ;
        if (r0 == null) {
            n.LIZ("");
        }
        C67694uH entry = r0.getEntry();
        if (this.LIZLLL == null) {
            this.LIZLLL = new HashMap();
        }
        View view2 = (View) this.LIZLLL.get(2131371262);
        if (view2 == null) {
            View view3 = getView();
            if (view3 == null) {
                view2 = null;
            } else {
                view2 = view3.findViewById(2131371262);
                this.LIZLLL.put(2131371262, view2);
            }
        }
        IxD ixD = (IxD) view2;
        n.LIZIZ(ixD, "");
        entry.setupTitleBar(ixD, this);
        BDb.LIZ(this, new C67304te(this));
    }

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