package com.scb.phone.view.fragment.pointx; import com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment; import o.C1034Ud; import o.C1203Xy; import o.C13080fQ; import o.C14589fw; import o.C14957gcv; import o.C15602gz; import o.C17765zb; import o.C2328acY; import o.C6380cR; import o.C6410cS; import o.C6543cW; import o.C7324cmD; import o.C7325cmE; import o.C7331cmK; import o.InterfaceC9548dln; import o.MBB; import o.PWw; import o.REU; import o.SBO; import o.TS; import o.TT; import o.TZ; import o.YCV; import o.YZ; import o.ZI; import o.gdZ; import o.pug; import o.tLY; import o.yGw; /* loaded from: classes5.dex */ public final class PointXQRInputFragment extends Hilt_PointXQRInputFragment implements PointXPointPurchaseFragment.HBt { public static final RVV d = new RVV(0); /* loaded from: classes5.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } @Override // com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment public final void d(final C1203Xy c1203Xy, TS ts, String str, boolean z) { C14957gcv.e(str, ""); m(YZ.QR.code); if (c1203Xy != null) { final C7325cmE w = w(); C14957gcv.e(c1203Xy, ""); C14957gcv.e(str, ""); w.c = c1203Xy; String str2 = c1203Xy.i; C14957gcv.c((Object) str2, ""); w.x = str2; w.z = ts; w.u = str; w.p = z; C7324cmD c7324cmD = new C7324cmD(z, w); if (w.f != 0) { c7324cmD.e(w.f); } w.d = c1203Xy.c; ZI.IeS ieS = new ZI.IeS(w, c1203Xy) { // from class: o.cmF private C7325cmE b; private C1203Xy e; @Override // o.ZI.IeS public final void e(Object obj) { C7325cmE.a(this.b, this.e, (InterfaceC9548dln.IeS) obj); } { this.b = w; this.e = c1203Xy; } }; if (w.f != 0) { ieS.e(w.f); } } String str3 = ts != null ? ts.a : null; if (str3 == null) { str3 = ""; } C14957gcv.e(str3, ""); c("scan_n_pay_pointx_input", new pug("customerId", str3)); } @Override // com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment public final void A() { E(); } /* JADX WARN: Type inference failed for: r1v3, types: [V, java.lang.Object, java.lang.String] */ @Override // com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment public final void H() { boolean z; String str; double parseDouble; TT tt; Double valueOf; String str2; String str3; C6410cS c6410cS; boolean z2; boolean z3; boolean z4; boolean z5; boolean z6; boolean z7; TT tt2; C2328acY m = m(); C7325cmE w = w(); ?? obj = m.j.mNoteEditText.getText().toString(); C14957gcv.c((Object) obj, ""); int currentItem = m.O.getCurrentItem(); C14957gcv.e((Object) obj, ""); boolean z8 = currentItem == 0; if (z8) { w.L = "P"; TZ tz = w.D; if (tz != null) { w.d(tz); } } else { TZ tz2 = w.F; if (tz2 == null || tz2.b) { w.L = "PWCASA"; TZ tz3 = w.F; if (tz3 != null) { w.d(tz3); } } else { w.L = "PWCC"; TZ tz4 = w.F; if (tz4 != null) { w.d(tz4); } } } if (z8) { TZ tz5 = w.D; z = tz5 != null ? tz5.b : false; TZ tz6 = w.D; str = (tz6 == null || (tt2 = tz6.j) == null) ? null : tt2.d; if (str == null) { str = ""; } parseDouble = 0.0d; } else { TZ tz7 = w.F; z = tz7 != null ? tz7.b : false; TZ tz8 = w.F; str = (tz8 == null || (tt = tz8.j) == null) ? null : tt.d; if (str == null) { str = ""; } parseDouble = Double.parseDouble(w.g); } double d2 = parseDouble; if (w.d(z)) { str2 = w.g; valueOf = null; } else { valueOf = Double.valueOf(d2); str2 = null; } TS ts = w.z; String str4 = ts != null ? ts.a : null; String str5 = str4 == null ? "" : str4; TS ts2 = w.z; String str6 = ts2 != null ? ts2.c : null; w.G = new C6543cW(str5, "Y", str6 == null ? "" : str6, Double.valueOf(w.C), w.I, Integer.valueOf(w.v), Double.valueOf(w.w), str2, valueOf); String str7 = w.a; String str8 = w.L; TS ts3 = w.z; String str9 = ts3 != null ? ts3.a : null; String str10 = str9 == null ? "" : str9; C17765zb c17765zb = w.B; String a = C17765zb.a(w.d); double d3 = w.w; int i = w.v; String str11 = w.g; String str12 = w.u; if (str12 == null) { C14957gcv.a(""); str3 = null; } else { str3 = str12; } w.M = new C6410cS(str, str7, str8, str10, a, String.valueOf(d3), String.valueOf(i), str11, obj, str3); boolean z9 = !z8; if (w.f != 0) { w.f.y(); } if (w.d(z9)) { C6543cW c6543cW = w.G; if (c6543cW == null) { C14957gcv.a(""); c6543cW = null; } C6410cS c6410cS2 = w.M; if (c6410cS2 == null) { C14957gcv.a(""); c6410cS = null; } else { c6410cS = c6410cS2; } String str13 = w.L; String str14 = w.a; String str15 = w.x; if (str15 == null) { C14957gcv.a(""); str15 = null; } int hashCode = str15.hashCode(); if (hashCode == 2126) { if (!str15.equals("BP")) { return; } } else { if (hashCode == 2560) { if (!str15.equals("PP")) { return; } } else { if (hashCode != 2684) { if (hashCode != 79006) { if (hashCode != 79440) { if (hashCode != 79564 || !str15.equals("PTP")) { return; } } else if (!str15.equals("PPP")) { return; } } else if (!str15.equals("PBP")) { return; } } else if (!str15.equals("TP")) { return; } C13080fQ c13080fQ = new C13080fQ(); C1203Xy c1203Xy = w.c; if (c1203Xy == null) { C14957gcv.a(""); c1203Xy = null; } String str16 = c1203Xy.a; C14957gcv.c((Object) str16, ""); c13080fQ.b = Integer.parseInt(str16); c13080fQ.e = str14; c13080fQ.c = C15602gz.e(w.d); C1203Xy c1203Xy2 = w.c; if (c1203Xy2 == null) { C14957gcv.a(""); c1203Xy2 = null; } c13080fQ.g = c1203Xy2.j; C1203Xy c1203Xy3 = w.c; if (c1203Xy3 == null) { C14957gcv.a(""); c1203Xy3 = null; } c13080fQ.i = c1203Xy3.f8457o; c13080fQ.a = "TOPUP"; c13080fQ.f = str13; c13080fQ.j = c6543cW; CharSequence charSequence = (CharSequence) obj; if (charSequence == null || gdZ.d(charSequence)) { z6 = true; z7 = true; } else { z6 = true; z7 = false; } if (z6 ^ z7) { c13080fQ.d.b = obj; } w.K.b(c13080fQ); tLY tly = w.K; tly.d(tly.i, new C7325cmE.RVV(w, c6410cS)); return; } C14589fw c14589fw = new C14589fw(); c14589fw.l = "PP"; c14589fw.b = str14; C1203Xy c1203Xy4 = w.c; if (c1203Xy4 == null) { C14957gcv.a(""); c1203Xy4 = null; } c14589fw.j = c1203Xy4.a; C17765zb c17765zb2 = w.B; C1034Ud c1034Ud = w.H; if (c1034Ud == null) { C14957gcv.a(""); c1034Ud = null; } int i2 = c1034Ud.e; c14589fw.h = String.valueOf((PWw) C17765zb.a(new Object[]{Integer.valueOf(i2)}, -1155022849, 1155022849, i2)); c14589fw.c = C15602gz.e(w.d); c14589fw.f = str13; C1203Xy c1203Xy5 = w.c; if (c1203Xy5 == null) { C14957gcv.a(""); c1203Xy5 = null; } c14589fw.i = c1203Xy5.f8457o; c14589fw.d = c6543cW; CharSequence charSequence2 = (CharSequence) obj; if (charSequence2 == null || gdZ.d(charSequence2)) { z4 = true; z5 = true; } else { z4 = true; z5 = false; } if (z4 ^ z5) { c14589fw.e.b = obj; } yGw ygw = w.P; ygw.d(ygw.a.c(c14589fw), new C7325cmE.jbe(w, c6410cS)); return; } SBO.Sts sts = SBO.b; SBO sbo = new SBO((byte) 0); sbo.d = str14; C1203Xy c1203Xy6 = w.c; if (c1203Xy6 == null) { C14957gcv.a(""); c1203Xy6 = null; } sbo.e = c1203Xy6.a; sbo.c = C15602gz.e(w.d); SBO.Sts sts2 = SBO.b; MBB mbb = MBB.SCAN; sbo.t = "S"; sbo.j = ""; C1203Xy c1203Xy7 = w.c; if (c1203Xy7 == null) { C14957gcv.a(""); c1203Xy7 = null; } String str17 = c1203Xy7.j; if (str17 == null) { str17 = ""; } sbo.w = str17; C1203Xy c1203Xy8 = w.c; if (c1203Xy8 == null) { C14957gcv.a(""); c1203Xy8 = null; } String str18 = c1203Xy8.l; if (str18 == null) { str18 = ""; } sbo.y = str18; C1203Xy c1203Xy9 = w.c; if (c1203Xy9 == null) { C14957gcv.a(""); c1203Xy9 = null; } sbo.v = c1203Xy9.m; C1203Xy c1203Xy10 = w.c; if (c1203Xy10 == null) { C14957gcv.a(""); c1203Xy10 = null; } sbo.z = c1203Xy10.f8457o; sbo.C = str13; sbo.u = c6543cW; CharSequence charSequence3 = (CharSequence) obj; if (charSequence3 == null || gdZ.d(charSequence3)) { z2 = true; z3 = true; } else { z3 = false; z2 = true; } if (z2 ^ z3) { sbo.a.b = obj; } w.e.d(sbo); REU reu = w.e; C1203Xy c1203Xy11 = w.c; if (c1203Xy11 == null) { C14957gcv.a(""); c1203Xy11 = null; } String str19 = c1203Xy11.j; C1203Xy c1203Xy12 = w.c; if (c1203Xy12 == null) { C14957gcv.a(""); c1203Xy12 = null; } String str20 = c1203Xy12.l; C1203Xy c1203Xy13 = w.c; if (c1203Xy13 == null) { C14957gcv.a(""); c1203Xy13 = null; } reu.d(reu.i, new C7325cmE.HBt(w, str19, str20, c1203Xy13.m, c6410cS)); return; } String str21 = w.L; int i3 = w.v; double d4 = w.w; C6410cS c6410cS3 = w.M; if (c6410cS3 == null) { C14957gcv.a(""); c6410cS3 = null; } C1203Xy c1203Xy14 = w.c; if (c1203Xy14 == null) { C14957gcv.a(""); c1203Xy14 = null; } String str22 = c1203Xy14.f8457o; C14957gcv.c((Object) str22, ""); String e = C15602gz.e(w.d); C14957gcv.c((Object) e, ""); TS ts4 = w.z; String str23 = ts4 != null ? ts4.a : null; String str24 = str23 == null ? "" : str23; TS ts5 = w.z; String str25 = ts5 != null ? ts5.c : null; w.E.b(new C7325cmE.ZnX(w, c6410cS3), new YCV.Sts(new C6380cR(str22, e, str24, "Y", str25 == null ? "" : str25, w.s, str21, w.C, w.I, i3, d4, w.i, d2)), w.A); } @Override // com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment public final void C() { C7325cmE w = w(); w.t = true; w.m = false; w.f8655o = false; w.e(D()); } @Override // o.InterfaceC9548dln.IeS public final void c(TS ts, boolean z) { d(ts); a(z); C7325cmE w = w(); C7331cmK c7331cmK = new C7331cmK(); if (w.f != 0) { c7331cmK.e(w.f); } } @Override // com.scb.phone.view.fragment.pointx.PointXPointPurchaseFragment.HBt public final void e() { w().e(YZ.QR.code); } @Override // o.InterfaceC9548dln.IeS public final void d(String str) { C14957gcv.e(str, ""); } }