package qr2; import al2.e; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.recyclerview.widget.DiffUtil; import bj2.h; import com.drakeet.multitype.MultiTypeAdapter; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.uber.autodispose.y; import com.xingin.android.mixim.msg.MsgType; import com.xingin.android.redutils.base.XhsActivity; import com.xingin.android.xhscomm.router.Routers; import com.xingin.netdiagnose.NetDiagnoseActivity; import com.xingin.utils.core.g; import com.xingin.xhs.R; import com.xingin.xhs.v2.about.PromotionInfoBean; import ja.b1; import java.util.List; import jm2.a; import kotlin.Metadata; import kotlin.Pair; import kotlin.Unit; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import ot2.a0; @Metadata(bv = {}, d1 = {"\u0000^\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\t\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\b/\u00100J\u0012\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014J\b\u0010\b\u001a\u00020\u0006H\u0014J\u0010\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0002J\"\u0010\u0011\u001a\u00020\u00062\u0018\u0010\u0010\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u000e0\r\u0012\u0004\u0012\u00020\u000f0\fH\u0002R\"\u0010\u0013\u001a\u00020\u00128\u0006@\u0006X.¢\u0006\u0012\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016\"\u0004\b\u0017\u0010\u0018R\"\u0010\u001a\u001a\u00020\u00198\u0006@\u0006X.¢\u0006\u0012\n\u0004\b\u001a\u0010\u001b\u001a\u0004\b\u001c\u0010\u001d\"\u0004\b\u001e\u0010\u001fR\"\u0010!\u001a\u00020 8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b!\u0010\"\u001a\u0004\b#\u0010$\"\u0004\b%\u0010&R4\u0010)\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\t\u0012\u0004\u0012\u00020(0\f0'8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,\"\u0004\b-\u0010.¨\u00061"}, d2 = {"Lqr2/i;", "Ltu0/b;", "Lqr2/l;", "Lqr2/k;", "Landroid/os/Bundle;", "savedInstanceState", "", "onAttach", "onDetach", "", MsgType.TYPE_TEXT, "W0", "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "pair", "X0", "Lcom/xingin/android/redutils/base/XhsActivity;", "activity", "Lcom/xingin/android/redutils/base/XhsActivity;", "getActivity", "()Lcom/xingin/android/redutils/base/XhsActivity;", "setActivity", "(Lcom/xingin/android/redutils/base/XhsActivity;)V", "Lcom/drakeet/multitype/MultiTypeAdapter;", "adapter", "Lcom/drakeet/multitype/MultiTypeAdapter;", "getAdapter", "()Lcom/drakeet/multitype/MultiTypeAdapter;", "setAdapter", "(Lcom/drakeet/multitype/MultiTypeAdapter;)V", "Lqr2/m;", "aboutRepository", "Lqr2/m;", "U0", "()Lqr2/m;", "setAboutRepository", "(Lqr2/m;)V", "Ldx2/d;", "Lot2/d;", "onClick", "Ldx2/d;", "V0", "()Ldx2/d;", "setOnClick", "(Ldx2/d;)V", "<init>", "()V", "app_PublishGooglePlayRelease"}, k = 1, mv = {1, 6, 0}) /* compiled from: AboutController.kt */ public final class i extends tu0.b<l, i, k> { /* renamed from: a reason: collision with root package name */ public XhsActivity f123317a; /* renamed from: b reason: collision with root package name */ public MultiTypeAdapter f123318b; /* renamed from: c reason: collision with root package name */ public m f123319c; /* renamed from: d reason: collision with root package name */ public dx2.d<Pair<String, ot2.d>> f123320d; /* renamed from: e reason: collision with root package name */ public dx2.d<Pair<String, View>> f123321e; /* renamed from: f reason: collision with root package name */ public dx2.d<a0> f123322f; /* renamed from: g reason: collision with root package name */ public int f123323g; @Metadata(bv = {}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\b\u001a\u00020\u00052&\u0010\u0004\u001a\"\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u0002 \u0003*\u0010\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"Lkotlin/Pair;", "", "Lot2/d;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lkotlin/Pair;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: AboutController.kt */ public static final class a extends Lambda implements Function1<Pair<? extends String, ? extends ot2.d>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ i f123324a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(i iVar) { super(1); this.f123324a = iVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Pair<? extends String, ? extends ot2.d> pair) { invoke((Pair<String, ? extends ot2.d>) pair); return Unit.INSTANCE; } public final void invoke(Pair<String, ? extends ot2.d> pair) { this.f123324a.W0(pair.getFirst()); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: AboutController.kt */ public static final class b extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ i f123325a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(i iVar) { super(1); this.f123325a = iVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f123325a.getActivity().finish(); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: AboutController.kt */ public static final class c extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ i f123326a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(i iVar) { super(1); this.f123326a = iVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f123326a.f123323g++; if (this.f123326a.f123323g > 6) { this.f123326a.f123323g = 0; e.g(g.a(this.f123326a.getActivity())); ((l) this.f123326a.getPresenter()).k(); } } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/xingin/xhs/v2/about/PromotionInfoBean;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/xhs/v2/about/PromotionInfoBean;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: AboutController.kt */ public static final class d extends Lambda implements Function1<PromotionInfoBean, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ i f123327a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(i iVar) { super(1); this.f123327a = iVar; } public final void a(PromotionInfoBean promotionInfoBean) { Intrinsics.checkNotNullParameter(promotionInfoBean, AdvanceSetting.NETWORK_TYPE); ((l) this.f123327a.getPresenter()).i(promotionInfoBean); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(PromotionInfoBean promotionInfoBean) { a(promotionInfoBean); return Unit.INSTANCE; } } public final m U0() { m mVar = this.f123319c; if (mVar != null) { return mVar; } Intrinsics.throwUninitializedPropertyAccessException("aboutRepository"); return null; } public final dx2.d<Pair<String, ot2.d>> V0() { dx2.d<Pair<String, ot2.d>> dVar = this.f123320d; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("onClick"); return null; } public final void W0(String str) { String str2; if (Intrinsics.areEqual(str, getActivity().getString(R.string.f169035a9))) { gi2.b.g(); } else if (Intrinsics.areEqual(str, getActivity().getString(R.string.dgv))) { Intent intent = new Intent(getActivity(), NetDiagnoseActivity.class); intent.putExtra("USER_ID_INTENT_KEY", b1.f94179a.S0().getUserid()); getActivity().startActivity(intent); } else { if (Intrinsics.areEqual(str, getActivity().getString(R.string.a_))) { str2 = a.b.a("/crown/community/rules"); Intrinsics.checkNotNullExpressionValue(str2, "getUrl(Constants.Urls.COMMUNITY_SPEC)"); } else if (Intrinsics.areEqual(str, getActivity().getString(R.string.f169037ab))) { str2 = a.b.a("/crown/community/privacy"); Intrinsics.checkNotNullExpressionValue(str2, "getUrl(Constants.Urls.PRIVACY_POLICY)"); } else if (Intrinsics.areEqual(str, getActivity().getString(R.string.f169038ac))) { str2 = a.b.a("/crown/community/simple_privacy"); Intrinsics.checkNotNullExpressionValue(str2, "getUrl(Constants.Urls.SIMPLE_PRIVACY)"); } else if (Intrinsics.areEqual(str, getActivity().getString(R.string.f169039ad))) { str2 = a.b.a("/crown/community/terms"); Intrinsics.checkNotNullExpressionValue(str2, "getUrl(Constants.Urls.TERMS)"); } else { str2 = ""; } Routers.build(str2).open(getActivity()); } } public final void X0(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { getAdapter().o((List) pair.getFirst()); ((DiffUtil.DiffResult) pair.getSecond()).dispatchUpdatesTo(getAdapter()); } public final XhsActivity getActivity() { XhsActivity xhsActivity = this.f123317a; if (xhsActivity != null) { return xhsActivity; } Intrinsics.throwUninitializedPropertyAccessException("activity"); return null; } public final MultiTypeAdapter getAdapter() { MultiTypeAdapter multiTypeAdapter = this.f123318b; if (multiTypeAdapter != null) { return multiTypeAdapter; } Intrinsics.throwUninitializedPropertyAccessException("adapter"); return null; } @Override // tu0.b public void onAttach(Bundle bundle) { super.onAttach(bundle); ((l) getPresenter()).j(); ((l) getPresenter()).h(); ((l) getPresenter()).f(getAdapter()); X0(U0().k()); h.d(V0(), this, new a(this)); ((l) getPresenter()).b(); Object n14 = ((l) getPresenter()).d().n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); h.b((y) n14, new b(this)); Object n15 = ((l) getPresenter()).e().n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n15, "this.`as`(AutoDispose.autoDisposable(provider))"); h.b((y) n15, new c(this)); Object n16 = U0().n().n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n16, "this.`as`(AutoDispose.autoDisposable(provider))"); h.b((y) n16, new d(this)); } @Override // tu0.b public void onDetach() { super.onDetach(); ((l) getPresenter()).g(); } }