package o;

import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class BM extends Sb0 implements SC {
    public final /* synthetic */ ProgressBar p;
    public final /* synthetic */ Button q;
    public final /* synthetic */ boolean r;
    public final /* synthetic */ TextView s;
    public final /* synthetic */ CM t;
    public final /* synthetic */ C2868x10 u;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public BM(ProgressBar progressBar, Button button, boolean z, TextView textView, CM cm, C2868x10 c2868x10, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.p = progressBar;
        this.q = button;
        this.r = z;
        this.s = textView;
        this.t = cm;
        this.u = c2868x10;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((BM) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        return new BM(this.p, this.q, this.r, this.s, this.t, this.u, interfaceC0220Im);
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        IJ.H(obj);
        this.p.setVisibility(8);
        this.q.setEnabled(true);
        boolean z = this.r;
        CM cm = this.t;
        TextView textView = this.s;
        if (z) {
            textView.setText("✅ پرداخت تایید شد!");
            textView.setTextColor(-11751600);
            return Boolean.valueOf(cm.d.postDelayed(new RunnableC3087zM(cm, 1), 2500L));
        }
        textView.setText("❌ پرداخت تایید نشد\n\nمبلغ واریزی: " + cm.g.format(this.u.l) + " TRX");
        textView.setTextColor(-44462);
        return Oh0.a;
    }
}
