package com.igaworks.ssp.common.j; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.content.res.ColorStateList; import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.drawable.GradientDrawable; import android.graphics.drawable.StateListDrawable; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.util.StateSet; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.AdapterView; import android.widget.EditText; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; import com.google.android.gms.ads.RequestConfiguration; import com.igaworks.ssp.R; import com.igaworks.ssp.common.n.a; import com.igaworks.ssp.common.o.k; import java.util.ArrayList; import java.util.regex.Pattern; /* loaded from: classes2.dex */ public class e extends Dialog { private String A; private Dialog B; private com.igaworks.ssp.common.j.a C; /* renamed from: a, reason: collision with root package name */ private Context f6637a; /* renamed from: b, reason: collision with root package name */ private LinearLayout f6638b; /* renamed from: c, reason: collision with root package name */ private LinearLayout f6639c; /* renamed from: d, reason: collision with root package name */ private boolean f6640d; /* renamed from: e, reason: collision with root package name */ private boolean f6641e; /* renamed from: f, reason: collision with root package name */ private GradientDrawable f6642f; /* renamed from: g, reason: collision with root package name */ private GradientDrawable f6643g; /* renamed from: h, reason: collision with root package name */ private GradientDrawable f6644h; /* renamed from: i, reason: collision with root package name */ private GradientDrawable f6645i; /* renamed from: j, reason: collision with root package name */ private GradientDrawable f6646j; /* renamed from: k, reason: collision with root package name */ private GradientDrawable f6647k; /* renamed from: l, reason: collision with root package name */ private StateListDrawable f6648l; /* renamed from: m, reason: collision with root package name */ private ColorStateList f6649m; /* renamed from: n, reason: collision with root package name */ private int f6650n; /* renamed from: o, reason: collision with root package name */ private ArrayList f6651o; /* renamed from: p, reason: collision with root package name */ private int f6652p; /* renamed from: q, reason: collision with root package name */ private LinearLayout f6653q; /* renamed from: r, reason: collision with root package name */ private LinearLayout f6654r; /* renamed from: s, reason: collision with root package name */ private LinearLayout f6655s; /* renamed from: t, reason: collision with root package name */ private EditText f6656t; /* renamed from: u, reason: collision with root package name */ private EditText f6657u; /* renamed from: v, reason: collision with root package name */ private EditText f6658v; /* renamed from: w, reason: collision with root package name */ private TextView f6659w; /* renamed from: x, reason: collision with root package name */ private TextView f6660x; /* renamed from: y, reason: collision with root package name */ private TextView f6661y; /* renamed from: z, reason: collision with root package name */ private TextView f6662z; class a implements View.OnClickListener { a() { } @Override // android.view.View.OnClickListener public void onClick(View view) { e.this.dismiss(); } } class b implements View.OnClickListener { b() { } @Override // android.view.View.OnClickListener public void onClick(View view) { e.this.dismiss(); } } class c implements View.OnClickListener { c() { } @Override // android.view.View.OnClickListener public void onClick(View view) { try { Intent intent = new Intent("android.intent.action.VIEW"); intent.setData(Uri.parse(com.igaworks.ssp.common.j.c.f6612a)); e.this.f6637a.startActivity(intent); } catch (Exception e10) { e10.printStackTrace(); } } } class d implements View.OnClickListener { d() { } @Override // android.view.View.OnClickListener public void onClick(View view) { e.this.h(); } } /* renamed from: com.igaworks.ssp.common.j.e$e, reason: collision with other inner class name */ class ViewOnClickListenerC0080e implements View.OnClickListener { ViewOnClickListenerC0080e() { } @Override // android.view.View.OnClickListener public void onClick(View view) { if (e.this.C == null || e.this.f6662z == null) { return; } e.this.C.setSelected(!e.this.C.isSelected()); if (e.this.C.isSelected()) { e.this.f6662z.setEnabled(true); } else { e.this.f6662z.setEnabled(false); } } } class f implements View.OnClickListener { f() { } @Override // android.view.View.OnClickListener public void onClick(View view) { e.this.f(); } } class g implements AdapterView.OnItemClickListener { g() { } @Override // android.widget.AdapterView.OnItemClickListener public void onItemClick(AdapterView adapterView, View view, int i10, long j10) { e.this.f6652p = i10; if (e.this.f6657u != null) { if (e.this.f6652p == e.this.f6651o.size() - 1) { e.this.f6657u.setText(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED); e.this.f6657u.setHint(com.igaworks.ssp.common.j.c.f6622k); e.this.f6657u.setEnabled(true); } else { e.this.f6657u.setText((CharSequence) e.this.f6651o.get(i10)); e.this.f6657u.setEnabled(false); } } e.this.B.dismiss(); } } class h implements com.igaworks.ssp.common.n.c { h() { } @Override // com.igaworks.ssp.common.n.c public void a(a.d dVar, String str, String str2, boolean z10) { try { e.this.a(); if (str != null && str.length() > 0) { try { if (str.contains("Success")) { new com.igaworks.ssp.common.j.b(e.this.f6637a).a(com.igaworks.ssp.common.j.c.f6629r + "\n" + com.igaworks.ssp.common.j.c.f6632u, 1); e.this.dismiss(); return; } } catch (Exception unused) { } } new com.igaworks.ssp.common.j.b(e.this.f6637a).a(com.igaworks.ssp.common.j.c.f6634w, 1); } catch (Exception e10) { e10.printStackTrace(); } } } public e(Context context, int i10, boolean z10, boolean z11, String str) { super(context, i10); this.f6652p = 0; this.f6637a = context; this.f6650n = i10; this.f6640d = z10; this.f6641e = z11; this.A = str; } private void b() { LinearLayout linearLayout = new LinearLayout(this.f6637a); this.f6638b = linearLayout; linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1)); this.f6638b.setOrientation(1); this.f6638b.addView(e()); this.f6638b.addView(d()); setContentView(this.f6638b); g(); } private FrameLayout d() { FrameLayout frameLayout = new FrameLayout(this.f6637a); frameLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1)); ScrollView scrollView = new ScrollView(this.f6637a); scrollView.setLayoutParams(new FrameLayout.LayoutParams(-1, -1)); scrollView.setFillViewport(true); LinearLayout linearLayout = new LinearLayout(this.f6637a); linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1)); linearLayout.setOrientation(1); linearLayout.setBackgroundColor(-1); linearLayout.setFocusable(true); linearLayout.setFocusableInTouchMode(true); linearLayout.setPadding(com.igaworks.ssp.common.o.e.a(this.f6637a, 8), com.igaworks.ssp.common.o.e.a(this.f6637a, 8), com.igaworks.ssp.common.o.e.a(this.f6637a, 8), 0); TextView textView = new TextView(this.f6637a); textView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2)); textView.setGravity(3); textView.setIncludeFontPadding(false); k.a(textView, com.igaworks.ssp.common.j.c.f6613b, 13, Color.parseColor("#181818"), null, 0, 1, TextUtils.TruncateAt.END, true); linearLayout.addView(textView); FrameLayout frameLayout2 = new FrameLayout(this.f6637a); LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2); layoutParams.topMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 12); layoutParams.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 8); frameLayout2.setLayoutParams(layoutParams); frameLayout2.setBackgroundDrawable(this.f6642f); frameLayout2.setPadding(com.igaworks.ssp.common.o.e.a(this.f6637a, 10), com.igaworks.ssp.common.o.e.a(this.f6637a, 10), com.igaworks.ssp.common.o.e.a(this.f6637a, 10), com.igaworks.ssp.common.o.e.a(this.f6637a, 10)); TextView textView2 = new TextView(this.f6637a); textView2.setLayoutParams(new FrameLayout.LayoutParams(-1, -2)); textView2.setGravity(19); k.a(textView2, com.igaworks.ssp.common.j.c.f6615d + "\n" + com.igaworks.ssp.common.j.c.f6616e + "\n" + com.igaworks.ssp.common.j.c.f6617f, 11, Color.parseColor("#919191"), null, 0, 0, TextUtils.TruncateAt.END, false); frameLayout2.addView(textView2); TextView textView3 = new TextView(this.f6637a); FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-1, -2); layoutParams2.gravity = 80; textView3.setLayoutParams(layoutParams2); textView3.setGravity(85); k.a(textView3, "..." + com.igaworks.ssp.common.j.c.f6618g + "", 11, Color.parseColor("#919191"), null, 0, 0, TextUtils.TruncateAt.END, false); frameLayout2.addView(textView3); textView3.setOnClickListener(new c()); linearLayout.addView(frameLayout2); this.f6639c = new LinearLayout(this.f6637a); this.f6639c.setLayoutParams(new LinearLayout.LayoutParams(-1, -2)); this.f6639c.setOrientation(1); this.f6659w = new TextView(this.f6637a); LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(-1, -2); layoutParams3.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 5); this.f6659w.setLayoutParams(layoutParams3); this.f6659w.setGravity(19); this.f6659w.setLineSpacing(com.igaworks.ssp.common.o.e.a(this.f6637a, 6), 1.0f); this.f6659w.setIncludeFontPadding(false); String str = com.igaworks.ssp.common.j.c.f6614c; if (this.f6640d) { str = str.replaceAll("\n", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED); } k.a(this.f6659w, str, 13, Color.parseColor("#181818"), null, 0, 0, TextUtils.TruncateAt.END, true); this.f6639c.addView(this.f6659w); this.f6654r = new LinearLayout(this.f6637a); LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(-1, com.igaworks.ssp.common.o.e.a(this.f6637a, 40)); layoutParams4.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 8); this.f6654r.setLayoutParams(layoutParams4); this.f6654r.setOrientation(0); this.f6656t = new EditText(this.f6637a); this.f6656t.setLayoutParams(new LinearLayout.LayoutParams(0, -1, 1.0f)); this.f6656t.setGravity(16); k.a(this.f6656t, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, 13, Color.parseColor("#919191"), null, 0, 1, TextUtils.TruncateAt.END, false); this.f6656t.setHint(com.igaworks.ssp.common.j.c.f6624m + com.igaworks.ssp.common.j.c.f6625n); this.f6656t.setHintTextColor(Color.parseColor("#919191")); this.f6656t.setBackgroundDrawable(this.f6646j); this.f6656t.setPadding(com.igaworks.ssp.common.o.e.a(this.f6637a, 10), 0, 0, 0); this.f6654r.addView(this.f6656t); TextView textView4 = new TextView(this.f6637a); textView4.setLayoutParams(new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 22), -1)); textView4.setGravity(17); k.a(textView4, "@", 13, Color.parseColor("#181818"), null, 0, 0, TextUtils.TruncateAt.END, false); this.f6654r.addView(textView4); LinearLayout linearLayout2 = new LinearLayout(this.f6637a); linearLayout2.setLayoutParams(new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 140), com.igaworks.ssp.common.o.e.a(this.f6637a, 40))); linearLayout2.setOrientation(0); linearLayout2.setGravity(17); linearLayout2.setBackgroundDrawable(this.f6647k); linearLayout2.setOnClickListener(new d()); this.f6657u = new EditText(this.f6637a); this.f6657u.setLayoutParams(new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 99), com.igaworks.ssp.common.o.e.a(this.f6637a, 39))); this.f6657u.setGravity(16); k.a(this.f6657u, com.igaworks.ssp.common.j.c.f6619h, 13, Color.parseColor("#919191"), null, 0, 1, TextUtils.TruncateAt.END, false); this.f6657u.setHint(com.igaworks.ssp.common.j.c.f6622k); this.f6657u.setBackgroundColor(Color.parseColor("#00000000")); this.f6657u.setHintTextColor(Color.parseColor("#919191")); this.f6657u.setPadding(com.igaworks.ssp.common.o.e.a(this.f6637a, 10), 0, 0, 0); linearLayout2.addView(this.f6657u); this.f6657u.setEnabled(false); ImageView imageView = new ImageView(this.f6637a); LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 11), com.igaworks.ssp.common.o.e.a(this.f6637a, 6)); layoutParams5.gravity = 17; layoutParams5.leftMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 15); layoutParams5.rightMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 15); imageView.setLayoutParams(layoutParams5); imageView.setImageResource(R.mipmap.igaw_ssp_dropdown_btn); imageView.setColorFilter(Color.parseColor("#1db7ff"), PorterDuff.Mode.MULTIPLY); linearLayout2.addView(imageView); this.f6654r.addView(linearLayout2); this.f6639c.addView(this.f6654r); this.f6658v = new EditText(this.f6637a); this.f6658v.setLayoutParams(new LinearLayout.LayoutParams(-1, com.igaworks.ssp.common.o.e.a(this.f6637a, 104))); this.f6658v.setGravity(3); k.a(this.f6658v, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, 13, Color.parseColor("#919191"), null, 0, 0, TextUtils.TruncateAt.END, false); this.f6658v.setHint(com.igaworks.ssp.common.j.c.f6626o); this.f6658v.setHintTextColor(Color.parseColor("#919191")); this.f6658v.setBackgroundDrawable(this.f6644h); this.f6658v.setPadding(com.igaworks.ssp.common.o.e.a(this.f6637a, 10), com.igaworks.ssp.common.o.e.a(this.f6637a, 13), 0, 0); this.f6639c.addView(this.f6658v); this.f6660x = new TextView(this.f6637a); LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(-2, -2); layoutParams6.topMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 10); layoutParams6.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 20); this.f6660x.setIncludeFontPadding(false); this.f6660x.setLayoutParams(layoutParams6); this.f6660x.setGravity(19); k.a(this.f6660x, com.igaworks.ssp.common.j.c.f6631t, 11, Color.parseColor("#919191"), null, 0, 0, TextUtils.TruncateAt.END, false); this.f6639c.addView(this.f6660x); this.f6661y = new TextView(this.f6637a); new LinearLayout.LayoutParams(-2, -2).bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 12); this.f6661y.setIncludeFontPadding(false); this.f6661y.setLayoutParams(layoutParams6); this.f6661y.setGravity(19); this.f6661y.setLineSpacing(com.igaworks.ssp.common.o.e.a(this.f6637a, 6), 1.0f); k.a(this.f6661y, com.igaworks.ssp.common.j.c.f6635x, 13, Color.parseColor("#8c8c8c"), null, 0, 0, TextUtils.TruncateAt.END, false); this.f6639c.addView(this.f6661y); this.f6655s = new LinearLayout(this.f6637a); LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams(-1, -1); layoutParams7.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 30); this.f6655s.setGravity(19); this.f6655s.setLayoutParams(layoutParams7); this.f6655s.setOrientation(0); this.C = new com.igaworks.ssp.common.j.a(this.f6637a); this.C.setLayoutParams(new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 30), com.igaworks.ssp.common.o.e.a(this.f6637a, 30))); this.C.setSelected(false); this.C.setOnClickListener(new ViewOnClickListenerC0080e()); TextView textView5 = new TextView(this.f6637a); LinearLayout.LayoutParams layoutParams8 = new LinearLayout.LayoutParams(0, -1, 1.0f); layoutParams8.leftMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 12); textView5.setLayoutParams(layoutParams8); textView5.setGravity(16); k.a(textView5, com.igaworks.ssp.common.j.c.f6636y, 13, Color.parseColor("#000000"), null, 0, 0, TextUtils.TruncateAt.END, false); this.f6655s.addView(this.C); this.f6655s.addView(textView5); this.f6639c.addView(this.f6655s); this.f6662z = new TextView(this.f6637a); LinearLayout.LayoutParams layoutParams9 = new LinearLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 150), com.igaworks.ssp.common.o.e.a(this.f6637a, 36)); layoutParams9.gravity = 1; layoutParams9.bottomMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 20); this.f6662z.setLayoutParams(layoutParams9); this.f6662z.setGravity(17); this.f6662z.setBackgroundDrawable(this.f6648l); k.a(this.f6662z, com.igaworks.ssp.common.j.c.f6627p, 14, -1, null, 0, 0, TextUtils.TruncateAt.END, false); this.f6662z.setOnClickListener(new f()); this.f6662z.setEnabled(false); this.f6662z.setTextColor(this.f6649m); this.f6639c.addView(this.f6662z); linearLayout.addView(this.f6639c); scrollView.addView(linearLayout); frameLayout.addView(scrollView); this.f6653q = new LinearLayout(this.f6637a); this.f6653q.setLayoutParams(new FrameLayout.LayoutParams(-1, -1)); this.f6653q.setOrientation(0); this.f6653q.setGravity(17); ProgressBar progressBar = new ProgressBar(this.f6637a, null, android.R.attr.progressBarStyleLarge); progressBar.setLayoutParams(new ViewGroup.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 50), com.igaworks.ssp.common.o.e.a(this.f6637a, 50))); this.f6653q.addView(progressBar); frameLayout.addView(this.f6653q); return frameLayout; } private RelativeLayout e() { RelativeLayout relativeLayout = new RelativeLayout(this.f6637a); relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, com.igaworks.ssp.common.o.e.a(this.f6637a, 48))); relativeLayout.setBackgroundColor(-13682114); TextView textView = new TextView(this.f6637a); RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2); layoutParams.addRule(14); layoutParams.addRule(15); textView.setLayoutParams(layoutParams); k.a(textView, com.igaworks.ssp.common.j.c.f6623l, 20, -1, null, 0, 1, TextUtils.TruncateAt.END, false); textView.setGravity(17); relativeLayout.addView(textView); ImageView imageView = new ImageView(this.f6637a); RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 24), com.igaworks.ssp.common.o.e.a(this.f6637a, 24)); imageView.setImageResource(R.mipmap.igaw_ssp_cs_close_btn); imageView.setOnClickListener(new a()); layoutParams2.rightMargin = com.igaworks.ssp.common.o.e.a(this.f6637a, 8); layoutParams2.addRule(15); layoutParams2.addRule(11); imageView.setLayoutParams(layoutParams2); imageView.setScaleType(ImageView.ScaleType.FIT_XY); relativeLayout.addView(imageView); View linearLayout = new LinearLayout(this.f6637a); RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(com.igaworks.ssp.common.o.e.a(this.f6637a, 42), com.igaworks.ssp.common.o.e.a(this.f6637a, 48)); layoutParams3.addRule(15); layoutParams3.addRule(11); linearLayout.setLayoutParams(layoutParams3); linearLayout.setOnClickListener(new b()); relativeLayout.addView(linearLayout); return relativeLayout; } @Override // android.app.Dialog protected void onCreate(Bundle bundle) { super.onCreate(bundle); WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); layoutParams.flags = 2; layoutParams.dimAmount = 0.6f; getWindow().setAttributes(layoutParams); c(); b(); } @Override // android.app.Dialog protected void onStop() { super.onStop(); } private void c() { if (this.f6641e) { getWindow().setFlags(1024, 1024); } GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-920587, -920587}); this.f6642f = gradientDrawable; gradientDrawable.setShape(0); this.f6642f.setGradientType(0); this.f6642f.setStroke(com.igaworks.ssp.common.o.e.a(this.f6637a, 1), -2170138); GradientDrawable gradientDrawable2 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-1, -1}); this.f6643g = gradientDrawable2; gradientDrawable2.setShape(0); this.f6643g.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 0)); this.f6643g.setGradientType(0); this.f6643g.setStroke(1, -13222069); GradientDrawable gradientDrawable3 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-1, -1}); this.f6645i = gradientDrawable3; gradientDrawable3.setShape(0); this.f6645i.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 0)); this.f6645i.setGradientType(0); this.f6645i.setStroke(1, -2170138); GradientDrawable gradientDrawable4 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-1, -1}); this.f6646j = gradientDrawable4; gradientDrawable4.setShape(0); this.f6646j.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 0)); this.f6646j.setGradientType(0); this.f6646j.setStroke(1, -2170138); GradientDrawable gradientDrawable5 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-1, -1}); this.f6647k = gradientDrawable5; gradientDrawable5.setShape(0); this.f6647k.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 0)); this.f6647k.setGradientType(0); this.f6647k.setStroke(1, -2170138); GradientDrawable gradientDrawable6 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-1, -1}); this.f6644h = gradientDrawable6; gradientDrawable6.setShape(0); this.f6644h.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 0)); this.f6644h.setGradientType(0); this.f6644h.setStroke(1, -2170138); this.f6652p = 0; ArrayList arrayList = new ArrayList<>(); this.f6651o = arrayList; arrayList.add(com.igaworks.ssp.common.j.c.f6619h); this.f6651o.add(com.igaworks.ssp.common.j.c.f6620i); this.f6651o.add(com.igaworks.ssp.common.j.c.f6621j); this.f6651o.add(com.igaworks.ssp.common.j.c.f6622k); GradientDrawable gradientDrawable7 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-14829569, -14829569}); gradientDrawable7.setShape(0); gradientDrawable7.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 18)); gradientDrawable7.setGradientType(0); GradientDrawable gradientDrawable8 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-14829569, -14829569}); gradientDrawable8.setShape(0); gradientDrawable8.setAlpha(204); gradientDrawable8.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 18)); gradientDrawable8.setGradientType(0); GradientDrawable gradientDrawable9 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-14211752, -14211752}); gradientDrawable9.setAlpha(127); gradientDrawable9.setShape(0); gradientDrawable9.setCornerRadius(com.igaworks.ssp.common.o.e.a(this.f6637a, 18)); gradientDrawable9.setGradientType(0); StateListDrawable stateListDrawable = new StateListDrawable(); this.f6648l = stateListDrawable; stateListDrawable.addState(new int[]{android.R.attr.state_pressed}, gradientDrawable8); this.f6648l.addState(new int[]{-16842910}, gradientDrawable9); this.f6648l.addState(StateSet.WILD_CARD, gradientDrawable7); this.f6649m = new ColorStateList(new int[][]{new int[]{android.R.attr.state_pressed}, new int[]{-16842910}, new int[0]}, new int[]{Color.parseColor("#ffffff"), Color.parseColor("#80ffffff"), Color.parseColor("#ffffff")}); try { String str = this.A; if (str == null || str.length() == 0) { this.A = com.igaworks.ssp.common.g.e().g(); } } catch (Exception unused) { } } /* JADX INFO: Access modifiers changed from: private */ public void f() { EditText editText; try { EditText editText2 = this.f6656t; if (editText2 == null || editText2.getText() == null || this.f6656t.getText().toString().length() <= 0 || (editText = this.f6657u) == null || editText.getText() == null || this.f6657u.getText().toString().length() <= 0) { new com.igaworks.ssp.common.j.b(this.f6637a).a(com.igaworks.ssp.common.j.c.f6630s, 1); return; } String trim = this.f6656t.getText().toString().trim(); String trim2 = this.f6657u.getText().toString().trim(); if (!a(trim + "@" + trim2)) { new com.igaworks.ssp.common.j.b(this.f6637a).a(com.igaworks.ssp.common.j.c.f6633v, 1); return; } String str = trim + "@" + trim2; EditText editText3 = this.f6658v; if (editText3 == null || editText3.getText() == null || this.f6658v.getText().toString().length() <= 0) { new com.igaworks.ssp.common.j.b(this.f6637a).a(com.igaworks.ssp.common.j.c.f6628q, 1); return; } String obj = this.f6658v.getText().toString(); try { i(); com.igaworks.ssp.common.g.e().b().a(this.f6637a.getApplicationContext(), this.A, str, obj, new h()); } catch (Exception unused) { a(); } } catch (Exception unused2) { } } private void g() { this.f6639c.setVisibility(0); this.f6654r.setVisibility(0); this.f6659w.setVisibility(0); this.f6662z.setVisibility(0); this.f6653q.setVisibility(4); this.f6658v.setLayoutParams(new LinearLayout.LayoutParams(-1, com.igaworks.ssp.common.o.e.a(this.f6637a, 190))); this.f6658v.setEnabled(true); this.f6658v.setText(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED); } /* JADX INFO: Access modifiers changed from: private */ public void h() { try { Dialog dialog = this.B; if (dialog != null && dialog.isShowing()) { this.B.dismiss(); } ArrayList arrayList = this.f6651o; if (arrayList == null || arrayList.size() <= 0) { return; } com.igaworks.ssp.common.j.f fVar = new com.igaworks.ssp.common.j.f(this.f6637a, this.f6650n, this.f6651o, this.f6652p, this.f6640d, new g()); this.B = fVar; fVar.show(); } catch (Exception e10) { e10.printStackTrace(); } } public void i() { try { this.f6653q.setVisibility(0); } catch (Exception e10) { e10.printStackTrace(); } } /* JADX INFO: Access modifiers changed from: private */ public void a() { try { this.f6653q.setVisibility(8); } catch (Exception e10) { e10.printStackTrace(); } } private boolean a(String str) { return Pattern.compile("^[_a-zA-Z0-9-\\.]+@[\\.a-zA-Z0-9-]+\\.[a-zA-Z]+$").matcher(str).matches(); } }