package com.ss.android.ugc.aweme.profile.widgets;

import X.0CB;
import X.0CH;
import X.2GO;
import X.2Pr;
import X.3p3;
import X.3x6;
import X.6Is;
import X.B3B;
import X.B3C;
import X.Bb8;
import X.BbA;
import X.C1334DVi;
import X.C3750EQg;
import X.C3751EQh;
import X.C3752EQi;
import X.C3762EQs;
import X.C3765EQv;
import X.C3769EQz;
import X.C3772ERc;
import X.C3783ERn;
import X.C3973EYv;
import X.C3974EYw;
import X.D0R;
import X.EQW;
import X.ER0;
import X.ER1;
import X.ER2;
import X.ER3;
import X.ERA;
import X.ERB;
import X.ERF;
import X.ERS;
import X.Ls2;
import X.M12;
import X.SfZ;
import X.T0S;
import android.text.TextUtils;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.profile.viewmodel.MyProfileGuideState;
import com.ss.android.ugc.aweme.profile.viewmodel.ProfileState;
import kotlin.h.b.n;

public final class MyProfileGuideWidgetV2 extends BaseMyProfileGuideWidget implements 6Is, 3x6, 2GO {
    public BbA<Bb8<3p3>, 3x6> LJIIZILJ;

    static {
        Covode.recordClassIndex(99717);
    }

    public final void LIZ(Exception exc) {
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.profile.widgets.MyProfileGuideWidgetV2, com.bytedance.widget.Widget, com.ss.android.ugc.aweme.profile.widgets.BaseMyProfileGuideWidget] */
    public final void LJII() {
        MyProfileGuideWidgetV2.super.LJII();
        if (!SfZ.LJIIJJI) {
            LJIIZILJ();
        }
    }

    public final void LJIIIIZZ() {
        super.LJIIIIZZ();
        BbA<Bb8<3p3>, 3x6> bbA = this.LJIIZILJ;
        if (bbA != null) {
            bbA.do_();
        }
    }

    public final void LJFF() {
        super.LJFF();
        if (LJIILIIL().getVisibility() == 0 && EQW.LJFF.LIZLLL()) {
            LJIILIIL().setVisibility(8);
        }
    }

    public final void LIZLLL() {
        super.LIZLLL();
        BbA<Bb8<3p3>, 3x6> providePushSettingFetchPresenter = T0S.LIZ.providePushSettingFetchPresenter();
        this.LJIIZILJ = providePushSettingFetchPresenter;
        if (providePushSettingFetchPresenter == null) {
            n.LIZIZ();
        }
        providePushSettingFetchPresenter.a_(this);
        BbA<Bb8<3p3>, 3x6> bbA = this.LJIIZILJ;
        if (bbA == null) {
            n.LIZIZ();
        }
        bbA.LIZ(new Object[0]);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public MyProfileGuideWidgetV2(ViewGroup viewGroup) {
        super(viewGroup);
        M12.LIZ(viewGroup);
    }

    public final void LIZ(3p3 r4) {
        if (r4 != null && r4.LJJIIJ == 1) {
            LJIJJ().LIZJ(new C1334DVi(r4.LJJIII));
        }
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.DV1] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ(X.ES7 r8) {
        /*
            r7 = this;
            com.ss.android.ugc.aweme.profile.viewmodel.ProfileViewModel r1 = r7.LJIJJ()
            X.PHD r2 = X.C2976DyW.LIZ
            X.PHD r3 = X.ERZ.LIZ
            X.PHD r4 = X.C2979DyZ.LIZ
            X.PHD r5 = X.C2981Dyb.LIZ
            X.EQr r6 = new X.EQr
            r6.<init>(r7, r8)
            r0 = r7
            X.2cN unused = r0.selectSubscribe(r1, r2, r3, r4, r5, X.DUS.LIZ(), r6)
            X.EQV r0 = X.EQV.LIZ
            r0.LIZ()
            r0 = 1
            X.EQW.LIZLLL = r0
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.profile.widgets.MyProfileGuideWidgetV2.LIZ(X.ES7):void");
    }

    public final D0R<Boolean, Boolean, Ls2<2Pr>>[] LIZ(ProfileState profileState, MyProfileGuideState myProfileGuideState) {
        boolean z;
        boolean z2;
        boolean z3;
        boolean z4;
        M12.LIZ(profileState, myProfileGuideState);
        D0R<Boolean, Boolean, Ls2<2Pr>>[] d0rArr = new D0R[15];
        boolean z5 = true;
        d0rArr[0] = new D0R<>(true, Boolean.valueOf(LIZ(profileState)), new C3751EQh(this));
        d0rArr[1] = new D0R<>(true, Boolean.valueOf(LIZIZ(profileState)), new C3750EQg(this));
        ERF LIZ = ERS.LIZ();
        if (LIZ != null && !TextUtils.isEmpty(LIZ.getLandingPageSchema())) {
            z = true;
        } else {
            z = false;
        }
        d0rArr[2] = new D0R<>(true, Boolean.valueOf(z), new C3762EQs(this));
        d0rArr[3] = new D0R<>(true, Boolean.valueOf(C3974EYw.LIZ.needShowSafeInfoNotice()), new C3752EQi(this));
        d0rArr[4] = new D0R<>(true, Boolean.valueOf(C3772ERc.LIZ), new ER1(this));
        d0rArr[5] = new D0R<>(true, Boolean.valueOf(LIZ(myProfileGuideState)), new ER3(this, profileState, myProfileGuideState));
        M12.LIZ(myProfileGuideState, profileState);
        if (!myProfileGuideState.getNeedCheckI18nRecommendUserDialog() || !n.LIZ(profileState.getFrom(), "from_main") || !C3974EYw.LIZ.shouldShowI18nRecommendUserDialogOnMyPrifile()) {
            z2 = false;
        } else {
            z2 = true;
        }
        d0rArr[6] = new D0R<>(true, Boolean.valueOf(z2), B3C.LIZ);
        d0rArr[7] = new D0R<>(true, Boolean.valueOf(LIZJ(profileState)), new C3765EQv(this));
        d0rArr[8] = new D0R<>(true, Boolean.valueOf(LIZLLL(profileState)), new ERB(this));
        d0rArr[9] = new D0R<>(Boolean.valueOf(myProfileGuideState.getPostListHasLoaded()), Boolean.valueOf(LJIIIIZZ(profileState)), new C3769EQz(this, myProfileGuideState));
        d0rArr[10] = new D0R<>(true, Boolean.valueOf(LJI(profileState)), new B3B(this));
        d0rArr[11] = new D0R<>(true, Boolean.valueOf(LJII(profileState)), new ERA(this));
        if (!myProfileGuideState.getPostListHasLoaded() || profileState.isPostGuideShow() == null) {
            z3 = false;
        } else {
            z3 = true;
        }
        d0rArr[12] = new D0R<>(Boolean.valueOf(z3), Boolean.valueOf(LJ(profileState)), new ER2(this));
        d0rArr[13] = new D0R<>(Boolean.valueOf(myProfileGuideState.getHasSurveyDetermined()), Boolean.valueOf(LIZIZ(profileState, myProfileGuideState)), new C3783ERn(this));
        if (myProfileGuideState.getNeedShowDiskManagerGuide() != null) {
            z4 = true;
        } else {
            z4 = false;
        }
        Boolean valueOf = Boolean.valueOf(z4);
        M12.LIZ(profileState, myProfileGuideState);
        if (!n.LIZ(profileState.getFrom(), "from_main") || !C3973EYv.LIZ.isEnableSettingDiskManager() || !n.LIZ(myProfileGuideState.getNeedShowDiskManagerGuide(), true)) {
            z5 = false;
        }
        d0rArr[14] = new D0R<>(valueOf, Boolean.valueOf(z5), new ER0(this));
        return d0rArr;
    }
}
