package com.bytedance.sdk.openadsdk.activity.single;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import androidx.annotation.Nullable;
import com.bytedance.sdk.component.utils.maa;
import com.bytedance.sdk.component.utils.mq;
import com.bytedance.sdk.openadsdk.activity.single.ro;
import com.bytedance.sdk.openadsdk.common.irt;
import com.bytedance.sdk.openadsdk.component.reward.fm.ku;
import com.bytedance.sdk.openadsdk.core.gof;
import com.bytedance.sdk.openadsdk.core.model.ai;
import com.bytedance.sdk.openadsdk.core.model.lse;
import com.bytedance.sdk.openadsdk.core.model.wey;
import com.bytedance.sdk.openadsdk.core.widget.ro;
import com.bytedance.sdk.openadsdk.utils.bx;
import java.util.Objects;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public class jnr extends wu implements mq.fm {
    private static String jnr;
    private static String maa;
    private static String sds;
    private static String wey;
    private static String yz;
    private JSONObject ai;
    public boolean fm;
    private long gzf;
    private ro.jnr hi;
    private int hlt;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    @Nullable
    protected com.bytedance.sdk.openadsdk.component.reward.ro.ro f6785lb;
    private Bundle lse;
    private boolean mq;
    private boolean nt;
    private int ol;
    protected final mq ro;
    private boolean wbw;

    public jnr(ro roVar, lse lseVar, int i10, int i11, boolean z10, boolean z11, boolean z12) {
        super(roVar, lseVar, i10, i11, z11);
        this.ro = new mq(Looper.getMainLooper(), this);
        this.hlt = 0;
        this.wbw = true;
        this.irt = z10;
        this.dsz = roVar.jnr();
        this.fm = z12;
        fm(lseVar, this.lse);
    }

    private void ai() {
        if (this.nt) {
            return;
        }
        this.nt = true;
        if (this.dsz) {
            this.wsy.fm(fm(), xgn());
        } else {
            this.wsy.fm(fm());
        }
        this.f6785lb.hlt();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void aws() {
        ro.jnr jnrVar = new ro.jnr(7, this.f6801ef);
        jnrVar.yz = this.f6801ef.f6943qf;
        this.wsy.ro(this, jnrVar);
    }

    private void gzf() {
        if (this.mq) {
            return;
        }
        this.mq = true;
        if (!this.fm) {
            this.f6801ef.lcp = this.wsy.hlt();
        }
        this.f6801ef.f6937gc.fm(this.f6785lb);
        this.f6785lb.fm(this, this.ro);
        this.f6785lb.vt();
    }

    private void rka() {
        try {
            gzf();
        } catch (Throwable unused) {
            lz();
        }
        ai();
        if (!wey.wsy(this.ajl) || this.fm) {
            return;
        }
        ywr();
    }

    private boolean so() {
        if (this.ajl.ajl()) {
            return this.f6801ef.f6936ef.get();
        }
        return true;
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void a_() {
        ro roVar = this.wsy;
        if (roVar != null && roVar.lb()) {
            super.a_();
            return;
        }
        final View viewVt = this.f6801ef.hxv.vt();
        if (viewVt != null) {
            View.OnClickListener onClickListener = new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.1
                @Override // android.view.View.OnClickListener
                public void onClick(View view) {
                    if (jnr.this.f6801ef.ol.wey()) {
                        boolean zDsz = jnr.this.f6801ef.wbw.dsz();
                        jnr.this.f6801ef.ol.ajl(zDsz);
                        jnr.this.f6801ef.hxv.ajl(8);
                        View view2 = viewVt;
                        if (view2 instanceof com.bytedance.sdk.openadsdk.core.ajl.yz) {
                            ((com.bytedance.sdk.openadsdk.core.ajl.yz) view2).setImageResource(maa.yz(jnr.this.f6801ef.bx, "tt_close_btn"));
                        }
                        jnr.this.f6801ef.zan.sendEmptyMessageDelayed(600, 5000L);
                        if (!lse.lb(jnr.this.f6801ef.ro)) {
                            return;
                        }
                        if (lse.lb(jnr.this.f6801ef.ro) && zDsz) {
                            return;
                        }
                    }
                    jnr.this.f6801ef.ol.sds();
                    jnr.this.f6801ef.wbw.ku();
                    jnr.this.f6801ef.nt.ajl();
                    if (ai.yz(jnr.this.f6801ef.ro) && jnr.this.fm(true, true, (Runnable) null)) {
                        return;
                    }
                    jnr.this.lz();
                }
            };
            viewVt.setOnClickListener(onClickListener);
            viewVt.setTag(viewVt.getId(), onClickListener);
        }
        this.f6801ef.f6938ha.fm(new com.bytedance.sdk.openadsdk.component.reward.top.ro() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.2
            @Override // com.bytedance.sdk.openadsdk.component.reward.top.ro
            public void fm(View view) {
                jnr jnrVar = jnr.this;
                if (jnrVar.fm(ai.lb(jnrVar.f6801ef.ro), false, (Runnable) null) || jnr.this.wu()) {
                    return;
                }
                if (!ai.jnr(jnr.this.f6801ef.ro)) {
                    if (!wey.fm(jnr.this.f6801ef.ro) || jnr.this.f6801ef.dsz.get()) {
                        jnr.this.lz();
                        return;
                    } else {
                        jnr.this.lz();
                        return;
                    }
                }
                if (ai.wu(jnr.this.f6801ef.ro)) {
                    jnr.this.f6801ef.lse.ef();
                    return;
                }
                View view2 = viewVt;
                if (view2 != null) {
                    view2.performClick();
                } else {
                    jnr.this.lz();
                }
            }

            @Override // com.bytedance.sdk.openadsdk.component.reward.top.ro
            public void lb(View view) {
                View view2 = viewVt;
                if (view2 != null) {
                    view2.performClick();
                }
            }

            @Override // com.bytedance.sdk.openadsdk.component.reward.top.ro
            public void ro(View view) {
                jnr.this.e_();
            }

            @Override // com.bytedance.sdk.openadsdk.component.reward.top.ro
            public void yz(View view) {
                jnr jnrVar = jnr.this;
                jnrVar.ro(jnrVar.f6801ef);
            }

            @Override // com.bytedance.sdk.openadsdk.component.reward.top.ro
            public void fm(View view, String str) {
                jnr.this.fm(str);
            }
        });
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public boolean b_() {
        return true;
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public boolean c_() {
        return this.f6801ef.yz;
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public String d_() {
        return this.f6801ef.jnr;
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public final void dsz() {
        super.dsz();
        if (this.f6801ef == null || com.bytedance.sdk.component.utils.ro.fm(tzk())) {
            return;
        }
        this.f6801ef.ol.hi();
        com.bytedance.sdk.openadsdk.utils.yz.fm(tzk(), this.f6801ef.ro);
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void duv() {
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void e_() {
        this.f6801ef.gzf.fm(this.f6785lb);
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public boolean f_() {
        return this.f6801ef.f6943qf;
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public final void fhx() {
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public boolean fm(long j10, boolean z10) {
        return false;
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void gqi() {
        super.gqi();
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar = this.f6785lb;
        if (roVar == null) {
            return;
        }
        roVar.gqi();
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public com.bytedance.sdk.openadsdk.component.reward.fm.ro hlt() {
        return this.f6801ef;
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public final View irt() {
        return null;
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void jnr() {
        com.bytedance.sdk.component.utils.wey.fm("TTAD.EndCardScene", "onPlayableLoadingDismiss()---" + this.vt + ",scene = " + this);
        ro roVar = this.wsy;
        if (roVar != null) {
            roVar.fm(this);
        }
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public final void ku() {
        if (this.wsy == null) {
            return;
        }
        this.f6801ef.pkk.fm(this.hi.fm.getBoolean("isSkip", false), this.hi.fm.getBoolean("force", false), this.hi.fm.getBoolean("isFromLandingPage", false), this.f6785lb, this.hi.ro);
    }

    public boolean lse() {
        return this.f6801ef.ol.mq();
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public boolean maa() {
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar = this.f6801ef;
        return roVar != null && roVar.sds.pkk();
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void ol() {
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public final void onz() {
        super.onz();
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar = this.f6785lb;
        if (roVar == null) {
            return;
        }
        roVar.qhl();
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void qhl() {
        kwx();
    }

    public void sds() {
        if (xgn()) {
            return;
        }
        ro.jnr jnrVar = new ro.jnr(8, this.f6801ef);
        jnrVar.yz = this.f6801ef.f6943qf;
        ro roVar = this.wsy;
        if (roVar != null) {
            roVar.fm(this, jnrVar);
        }
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void wey() {
        super.wey();
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar = this.f6785lb;
        if (roVar != null) {
            roVar.wey();
        }
    }

    public boolean wu() {
        ro roVar;
        if (this.fm || (roVar = this.wsy) == null || !roVar.wey()) {
            return false;
        }
        try {
            com.bytedance.sdk.openadsdk.yz.lb.fm(System.currentTimeMillis(), this.ajl, this.f6801ef.jnr, "skip", new com.bytedance.sdk.openadsdk.irt.ro.fm() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.3
                @Override // com.bytedance.sdk.openadsdk.irt.ro.fm, com.bytedance.sdk.openadsdk.irt.ro.ro
                public JSONObject fm() {
                    if (jnr.this.ai != null) {
                        try {
                            JSONObject jSONObject = new JSONObject();
                            jSONObject.put("scene_type", jnr.this.f6801ef.fm);
                            return jSONObject;
                        } catch (Throwable unused) {
                        }
                    }
                    return null;
                }

                @Override // com.bytedance.sdk.openadsdk.irt.ro.fm, com.bytedance.sdk.openadsdk.irt.ro.ro
                public JSONObject ro() {
                    JSONObject jSONObject = new JSONObject();
                    try {
                        jSONObject.put("duration", jnr.this.gzf);
                        jSONObject.put("percent", jnr.this.ol);
                    } catch (Throwable unused) {
                    }
                    return jSONObject;
                }
            });
        } catch (Throwable unused) {
        }
        this.wsy.fm(this, true, false, false, 4);
        return true;
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void yz(boolean z10) {
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public final void lb() {
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar;
        super.lb();
        if (this.f6801ef == null || (roVar = this.f6785lb) == null) {
            return;
        }
        roVar.fhx();
        this.f6801ef.si = true;
        if (so()) {
            com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar2 = this.f6801ef;
            roVar2.f6938ha.fm(roVar2.ro.qvb());
        }
        this.f6801ef.hxv.irt();
        this.f6801ef.ol.qhl();
        this.f6801ef.lse.jnr();
        if (this.f6785lb.ro()) {
            this.f6801ef.sds.fm(this.f6785lb);
            this.f6801ef.sds.fm(false, this, this.hlt != 0);
        }
        this.hlt++;
        com.bytedance.sdk.openadsdk.component.reward.view.ef efVar = this.f6801ef.hlt;
        if (efVar != null) {
            efVar.wsy();
        }
        this.f6801ef.hi.fm(this.ro);
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void ro(boolean z10) {
        if (!z10 || this.f6801ef.pbk) {
            return;
        }
        kwx();
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void yz() {
        super.yz();
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar = this.f6785lb;
        if (roVar == null) {
            return;
        }
        roVar.gof();
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public final void fm(Activity activity, Bundle bundle) {
        this.lse = bundle;
        super.fm(activity, bundle);
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public final com.bytedance.sdk.openadsdk.component.reward.view.wu fm() {
        return this.f6801ef.f6937gc;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r3v11 */
    /* JADX WARN: Type inference failed for: r3v12, types: [int] */
    /* JADX WARN: Type inference failed for: r3v33 */
    /* JADX WARN: Type inference failed for: r4v2, types: [com.bytedance.sdk.openadsdk.core.model.lse] */
    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void fm(Activity activity, ro.jnr jnrVar) {
        ro roVar;
        ro roVar2;
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar3;
        this.hi = jnrVar;
        Intent intent = activity.getIntent();
        this.fhx = intent.getStringExtra("media_extra");
        this.onz = intent.getStringExtra("user_id");
        try {
            if (sds == null) {
                sds = maa.fm(this.f6801ef.bx, "tt_reward_msg");
                yz = maa.fm(this.f6801ef.bx, "tt_msgPlayable");
                wey = maa.fm(this.f6801ef.bx, "tt_negtiveBtnBtnText");
                maa = maa.fm(this.f6801ef.bx, "tt_postiveBtnText");
                jnr = maa.fm(this.f6801ef.bx, "tt_postiveBtnTextPlayable");
            }
        } catch (Throwable th) {
            com.bytedance.sdk.component.utils.wey.lb("TTAD.EndCardScene", th.getMessage());
        }
        if (jnrVar != null && (roVar3 = jnrVar.f6792lb) != null) {
            com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar4 = this.f6801ef;
            roVar4.ado = roVar3.ado;
            roVar4.f6943qf = roVar3.f6943qf;
            if ((this.dsz || this.irt) && !xgn()) {
                this.f6801ef.ku.set(roVar3.ku.get());
            }
            this.f6801ef.sds.fm(roVar3.sds.jnr());
            fm(this.f6801ef, roVar3);
        }
        if (this.dsz || this.irt) {
            try {
                gzf();
            } catch (Throwable unused) {
                lz();
            }
        }
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar5 = this.f6801ef;
        if (roVar5 != null && (roVar2 = this.wsy) != null) {
            roVar5.f6942qb = roVar2.fm;
        }
        ai();
        a_();
        ku();
        if (!this.fm || (roVar = this.wsy) == null || roVar.fm() == null) {
            return;
        }
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar6 = this.f6801ef;
        this.wsy.fm().jnr(roVar6 != null ? roVar6.f6936ef.get() : -1);
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void lb(boolean z10) {
        ku kuVar;
        long j10 = this.wbw ? this.f6801ef.ado : 0L;
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar = this.f6801ef;
        if (roVar != null && (kuVar = roVar.nt) != null) {
            kuVar.ro(z10);
            this.f6801ef.nt.lb(z10);
            if (z10 && j10 > 0) {
                this.f6801ef.ado = j10;
            }
        }
        if (z10) {
            this.wbw = false;
        }
    }

    private void fm(com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar, com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar2) {
        if (!this.dsz || xgn() || roVar == null || roVar2 == null) {
            return;
        }
        try {
            this.gzf = roVar2.sds.onz();
            if (this.ajl.bkb()) {
                this.gzf = roVar2.ajl();
            }
            this.ol = roVar2.sds.hlt();
            this.ai = bx.fm(this.ajl, roVar2.sds.qhl(), roVar2.sds.gof());
        } catch (Throwable unused) {
        }
    }

    private void fm(lse lseVar, Bundle bundle) {
        Activity activityTzk = tzk();
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar = new com.bytedance.sdk.openadsdk.component.reward.fm.ro(activityTzk, this.ro, lseVar, this, 2, this.wsy.ro());
        this.f6801ef = roVar;
        roVar.f6944te = this.irt;
        boolean z10 = this.fm;
        roVar.xca = z10;
        roVar.ttj = roVar.pbk && !z10;
        roVar.pbk = this.wsy.ajl();
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar2 = this.f6801ef;
        roVar2.jm = this.dsz;
        roVar2.no = this.wsy.yz();
        if (!this.fm) {
            this.f6801ef.lcp = this.wsy.hlt();
        }
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar3 = this.f6801ef;
        roVar3.zow = this;
        roVar3.ai = this.wsy.maa();
        com.bytedance.sdk.openadsdk.component.reward.fm.lb.fm(this.f6801ef, activityTzk.getIntent(), bundle);
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVarFm = com.bytedance.sdk.openadsdk.component.reward.ro.ajl.fm(this.f6801ef);
        this.f6785lb = roVarFm;
        this.f6801ef.so = roVarFm;
        Objects.toString(roVarFm);
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void fm(String str) {
        this.f6801ef.f6943qf = !r0.f6943qf;
        StringBuilder sb = new StringBuilder("will set is Mute ");
        sb.append(this.f6801ef.f6943qf);
        sb.append(" mLastVolume=");
        sb.append(this.f6801ef.ai.fm());
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar = this.f6801ef;
        roVar.sds.fm(roVar.f6943qf, str);
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar2 = this.f6801ef;
        roVar2.ol.jnr(roVar2.f6943qf);
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar3 = this.f6801ef;
        roVar3.lse.ro(roVar3.f6943qf);
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void fm(Activity activity) {
        super.fm(activity);
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar = this.f6801ef;
        if (roVar == null) {
            return;
        }
        roVar.hi.fm();
    }

    @Override // com.bytedance.sdk.component.utils.mq.fm
    public final void fm(Message message) {
        com.bytedance.sdk.openadsdk.component.reward.ro.ro roVar = this.f6785lb;
        if (roVar == null) {
            return;
        }
        roVar.fm(message);
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void fm(String str, JSONObject jSONObject) {
        if (str == null || !"skipToNextAd".equals(str) || this.wsy == null || xgn()) {
            return;
        }
        ro roVar = this.wsy;
        if (roVar != null && roVar.hi() == null) {
            if (this.wsy.lb()) {
                irt irtVar = this.gqi;
                if (irtVar != null && irtVar.fm(ai.lb(this.f6801ef.ro), false, new Runnable() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.4
                    @Override // java.lang.Runnable
                    public void run() {
                        jnr.this.aws();
                    }
                })) {
                    return;
                }
            } else if (fm(ai.lb(this.f6801ef.ro), false, new Runnable() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.5
                @Override // java.lang.Runnable
                public void run() {
                    jnr.this.aws();
                }
            })) {
                return;
            }
        }
        aws();
    }

    @Override // com.bytedance.sdk.openadsdk.core.fhx.yz.ro
    public void fm(boolean z10) {
        ro roVar = this.wsy;
        if (roVar != null) {
            roVar.fm(this, z10);
        }
    }

    @Override // com.bytedance.sdk.openadsdk.activity.single.wu
    public void fm(wu wuVar, wu wuVar2, ro.jnr jnrVar) {
        com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar;
        super.fm(wuVar, wuVar2, jnrVar);
        com.bytedance.sdk.component.utils.wey.fm("TTAD.EndCardScene", "【onActiveSceneChanged】" + this.vt + ",scene = " + this + ",newScene = " + wuVar2 + ",oldScene = " + wuVar + ",isPlayable = " + this.irt);
        boolean z10 = this.vt == wuVar2.vt + 1;
        if (wuVar != null && (roVar = this.f6801ef) != null) {
            roVar.f6943qf = jnrVar.yz;
        }
        if (z10) {
            com.bytedance.sdk.component.utils.wey.fm("TTAD.EndCardScene", "preload index =" + this.vt + ",new index =" + wuVar2.vt + ",isPlayableProxy = " + this.irt);
            rka();
        }
        if (wuVar == null && this.fm) {
            com.bytedance.sdk.component.utils.wey.fm("TTAD.EndCardScene", "preload agg-endcard =" + this.vt + ",new index =" + wuVar2.vt + ",isPlayableProxy = " + this.irt);
            rka();
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public boolean fm(final boolean z10, boolean z11, final Runnable runnable) {
        if (!this.f6801ef.yz || this.wsy.qhl()) {
            return false;
        }
        if (!z11 && this.wsy.dsz()) {
            return false;
        }
        if (!gof.yz().wu(String.valueOf(this.f6801ef.ajl))) {
            if (!z11) {
                return false;
            }
            if (runnable == null && z10) {
                lz();
                return true;
            }
        }
        this.f6801ef.qhl.set(true);
        if (z10) {
            this.f6801ef.lse.ajl();
        }
        final com.bytedance.sdk.openadsdk.core.widget.ro roVar = new com.bytedance.sdk.openadsdk.core.widget.ro(this.f6801ef.xgn);
        this.f6785lb.duv = roVar;
        if (z10) {
            roVar.fm(yz).lb(jnr).yz(wey);
        } else {
            roVar.fm(sds).lb(maa).yz(wey);
        }
        this.f6785lb.duv.fm(new ro.InterfaceC0087ro() { // from class: com.bytedance.sdk.openadsdk.activity.single.jnr.6
            @Override // com.bytedance.sdk.openadsdk.core.widget.ro.InterfaceC0087ro
            public void fm() {
                if (z10) {
                    jnr.this.f6801ef.lse.fm(1000);
                }
                roVar.dismiss();
                jnr.this.f6801ef.qhl.set(false);
            }

            @Override // com.bytedance.sdk.openadsdk.core.widget.ro.InterfaceC0087ro
            public void ro() {
                roVar.dismiss();
                jnr.this.wsy.ro(true);
                jnr.this.f6801ef.qhl.set(false);
                jnr.this.f6801ef.lse.ro(Integer.MAX_VALUE);
                Runnable runnable2 = runnable;
                if (runnable2 != null) {
                    runnable2.run();
                } else if (!z10) {
                    jnr.this.wu();
                } else {
                    jnr.this.f6801ef.nt.ajl();
                    jnr.this.lz();
                }
            }
        }).show();
        return true;
    }
}
