package o; import android.text.TextUtils; import o.AbstractC1958aTW; /* loaded from: classes3.dex */ public final /* synthetic */ class TGy implements fSS { private UJM d; @Override // o.fSS public final Object a(Object obj) { String str; String str2; String str3; xHz xhz; Wdj wdj; TqF tqF; myN myn; myN myn2; myN myn3; myN myn4; quK quk; CgF cgF; String str4; TqF tqF2; LvK lvK; YcS ycS; BgM bgM; YcS ycS2; Wdj wdj2; fTZ ftz; LvK lvK2; CNl cNl; GvZ gvZ; EuK euK; C15152gig c15152gig; YIo yIo; xHz xhz2; C16595paV c16595paV; RvX rvX; C6271cNx c6271cNx; C17378wJk c17378wJk; Hvk hvk; String str5; String str6; String str7; String str8; UJM ujm = this.d; hGb hgb = (hGb) obj; if (hgb.getStatus().e.equals(AbstractC1958aTW.zJl.c.a)) { return new C8064dAG(null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } C17189ugZ c17189ugZ = hgb.d; if (c17189ugZ.B == null) { str = ""; str2 = str; } else { if (TextUtils.isEmpty(c17189ugZ.B.c)) { str = ""; } else { str = c17189ugZ.B.c; } if (TextUtils.isEmpty(c17189ugZ.B.a)) { str8 = ""; } else { str8 = c17189ugZ.B.a; } str2 = str8; } String str9 = (str == null || !str.contains("/")) ? null : str.split("/")[0]; int j = UJM.j(str); qut qutVar = ujm.i; YIo d = qut.d(c17189ugZ.t); C2295abs c2295abs = ujm.f; pCN pcn = c17189ugZ.w; if (pcn == null) { xhz = null; } else { if (TextUtils.isEmpty(pcn.d)) { str3 = ""; } else { str3 = pcn.d; } xhz = new xHz(pcn.e, str3); } CLW clw = ujm.e; DbW dbW = c17189ugZ.a; if (dbW != null) { if (TextUtils.isEmpty(dbW.f)) { str5 = ""; } else { str5 = dbW.f; } if (TextUtils.isEmpty(dbW.e)) { str6 = ""; } else { str6 = dbW.e; } String str10 = dbW.h; String str11 = dbW.i; if (TextUtils.isEmpty(dbW.c)) { str7 = ""; } else { str7 = dbW.c; } Wdj wdj3 = new Wdj(str5, str6, str10, str11, str7); wdj3.h = dbW.a; wdj3.j = dbW.g; wdj3.b = dbW.b; wdj3.i = dbW.j; wdj3.c = dbW.d; wdj = wdj3; } else { wdj = null; } mFa mfa = ujm.a; fTZ ftz2 = new fTZ(c17189ugZ.p.a); LvK lvK3 = c17189ugZ.r == null ? null : new LvK(c17189ugZ.r.d, c17189ugZ.r.b); LvK lvK4 = c17189ugZ.u == null ? null : new LvK(c17189ugZ.u.d, c17189ugZ.u.b); if (c17189ugZ.d == null) { tqF = new TqF("", 0); } else { tqF = new TqF(c17189ugZ.d.c, c17189ugZ.d.a); } TqF tqF3 = tqF; if (c17189ugZ.k == null) { myn = new myN("", ""); } else { myn = new myN(c17189ugZ.k.d, c17189ugZ.k.b); } myN myn5 = myn; if (c17189ugZ.f == null) { myn2 = new myN("", ""); myn3 = myn5; } else { myn3 = myn5; myn2 = new myN(c17189ugZ.f.d, c17189ugZ.f.b); } myN myn6 = myn2; if (c17189ugZ.n == null) { myn4 = myn6; quk = new quK("", ""); } else { myn4 = myn6; quk = new quK(c17189ugZ.n.e, c17189ugZ.n.d); } String str12 = c17189ugZ.x != null ? c17189ugZ.x.b : null; quK quk2 = quk; CgF cgF2 = new CgF(c17189ugZ.q.a, c17189ugZ.v.d); String str13 = c17189ugZ.s; String str14 = c17189ugZ.q.e; String str15 = c17189ugZ.q.c; if (c17189ugZ.y == null) { str4 = str13; ycS = new YcS("", "", "", ""); cgF = cgF2; lvK = lvK4; tqF2 = tqF3; } else { cgF = cgF2; str4 = str13; tqF2 = tqF3; lvK = lvK4; ycS = new YcS(c17189ugZ.y.b, c17189ugZ.y.d, c17189ugZ.y.e, c17189ugZ.y.a); } if (c17189ugZ.f9288o == null) { bgM = new BgM(0, 0, Boolean.FALSE); } else { bgM = new BgM(c17189ugZ.f9288o.b, c17189ugZ.f9288o.e, c17189ugZ.f9288o.a); } if (c17189ugZ.l != null) { C17280vVd c17280vVd = ujm.b; NBd nBd = c17189ugZ.l; C14957gcv.e(nBd, ""); ycS2 = ycS; lvK2 = lvK3; ftz = ftz2; wdj2 = wdj; cNl = new CNl(nBd.i, nBd.d, nBd.f, nBd.h, nBd.c, nBd.a, nBd.b, nBd.e); } else { ycS2 = ycS; wdj2 = wdj; ftz = ftz2; lvK2 = lvK3; cNl = null; } C15152gig c15152gig2 = c17189ugZ.i != null ? new C15152gig(c17189ugZ.i.c, c17189ugZ.i.d) : null; if (c17189ugZ.j != null) { C0356Evu c0356Evu = ujm.d; RWr rWr = c17189ugZ.j; C14957gcv.e(rWr, ""); String str16 = rWr.b; String str17 = rWr.a; Integer num = rWr.c; gvZ = new GvZ(str16, str17, num != null ? num.intValue() : 1); } else { gvZ = null; } if (c17189ugZ.g != null && c17189ugZ.g.d != null) { euK = new EuK(c17189ugZ.g.d.intValue()); } else { euK = new EuK(5); } EuK euK2 = euK; if (c17189ugZ.e != null) { HBM hbm = ujm.c; C16966snD c16966snD = c17189ugZ.e; C14957gcv.e(c16966snD, ""); c15152gig = c15152gig2; xhz2 = xhz; yIo = d; c16595paV = new C16595paV(c16966snD.f, c16966snD.n, c16966snD.e, c16966snD.g, c16966snD.h, c16966snD.c, c16966snD.a, c16966snD.j, c16966snD.i, c16966snD.b, c16966snD.d); } else { c15152gig = c15152gig2; yIo = d; xhz2 = xhz; c16595paV = null; } if (c17189ugZ.m == null) { rvX = new RvX("", ""); } else { rvX = new RvX(c17189ugZ.m.b, c17189ugZ.m.c); } if (c17189ugZ.b == null) { c6271cNx = new C6271cNx(""); } else { c6271cNx = new C6271cNx(c17189ugZ.b.e); } if (c17189ugZ.c == null) { c17378wJk = new C17378wJk(""); } else { c17378wJk = new C17378wJk(c17189ugZ.c.a); } C17378wJk c17378wJk2 = c17378wJk; if (c17189ugZ.h == null) { hvk = new Hvk(0, ""); } else { hvk = new Hvk(c17189ugZ.h.a, c17189ugZ.h.c); } return new C8064dAG(str9, j, str2, yIo, xhz2, wdj2, ftz, lvK2, lvK, tqF2, myn3, myn4, quk2, str12, cgF, str4, str14, str15, ycS2, bgM, cNl, c15152gig, gvZ, euK2, c16595paV, rvX, c6271cNx, c17378wJk2, hvk); } }