package com.scb.phone.view.custom.ntb; import android.app.Dialog; import android.content.Context; import android.text.TextUtils; import android.view.MotionEvent; import android.view.View; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.TextView; import butterknife.BindView; import com.squareup.picasso.Picasso; import o.dGK; /* loaded from: classes5.dex */ public class NTBAdsDialog extends Dialog implements View.OnTouchListener { private final String a; private final String b; private final String c; private final String d; @BindView CheckBox darkCheckBox; @BindView TextView doNotShowTextView; public final String e; private final RVV i; @BindView public ImageView ivAdsImage; @BindView public ImageView ivClose; private boolean j; @BindView CheckBox lightCheckBox; /* loaded from: classes5.dex */ public interface RVV { void c(String str); void d(); void e(String str); void e(dGK dgk); } public NTBAdsDialog(Context context, String str, String str2, String str3, String str4, String str5, RVV rvv) { super(context); this.e = str; this.c = str2; this.a = str3; this.d = str4; this.b = str5; this.i = rvv; } @Override // android.view.View.OnTouchListener public boolean onTouch(View view, MotionEvent motionEvent) { if (motionEvent.getAction() != 4) { return false; } dismiss(); return true; } public static /* synthetic */ void d(NTBAdsDialog nTBAdsDialog) { if (nTBAdsDialog.lightCheckBox.isChecked() || nTBAdsDialog.darkCheckBox.isChecked()) { nTBAdsDialog.i.c(nTBAdsDialog.a); } nTBAdsDialog.j = false; nTBAdsDialog.i.e(new dGK(nTBAdsDialog.b, "close_ad", String.valueOf(nTBAdsDialog.lightCheckBox.isChecked() || nTBAdsDialog.darkCheckBox.isChecked()), nTBAdsDialog.a)); Picasso d = Picasso.d(); ImageView imageView = nTBAdsDialog.ivAdsImage; if (imageView == null) { throw new IllegalArgumentException("view cannot be null."); } d.e(imageView); } public static /* synthetic */ void c(NTBAdsDialog nTBAdsDialog) { if (TextUtils.isEmpty(nTBAdsDialog.d) || !nTBAdsDialog.d.contains("://")) { return; } if (!nTBAdsDialog.j) { boolean z = true; nTBAdsDialog.j = true; RVV rvv = nTBAdsDialog.i; String str = nTBAdsDialog.b; if (!nTBAdsDialog.lightCheckBox.isChecked() && !nTBAdsDialog.darkCheckBox.isChecked()) { z = false; } rvv.e(new dGK(str, "click_link", String.valueOf(z), nTBAdsDialog.a)); } nTBAdsDialog.dismiss(); String str2 = nTBAdsDialog.d; if (str2.startsWith("scbeasy://external") || str2.startsWith("scbeasy://webview")) { nTBAdsDialog.i.e(nTBAdsDialog.d); } } }