package qk; import android.content.Context; import android.view.View; import android.widget.TextView; import com.linecorp.account.phone.RegisterPhoneNumberFragment; import com.linecorp.line.timeline.neta.summary.viewmodel.NetaSummaryViewModel; import em3.q; import gp1.a; import hc0.i; import ic0.r; import ik1.e; import ik1.g; import java.util.Objects; import k81.s; import kd3.b; import kd3.h; import m20.c; import mt2.b; import oa3.l; import oq2.a; import ra.h0; import ut2.b; import vn.p; import xm3.w1; import xn.g0; import y71.x; import y8.s2; import zi1.h; import zn.d; import zo1.r0; import zo1.t0; public final /* synthetic */ class e1 implements View.OnClickListener { /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f132979b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Object f132980c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Object f132981d; public /* synthetic */ e1(Object obj, Object obj2, int i14) { this.f132979b = i14; this.f132980c = obj; this.f132981d = obj2; } public final void onClick(View view) { w1<p.c> w1Var; String str; l.d dVar; b bVar; b.a aVar = null; Boolean bool = null; Long l14 = null; boolean z14 = false; boolean z15 = true; switch (this.f132979b) { case 0: RegisterPhoneNumberFragment.c cVar = (RegisterPhoneNumberFragment.c) this.f132980c; RegisterPhoneNumberFragment registerPhoneNumberFragment = (RegisterPhoneNumberFragment) this.f132981d; q.f(cVar, "this$0"); q.f(registerPhoneNumberFragment, "this$1"); boolean isEnabled = cVar.f32027c.isEnabled(); if (isEnabled) { int i14 = RegisterPhoneNumberFragment.f32003h; tk.b b54 = registerPhoneNumberFragment.b5(); Context requireContext = registerPhoneNumberFragment.requireContext(); q.e(requireContext, "requireContext()"); b54.o(requireContext); return; } else if (!isEnabled) { RegisterPhoneNumberFragment registerPhoneNumberFragment2 = RegisterPhoneNumberFragment.this; int i15 = RegisterPhoneNumberFragment.f32003h; registerPhoneNumberFragment2.b5().f149735f.a(); cVar.d(); return; } else { return; } case 1: d dVar2 = (d) this.f132980c; g0 g0Var = (g0) this.f132981d; q.f(dVar2, "this$0"); q.f(g0Var, "$flexContent"); p pVar = dVar2.f199889e; if (((pVar == null || (w1Var = pVar.f173121c) == null) ? null : w1Var.getValue()) == p.c.ENDED) { z14 = true; } p pVar2 = dVar2.f199889e; Long valueOf = pVar2 != null ? Long.valueOf(((s2) pVar2.f173123e).getCurrentPosition()) : null; if (!z14) { l14 = valueOf; } dVar2.b(g0Var, l14 != null ? l14.longValue() : 0); return; case 2: c cVar2 = (c) this.f132980c; dm3.p pVar3 = (dm3.p) this.f132981d; int i16 = c.f109839l; q.f(cVar2, "this$0"); q.f(pVar3, "$doOnClickItem"); Integer num = cVar2.f109840a; if (num != null) { int intValue = num.intValue(); q.e(view, "view"); pVar3.invoke(view, Integer.valueOf(intValue)); return; } return; case 3: dm3.l lVar = (dm3.l) this.f132980c; r rVar = (r) this.f132981d; int i17 = i.f80812c; q.f(lVar, "$doOnFlexAction"); q.f(rVar, "$flexContent"); lVar.invoke(rVar.f86263h); return; case 4: g.c cVar3 = (g.c) this.f132980c; View view2 = (View) this.f132981d; h[] hVarArr = g.c.f88108f; q.f(cVar3, "this$0"); q.f(view2, "$itemView"); Context context = view2.getContext(); q.e(context, "itemView.context"); e eVar = e.f88101a; t0 t0Var = cVar3.f88113e; if (t0Var != null) { String str2 = t0Var.f200193e; r0 r0Var = t0Var.f200194f; Objects.requireNonNull(r0Var); if (r0Var == r0.EXIST) { z14 = true; } q.f(str2, "basicSearchId"); StringBuilder sb4 = new StringBuilder(); sb4.append("https://liff.line.me/1654109201-MgN2z4Nd"); sb4.append("/liff/account/"); sb4.append(str2); sb4.append(z14 ? "/notification" : "/timeline"); String sb5 = sb4.toString(); if (z14) { str = cq1.l.MYOA_GREENDOT.value; } else { str = cq1.l.MYOA.value; } q.e(str, "if (hasNewNoti) {\n …rget.MYOA.value\n }"); e.b(context, sb5, str); return; } q.l("account"); throw null; case 5: NetaSummaryViewModel netaSummaryViewModel = (NetaSummaryViewModel) this.f132980c; a aVar2 = (a) this.f132981d; q.f(netaSummaryViewModel, "$viewModel"); q.f(aVar2, "this$0"); TextView textView = aVar2.f77544c; q.f(textView, "view"); netaSummaryViewModel.f45593e.k0(textView, netaSummaryViewModel.f45594f, netaSummaryViewModel.f45591c, netaSummaryViewModel.f45592d, netaSummaryViewModel.f45599k); return; case 6: pq2.q qVar = (pq2.q) this.f132980c; a.e eVar2 = (a.e) this.f132981d; int i18 = pq2.q.f128845d; q.f(qVar, "this$0"); q.f(eVar2, "$viewModel"); ye2.c cVar4 = qVar.f128846a; Context context2 = qVar.itemView.getContext(); q.e(context2, "itemView.context"); ye2.c.a(cVar4, context2, eVar2.f124344d, String.valueOf(eVar2.f124343c), eVar2.f124345e.d(), null, 16); s sVar = eVar2.f124346f; if (sVar == null) { dVar = null; } else { dVar = l.d.Companion.a(sVar); } x xVar = eVar2.f124344d; x xVar2 = x.STICKER; if (xVar != xVar2) { z15 = false; } l lVar2 = new l(z15, l.c.b.f122515b, dVar, l.a.f.f122512a); oa3.d dVar3 = qVar.f128847b; if (dVar3 != null) { dVar3.b(lVar2, false); } if (eVar2.f124344d == xVar2) { s sVar2 = eVar2.f124346f; if (sVar2 != null) { bool = Boolean.valueOf(sVar2.j()); } bVar = new h.g(h.a.STICKER_AUTHOR_PRODUCT, h.c.SHOP, null, h.d.Companion.a(h0.K(bool)), null, null); } else { bVar = new h.C1605h(h.a.STICON_AUTHOR_PRODUCT, h.c.SHOP, null, null); } oa3.d dVar4 = qVar.f128847b; if (dVar4 != null) { dVar4.c(bVar); return; } return; default: b.a aVar3 = (b.a) this.f132980c; mt2.b bVar2 = (mt2.b) this.f132981d; int i19 = b.a.f113950b; q.f(aVar3, "this$0"); q.f(bVar2, "this$1"); b.a aVar4 = aVar3.f113951a.f196242m; if (aVar4 != null) { if (aVar4.f167938f) { aVar = aVar4; } if (aVar != null) { if (!aVar.f167949q) { aVar.B.invoke(); return; } else if (aVar.f167958z || !aVar.H || !aVar.f167956x) { mt2.b.u(bVar2, aVar3.getAbsoluteAdapterPosition()); return; } else { aVar.A.invoke(); return; } } else { return; } } else { return; } } } }